Methods Summary |
---|
public java.lang.Object | assemble(java.io.Serializable cached, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
return deepCopy(cached);
|
public java.lang.Object | deepCopy(java.lang.Object x)
if (x==null) return null;
String[] result = new String[2];
String[] input = (String[]) x;
result[0] = input[0];
result[1] = input[1];
return result;
|
public java.io.Serializable | disassemble(java.lang.Object value, org.hibernate.engine.SessionImplementor session)
return (Serializable) deepCopy(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 ( (String[]) x )[0].equals( ( (String[]) y )[0] ) && ( (String[]) x )[1].equals( ( (String[]) y )[1] );
|
public java.lang.String[] | getPropertyNames()
return new String[] { "s1", "s2" };
|
public org.hibernate.type.Type[] | getPropertyTypes()
return new Type[] { Hibernate.STRING, Hibernate.STRING };
|
public java.lang.Object | getPropertyValue(java.lang.Object component, int property)
return ( (String[]) component )[property];
|
public int | hashCode(java.lang.Object x)
String[] a = (String[]) x;
return a[0].hashCode() + 31 * a[1].hashCode();
|
public boolean | isMutable() return true;
|
public java.lang.Object | nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
String first = (String) Hibernate.STRING.nullSafeGet(rs, names[0]);
String second = (String) Hibernate.STRING.nullSafeGet(rs, names[1]);
return ( first==null && second==null ) ? null : new String[] { first, second };
|
public void | nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index, org.hibernate.engine.SessionImplementor session)
String[] strings = (value==null) ? new String[2] : (String[]) value;
Hibernate.STRING.nullSafeSet(st, strings[0], index);
Hibernate.STRING.nullSafeSet(st, strings[1], index+1);
|
public java.lang.Object | replace(java.lang.Object original, java.lang.Object target, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
return original;
|
public java.lang.Class | returnedClass()
return String[].class;
|
public void | setPropertyValue(java.lang.Object component, int property, java.lang.Object value)
( (String[]) component )[property] = (String) value;
|
public int[] | sqlTypes()
return TYPES;
|