Java 类org.hibernate.type.descriptor.ValueExtractor 实例源码

项目:hibernate-types    文件:ArraySqlTypeDescriptor.java   
@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);
        }
    };
}
项目:hibernate-types    文件:AbstractJsonSqlTypeDescriptor.java   
@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);
        }
    };
}
项目:windup-rulesets    文件:DstSafeDateTypeDescriptor.java   
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);  
   } 
  } 
 }; 
}
项目:windup-rulesets    文件:CustomSqlDataType.java   
@Override
public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> arg0)
{
    return null;
}
项目:lams    文件:SqlTypeDescriptor.java   
/**
 * 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);