|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.type.AbstractType org.hibernate.type.EntityType org.hibernate.type.OneToOneType org.hibernate.type.SpecialOneToOneType
A one-to-one association that maps to specific formula(s) instead of the primary key column of the owning entity.
Field Summary |
Fields inherited from class org.hibernate.type.EntityType |
isEmbeddedInXML, uniqueKeyPropertyName |
Constructor Summary | |
SpecialOneToOneType(String referencedEntityName,
ForeignKeyDirection foreignKeyType,
String uniqueKeyPropertyName,
boolean lazy,
boolean unwrapProxy,
String entityName,
String propertyName)
|
Method Summary | |
Object |
assemble(Serializable oid,
SessionImplementor session,
Object owner)
Reconstruct the object from its cached "disassembled" state. |
Serializable |
disassemble(Object value,
SessionImplementor session,
Object owner)
Return a cacheable "disassembled" representation of the object. |
int |
getColumnSpan(Mapping mapping)
How many columns are used to persist this type. |
Object |
hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class, or the identifier of an entity or collection, from a JDBC resultset. |
int[] |
sqlTypes(Mapping mapping)
Return the SQL type codes for the columns mapped by this type. |
boolean |
useLHSPrimaryKey()
Is the primary key of the owning entity table to be used in the join? |
Methods inherited from class org.hibernate.type.OneToOneType |
getForeignKeyDirection, getPropertyName, isAlwaysDirtyChecked, isDirty, isDirty, isModified, isNull, isNullable, isOneToOne, nullSafeSet, nullSafeSet, toColumnNullness |
Methods inherited from class org.hibernate.type.AbstractType |
beforeAssemble, getHashCode, isAnyType, isCollectionType, isComponentType, isEqual, replace, replaceNode, semiResolve |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.hibernate.type.Type |
beforeAssemble, getHashCode, isAnyType, isCollectionType, isComponentType, isEqual, replace, semiResolve |
Constructor Detail |
public SpecialOneToOneType(String referencedEntityName, ForeignKeyDirection foreignKeyType, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)
Method Detail |
public int getColumnSpan(Mapping mapping) throws MappingException
Type
getColumnSpan
in interface Type
getColumnSpan
in class OneToOneType
MappingException
public int[] sqlTypes(Mapping mapping) throws MappingException
Type
sqlTypes
in interface Type
sqlTypes
in class OneToOneType
MappingException
public boolean useLHSPrimaryKey()
AssociationType
useLHSPrimaryKey
in interface AssociationType
useLHSPrimaryKey
in class OneToOneType
public Object hydrate(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException
Type
hydrate
in interface Type
hydrate
in class OneToOneType
HibernateException
SQLException
public Serializable disassemble(Object value, SessionImplementor session, Object owner) throws HibernateException
Type
disassemble
in interface Type
disassemble
in class OneToOneType
HibernateException
public Object assemble(Serializable oid, SessionImplementor session, Object owner) throws HibernateException
Type
assemble
in interface Type
assemble
in class OneToOneType
HibernateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |