Methods Summary |
---|
public java.lang.Object | assemble(java.io.Serializable cached, java.lang.Object owner)
return cached;
|
public java.lang.Object | deepCopy(java.lang.Object value)
return new Integer(((Integer)value).intValue());
|
public java.io.Serializable | disassemble(java.lang.Object value)
return (Serializable) value;
|
public boolean | equals(java.lang.Object x, java.lang.Object y)
if (x==y) return true;
if (x==null || y==null) return false;
return x.equals(y);
|
public int | hashCode(java.lang.Object x)
return x.hashCode();
|
public boolean | isMutable()
return false;
|
public java.lang.Object | nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, java.lang.Object owner)
Number result = (Number) rs.getObject(names[0]);
return result==null ? defaultValue : new Integer(result.intValue());
|
public void | nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index)
if (value == null || defaultValue.equals(value) ) {
LogFactory.getLog( getClass() ).trace("binding null to parameter: " + index);
st.setNull(index, Types.INTEGER);
} else {
LogFactory.getLog( getClass() ).trace("binding " + value + " to parameter: " + index);
st.setInt(index, ((Integer)value).intValue());
}
|
public java.lang.Object | replace(java.lang.Object original, java.lang.Object target, java.lang.Object owner)
return original;
|
public java.lang.Class | returnedClass()
return int.class;
|
public void | setParameterValues(java.util.Properties parameters)
this.defaultValue = Integer.valueOf((String) parameters.get("default"));
|
public int[] | sqlTypes()
return new int[] {Types.INTEGER};
|