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;
}
else {
return deepCopy( cached, session.getEntityMode(), session.getFactory() );
}
|
public void | beforeAssemble(java.io.Serializable cached, org.hibernate.engine.SessionImplementor session)
|
public int | compare(java.lang.Object x, java.lang.Object y, org.hibernate.EntityMode entityMode)
return ( (Comparable) x ).compareTo(y);
|
public java.io.Serializable | disassemble(java.lang.Object value, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
if (value==null) {
return null;
}
else {
return (Serializable) deepCopy( value, session.getEntityMode(), session.getFactory() );
}
|
public int | getHashCode(java.lang.Object x, org.hibernate.EntityMode entityMode)
return x.hashCode();
|
public int | getHashCode(java.lang.Object x, org.hibernate.EntityMode entityMode, org.hibernate.engine.SessionFactoryImplementor factory)
return getHashCode(x, entityMode);
|
public Type | getSemiResolvedType(org.hibernate.engine.SessionFactoryImplementor factory)
return this;
|
public java.lang.Object | hydrate(java.sql.ResultSet rs, java.lang.String[] names, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
// TODO: this is very suboptimal for some subclasses (namely components),
// since it does not take advantage of two-phase-load
return nullSafeGet(rs, names, session, owner);
|
public boolean | isAnyType()
return false;
|
public boolean | isAssociationType()
return false;
|
public boolean | isCollectionType()
return false;
|
public boolean | isComponentType()
return false;
|
public boolean | isDirty(java.lang.Object old, java.lang.Object current, org.hibernate.engine.SessionImplementor session)
return !isSame( old, current, session.getEntityMode() );
|
public boolean | isEntityType()
return false;
|
public boolean | isEqual(java.lang.Object x, java.lang.Object y, org.hibernate.EntityMode entityMode)
return EqualsHelper.equals(x, y);
|
public boolean | isEqual(java.lang.Object x, java.lang.Object y, org.hibernate.EntityMode entityMode, org.hibernate.engine.SessionFactoryImplementor factory)
return isEqual(x, y, entityMode);
|
public boolean | isModified(java.lang.Object old, java.lang.Object current, boolean[] checkable, org.hibernate.engine.SessionImplementor session)
return isDirty(old, current, session);
|
public boolean | isSame(java.lang.Object x, java.lang.Object y, org.hibernate.EntityMode entityMode)
return isEqual(x, y, entityMode);
|
public boolean | isXMLElement()
return false;
|
public java.lang.Object | replace(java.lang.Object original, java.lang.Object target, org.hibernate.engine.SessionImplementor session, java.lang.Object owner, java.util.Map copyCache, ForeignKeyDirection foreignKeyDirection)
boolean include;
if ( isAssociationType() ) {
AssociationType atype = (AssociationType) this;
include = atype.getForeignKeyDirection()==foreignKeyDirection;
}
else {
include = ForeignKeyDirection.FOREIGN_KEY_FROM_PARENT==foreignKeyDirection;
}
return include ? replace(original, target, session, owner, copyCache) : target;
|
protected static void | replaceNode(org.dom4j.Node container, org.dom4j.Element value)
if ( container!=value ) { //not really necessary, I guess...
Element parent = container.getParent();
container.detach();
value.setName( container.getName() );
value.detach();
parent.add(value);
}
|
public java.lang.Object | resolve(java.lang.Object value, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
return value;
|
public java.lang.Object | semiResolve(java.lang.Object value, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)
return value;
|