|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 TypegetColumnSpan in class OneToOneTypeMappingExceptionpublic int[] sqlTypes(Mapping mapping) throws MappingException
Type
sqlTypes in interface TypesqlTypes in class OneToOneTypeMappingExceptionpublic boolean useLHSPrimaryKey()
AssociationType
useLHSPrimaryKey in interface AssociationTypeuseLHSPrimaryKey in class OneToOneTypepublic Object hydrate(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException
Type
hydrate in interface Typehydrate in class OneToOneTypeHibernateException
SQLExceptionpublic Serializable disassemble(Object value, SessionImplementor session, Object owner) throws HibernateException
Type
disassemble in interface Typedisassemble in class OneToOneTypeHibernateExceptionpublic Object assemble(Serializable oid, SessionImplementor session, Object owner) throws HibernateException
Type
assemble in interface Typeassemble in class OneToOneTypeHibernateException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||