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, toColumnNullness
compare, 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, toString
beforeAssemble, getHashCode, isAnyType, isCollectionType, isComponentType, isEqual, replace, replaceNode, semiResolve
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
beforeAssemble, getHashCode, isAnyType, isCollectionType, isComponentType, isEqual, replace, semiResolve
public 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
Type
sqlTypes(mapping).length
getColumnSpan
in interface Type
getColumnSpan
in class OneToOneType
mapping
- The mapping object :/MappingException
- Generally indicates an issue accessing the passed mapping object.public int[] sqlTypes(Mapping mapping) throws MappingException
Type
Types
) for the columns mapped by this type.sqlTypes
in interface Type
sqlTypes
in class OneToOneType
mapping
- The mapping object :/MappingException
- Generally indicates an issue accessing the passed mapping object.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
names
- the column namessession
- the sessionowner
- the parent entityHibernateException
SQLException
Type.resolve(Object, SessionImplementor, Object)
public Serializable disassemble(Object value, SessionImplementor session, Object owner) throws HibernateException
Type
disassemble
in interface Type
disassemble
in class OneToOneType
value
- the value to cachesession
- the sessionowner
- optional parent entity object (needed for collections)HibernateException
public Object assemble(Serializable oid, SessionImplementor session, Object owner) throws HibernateException
Type
assemble
in interface Type
assemble
in class OneToOneType
oid
- the disassembled state from the cachesession
- the sessionowner
- the parent entity objectHibernateException
Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved