public class SpecialOneToOneType extends OneToOneType
isEmbeddedInXML, uniqueKeyPropertyName| Constructor and Description |
|---|
SpecialOneToOneType(TypeFactory.TypeScope scope,
String referencedEntityName,
ForeignKeyDirection foreignKeyType,
String uniqueKeyPropertyName,
boolean lazy,
boolean unwrapProxy,
String entityName,
String propertyName) |
| Modifier and Type | Method and Description |
|---|---|
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 JDBC types codes (per
Types) for the columns mapped by this type. |
boolean |
useLHSPrimaryKey()
Is the primary key of the owning entity table
to be used in the join?
|
getForeignKeyDirection, getPropertyName, isAlwaysDirtyChecked, isDirty, isDirty, isModified, isNull, isNullable, isOneToOne, nullSafeSet, nullSafeSet, toColumnNullnesscompare, deepCopy, fromXMLNode, getAssociatedEntityName, getAssociatedEntityName, getAssociatedJoinable, getHashCode, getIdentifier, getIdentifierOrUniqueKeyPropertyName, getIdentifierOrUniqueKeyType, getLHSPropertyName, getName, getOnCondition, getReturnedClass, getRHSUniqueKeyPropertyName, getSemiResolvedType, isAssociationType, isEmbeddedInXML, isEntityType, isEqual, isLogicalOneToOne, isMutable, isNotEmbedded, isReferenceToPrimaryKey, isSame, isXMLElement, loadByUniqueKey, nullSafeGet, nullSafeGet, replace, resolve, resolveIdentifier, scope, setToXMLNode, toLoggableString, toStringbeforeAssemble, getHashCode, isAnyType, isCollectionType, isComponentType, isEqual, replace, replaceNode, semiResolveclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbeforeAssemble, getHashCode, isAnyType, isCollectionType, isComponentType, isEqual, replace, semiResolvepublic SpecialOneToOneType(TypeFactory.TypeScope scope, String referencedEntityName, ForeignKeyDirection foreignKeyType, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)
public int getColumnSpan(Mapping mapping) throws MappingException
TypesqlTypes(mapping).lengthgetColumnSpan in interface TypegetColumnSpan in class OneToOneTypemapping - The mapping object :/MappingException - Generally indicates an issue accessing the passed mapping object.public int[] sqlTypes(Mapping mapping) throws MappingException
TypeTypes) for the columns mapped by this type.sqlTypes in interface TypesqlTypes in class OneToOneTypemapping - The mapping object :/MappingException - Generally indicates an issue accessing the passed mapping object.public boolean useLHSPrimaryKey()
AssociationTypeuseLHSPrimaryKey in interface AssociationTypeuseLHSPrimaryKey in class OneToOneTypepublic Object hydrate(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException
Typehydrate in interface Typehydrate in class OneToOneTypenames - the column namessession - the sessionowner - the parent entityHibernateExceptionSQLExceptionType.resolve(Object, SessionImplementor, Object)public Serializable disassemble(Object value, SessionImplementor session, Object owner) throws HibernateException
Typedisassemble in interface Typedisassemble in class OneToOneTypevalue - the value to cachesession - the sessionowner - optional parent entity object (needed for collections)HibernateExceptionpublic Object assemble(Serializable oid, SessionImplementor session, Object owner) throws HibernateException
Typeassemble in interface Typeassemble in class OneToOneTypeoid - the disassembled state from the cachesession - the sessionowner - the parent entity objectHibernateExceptionCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved