Methods Summary |
---|
public java.lang.Object | assemble(java.io.Serializable cached, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
if (cached==null) return null;
Serializable[] o = (Serializable[]) cached;
Multiplicity m = new Multiplicity();
m.count = ( (Integer) o[0] ).intValue();
m.glarch = o[1]==null ?
null :
(GlarchProxy) session.internalLoad( Glarch.class.getName(), o[1], false, false );
return m;
|
public java.lang.Object | deepCopy(java.lang.Object value)
if (value==null) return null;
Multiplicity v = (Multiplicity) value;
Multiplicity m = new Multiplicity();
m.count = v.count;
m.glarch = v.glarch;
return m;
|
public java.io.Serializable | disassemble(java.lang.Object value, org.hibernate.engine.SessionImplementor session)
if (value==null) return null;
Multiplicity m = (Multiplicity) value;
return new Serializable[] {
new Integer(m.count),
ForeignKeys.getEntityIdentifierIfNotUnsaved( Glarch.class.getName(), m.glarch, session )
};
|
public boolean | equals(java.lang.Object x, java.lang.Object y)
Multiplicity mx = (Multiplicity) x;
Multiplicity my = (Multiplicity) y;
if (mx==my) return true;
if (mx==null || my==null) return false;
return mx.count==my.count && mx.glarch==my.glarch;
|
public java.lang.String[] | getPropertyNames()
return PROP_NAMES;
|
public org.hibernate.type.Type[] | getPropertyTypes()
return TYPES;
|
public java.lang.Object | getPropertyValue(java.lang.Object component, int property)
Multiplicity o = (Multiplicity) component;
return property==0 ?
(Object) new Integer(o.count) :
(Object) o.glarch;
|
public int | hashCode(java.lang.Object x)
Multiplicity o = (Multiplicity) x;
return o.count + o.glarch.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)
Integer c = (Integer) Hibernate.INTEGER.nullSafeGet( rs, names[0] );
GlarchProxy g = (GlarchProxy) Hibernate.entity(Glarch.class).nullSafeGet(rs, names[1], session, owner);
Multiplicity m = new Multiplicity();
m.count = c==null ? 0 : c.intValue();
m.glarch = g;
return m;
|
public void | nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index, org.hibernate.engine.SessionImplementor session)
Multiplicity o = (Multiplicity) value;
GlarchProxy g;
Integer c;
if (o==null) {
g=null;
c=new Integer(0);
}
else {
g = o.glarch;
c = new Integer(o.count);
}
Hibernate.INTEGER.nullSafeSet(st, c, index, session);
Hibernate.entity(Glarch.class).nullSafeSet(st, g, index+1, session);
|
public java.lang.Object | replace(java.lang.Object original, java.lang.Object target, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
return assemble( disassemble(original, session), session, owner);
|
public java.lang.Class | returnedClass()
return Multiplicity.class;
|
public void | setPropertyValue(java.lang.Object component, int property, java.lang.Object value)
Multiplicity o = (Multiplicity) component;
if (property==0) {
o.count = ( (Integer) value ).intValue();
}
else {
o.glarch = (Glarch) value;
}
|
public int[] | sqlTypes()
return SQL_TYPES;
|