public JDBCTypeComplexProperty(JDBCTypeComplexProperty defaultProperty,
String columnName,
int jdbcType,
String sqlType,
boolean notNull) {
this.propertyName = defaultProperty.propertyName;
this.columnName = columnName;
this.javaType = defaultProperty.javaType;
this.jdbcType = jdbcType;
this.sqlType = sqlType;
this.notNull = notNull;
this.getters = defaultProperty.getters;
this.setters = defaultProperty.setters;
this.resulSetReader = JDBCUtil.getResultSetReader(jdbcType, javaType);
this.paramSetter = JDBCUtil.getParameterSetter(jdbcType, javaType);
}
|
public JDBCTypeComplexProperty(String propertyName,
String columnName,
Class javaType,
int jdbcType,
String sqlType,
boolean notNull,
Method[] getters,
Method[] setters) {
this.propertyName = propertyName;
this.columnName = columnName;
this.javaType = javaType;
this.jdbcType = jdbcType;
this.sqlType = sqlType;
this.notNull = notNull;
this.getters = getters;
this.setters = setters;
this.resulSetReader = JDBCUtil.getResultSetReader(jdbcType, javaType);
this.paramSetter = JDBCUtil.getParameterSetter(jdbcType, javaType);
}
|