@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); } }; }
@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); } }; }
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); } } }; }
@Override public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> arg0) { return null; }
/** * 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);