AdaptedImmutableTypepublic class AdaptedImmutableType extends ImmutableType Optimize a mutable type, if the user promises not to mutable the
instances. |
Fields Summary |
---|
private final NullableType | mutableType |
Constructors Summary |
---|
public AdaptedImmutableType(NullableType mutableType)
this.mutableType = mutableType;
|
Methods Summary |
---|
public int | compare(java.lang.Object x, java.lang.Object y, org.hibernate.EntityMode entityMode)
return mutableType.compare(x, y, entityMode);
| public java.lang.Object | fromStringValue(java.lang.String xml)
return mutableType.fromStringValue(xml);
| public java.lang.Object | get(java.sql.ResultSet rs, java.lang.String name)
return mutableType.get(rs, name);
| public int | getHashCode(java.lang.Object x, org.hibernate.EntityMode entityMode)
return mutableType.getHashCode(x, entityMode);
| public java.lang.String | getName()
return "imm_" + mutableType.getName();
| public java.lang.Class | getReturnedClass()
return mutableType.getReturnedClass();
| public boolean | isEqual(java.lang.Object x, java.lang.Object y)
return mutableType.isEqual(x, y);
| public void | set(java.sql.PreparedStatement st, java.lang.Object value, int index)
mutableType.set(st, value, index);
| public int | sqlType()
return mutableType.sqlType();
| public java.lang.String | toString(java.lang.Object value)
return mutableType.toString(value);
|
|