本文整理汇总了Java中org.hibernate.type.descriptor.ValueExtractor类的典型用法代码示例。如果您正苦于以下问题:Java ValueExtractor类的具体用法?Java ValueExtractor怎么用?Java ValueExtractor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ValueExtractor类属于org.hibernate.type.descriptor包,在下文中一共展示了ValueExtractor类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getExtractor
import org.hibernate.type.descriptor.ValueExtractor; //导入依赖的package包/类
@Override
public <X> ValueExtractor<X> getExtractor(final JavaTypeDescriptor<X> javaTypeDescriptor) {
return new BasicExtractor<X>(javaTypeDescriptor, this) {
@Override
protected X doExtract(ResultSet rs, String name, WrapperOptions options) throws SQLException {
return javaTypeDescriptor.wrap(rs.getArray(name), options);
}
};
}
示例2: getExtractor
import org.hibernate.type.descriptor.ValueExtractor; //导入依赖的package包/类
@Override
public <X> ValueExtractor<X> getExtractor(final JavaTypeDescriptor<X> javaTypeDescriptor) {
return new BasicExtractor<X>(javaTypeDescriptor, this) {
@Override
protected X doExtract(ResultSet rs, String name, WrapperOptions options) throws SQLException {
return javaTypeDescriptor.wrap(rs.getObject(name), options);
}
};
}
示例3: getExtractor
import org.hibernate.type.descriptor.ValueExtractor; //导入依赖的package包/类
public <X> ValueExtractor<X> getExtractor(
final JavaTypeDescriptor<X> javaTypeDescriptor) {
return new BasicExtractor<X>(javaTypeDescriptor, (SqlTypeDescriptor) this) {
@Override
protected X doExtract(ResultSet rs, String name,
WrapperOptions options) throws SQLException {
if (cal == null) {
return javaTypeDescriptor.wrap(rs.getDate(name), options);
} else {
return javaTypeDescriptor.wrap(rs.getDate(name, cal), options);
}
}
};
}
示例4: getExtractor
import org.hibernate.type.descriptor.ValueExtractor; //导入依赖的package包/类
@Override
public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> arg0)
{
return null;
}
示例5: getExtractor
import org.hibernate.type.descriptor.ValueExtractor; //导入依赖的package包/类
/**
* Get the extractor (pulling out-going values from JDBC objects) capable of handling values of the type described
* by the passed descriptor.
*
* @param javaTypeDescriptor The descriptor describing the types of Java values to be extracted
*
* @return The appropriate extractor
*/
public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor);