[Expand]
Inherited Methods |
From class
org.hibernate.type.OneToOneType
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 session)
|
ForeignKeyDirection
|
getForeignKeyDirection()
|
String
|
getPropertyName()
|
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.
|
boolean
|
isAlwaysDirtyChecked()
We don't need to dirty check one-to-one because of how
assemble/disassemble is implemented and because a one-to-one
association is never dirty
|
boolean
|
isDirty(Object old, Object current, SessionImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
boolean
|
isDirty(Object old, Object current, boolean[] checkable, SessionImplementor session)
|
boolean
|
isModified(Object old, Object current, boolean[] checkable, SessionImplementor session)
|
boolean
|
isNull(Object owner, SessionImplementor session)
|
boolean
|
isNullable()
|
boolean
|
isOneToOne()
Is the association modeled here defined as a 1-1 in the database (physical model)?
|
void
|
nullSafeSet(PreparedStatement st, Object value, int index, boolean[] settable, SessionImplementor session)
|
void
|
nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session)
|
int[]
|
sqlTypes(Mapping session)
|
boolean[]
|
toColumnNullness(Object value, Mapping mapping)
|
boolean
|
useLHSPrimaryKey()
|
|
From class
org.hibernate.type.EntityType
int
|
compare(Object x, Object y, EntityMode entityMode)
Perform a Comparator style comparison between values
|
Object
|
deepCopy(Object value, EntityMode entityMode, SessionFactoryImplementor factory)
Return a deep copy of the persistent state, stopping at entities and at
collections.
|
Object
|
fromXMLNode(Node xml, Mapping factory)
Parse the XML representation of an instance.
|
final
String
|
getAssociatedEntityName()
The name of the associated entity.
|
String
|
getAssociatedEntityName(SessionFactoryImplementor factory)
The name of the associated entity.
|
Joinable
|
getAssociatedJoinable(SessionFactoryImplementor factory)
Retrieves the Joinable defining the associated entity.
|
int
|
getHashCode(Object x, EntityMode entityMode, SessionFactoryImplementor factory)
Get a hash code, consistent with persistence "equality".
|
final
Object
|
getIdentifier(Object value, SessionImplementor session)
|
final
String
|
getIdentifierOrUniqueKeyPropertyName(Mapping factory)
The name of the property on the associated entity to which our FK
refers
|
final
Type
|
getIdentifierOrUniqueKeyType(Mapping factory)
Determine the type of either (1) the identifier if we reference the
associated entity's PK or (2) the unique key to which we refer (i.e.
|
String
|
getLHSPropertyName()
Get the name of a property in the owning entity
that provides the join key (null if the identifier)
|
String
|
getName()
For entity types, the name correlates to the associated entity name.
|
String
|
getOnCondition(String alias, SessionFactoryImplementor factory, Map enabledFilters)
Get the "filtering" SQL fragment that is applied in the
SQL on clause, in addition to the usual join condition
|
String
|
getPropertyName()
|
String
|
getRHSUniqueKeyPropertyName()
The name of a unique property of the associated entity
that provides the join key (null if the identifier of
an entity, or key of a collection)
|
final
Class
|
getReturnedClass()
This returns the wrong class for an entity with a proxy, or for a named
entity.
|
Type
|
getSemiResolvedType(SessionFactoryImplementor factory)
Get the type of a semi-resolved value.
|
boolean
|
isAssociationType()
An entity type is a type of association type
|
boolean
|
isEmbeddedInXML()
|
final
boolean
|
isEntityType()
Explicitly, an entity type is an entity type ;)
|
boolean
|
isEqual(Object x, Object y, EntityMode entityMode, SessionFactoryImplementor factory)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state).
|
boolean
|
isLogicalOneToOne()
Is the association modeled here a 1-1 according to the logical moidel?
|
boolean
|
isMutable()
Are objects of this type mutable.
|
boolean
|
isNotEmbedded(SessionImplementor session)
|
boolean
|
isNull(Object owner, SessionImplementor session)
|
abstract
boolean
|
isNullable()
|
abstract
boolean
|
isOneToOne()
Is the association modeled here defined as a 1-1 in the database (physical model)?
|
boolean
|
isReferenceToPrimaryKey()
Does this association foreign key reference the primary key of the other table?
Otherwise, it references a property-ref.
|
final
boolean
|
isSame(Object x, Object y, EntityMode entityMode)
Two entities are considered the same when their instances are the same.
|
boolean
|
isXMLElement()
|
Object
|
loadByUniqueKey(String entityName, String uniqueKeyPropertyName, Object key, SessionImplementor session)
Load an instance by a unique key that is not the primary key.
|
Object
|
nullSafeGet(ResultSet rs, String name, SessionImplementor session, Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
final
Object
|
nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
Object
|
replace(Object original, Object target, SessionImplementor session, Object owner, Map copyCache)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
Object
|
resolve(Object value, SessionImplementor session, Object owner)
Resolve an identifier or unique key value
|
final
Object
|
resolveIdentifier(Serializable id, SessionImplementor session)
Resolve an identifier via a load.
|
TypeFactory.TypeScope
|
scope()
|
void
|
setToXMLNode(Node node, Object value, SessionFactoryImplementor factory)
A representation of the value to be embedded in an XML element.
|
String
|
toLoggableString(Object value, SessionFactoryImplementor factory)
Generate a loggable representation of an instance of the value mapped by this type.
|
String
|
toString()
Generates a string representation of this type.
|
|
From class
org.hibernate.type.AbstractType
Object
|
assemble(Serializable cached, SessionImplementor session, Object owner)
Reconstruct the object from its cached "disassembled" state.
|
void
|
beforeAssemble(Serializable cached, SessionImplementor session)
Called before assembling a query result set from the query cache, to allow batch fetching
of entities missing from the second-level cache.
|
int
|
compare(Object x, Object y, EntityMode entityMode)
Perform a Comparator style comparison between values
|
Serializable
|
disassemble(Object value, SessionImplementor session, Object owner)
Return a cacheable "disassembled" representation of the object.
|
int
|
getHashCode(Object x, EntityMode entityMode)
Get a hash code, consistent with persistence "equality".
|
int
|
getHashCode(Object x, EntityMode entityMode, SessionFactoryImplementor factory)
Get a hash code, consistent with persistence "equality".
|
Type
|
getSemiResolvedType(SessionFactoryImplementor factory)
Get the type of a semi-resolved value.
|
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.
|
boolean
|
isAnyType()
Return true if the implementation is castable to AnyType .
|
boolean
|
isAssociationType()
|
boolean
|
isCollectionType()
|
boolean
|
isComponentType()
|
boolean
|
isDirty(Object old, Object current, SessionImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
boolean
|
isEntityType()
Return true if the implementation is castable to EntityType .
|
boolean
|
isEqual(Object x, Object y, EntityMode entityMode)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state).
|
boolean
|
isEqual(Object x, Object y, EntityMode entityMode, SessionFactoryImplementor factory)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state).
|
boolean
|
isModified(Object old, Object current, boolean[] checkable, SessionImplementor session)
|
boolean
|
isSame(Object x, Object y, EntityMode entityMode)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state) taking a shortcut for entity references.
|
boolean
|
isXMLElement()
|
Object
|
replace(Object original, Object target, SessionImplementor session, Object owner, Map copyCache, ForeignKeyDirection foreignKeyDirection)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
static
void
|
replaceNode(Node container, Element value)
|
Object
|
resolve(Object value, SessionImplementor session, Object owner)
Map identifiers to entities or collections.
|
Object
|
semiResolve(Object value, SessionImplementor session, Object owner)
Given a hydrated, but unresolved value, return a value that may be used to
reconstruct property-ref associations.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.hibernate.type.AssociationType
|
From interface
org.hibernate.type.Type
abstract
Object
|
assemble(Serializable cached, SessionImplementor session, Object owner)
Reconstruct the object from its cached "disassembled" state.
|
abstract
void
|
beforeAssemble(Serializable cached, SessionImplementor session)
Called before assembling a query result set from the query cache, to allow batch fetching
of entities missing from the second-level cache.
|
abstract
int
|
compare(Object x, Object y, EntityMode entityMode)
Perform a Comparator style comparison between values
|
abstract
Object
|
deepCopy(Object value, EntityMode entityMode, SessionFactoryImplementor factory)
Return a deep copy of the persistent state, stopping at entities and at
collections.
|
abstract
Serializable
|
disassemble(Object value, SessionImplementor session, Object owner)
Return a cacheable "disassembled" representation of the object.
|
abstract
Object
|
fromXMLNode(Node xml, Mapping factory)
Parse the XML representation of an instance.
|
abstract
int
|
getColumnSpan(Mapping mapping)
How many columns are used to persist this type.
|
abstract
int
|
getHashCode(Object x, EntityMode entityMode)
Get a hash code, consistent with persistence "equality".
|
abstract
int
|
getHashCode(Object x, EntityMode entityMode, SessionFactoryImplementor factory)
Get a hash code, consistent with persistence "equality".
|
abstract
String
|
getName()
Returns the abbreviated name of the type.
|
abstract
Class
|
getReturnedClass()
|
abstract
Type
|
getSemiResolvedType(SessionFactoryImplementor factory)
Get the type of a semi-resolved value.
|
abstract
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.
|
abstract
boolean
|
isAnyType()
Return true if the implementation is castable to AnyType .
|
abstract
boolean
|
isAssociationType()
|
abstract
boolean
|
isCollectionType()
|
abstract
boolean
|
isComponentType()
|
abstract
boolean
|
isDirty(Object oldState, Object currentState, boolean[] checkable, SessionImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
abstract
boolean
|
isDirty(Object old, Object current, SessionImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
abstract
boolean
|
isEntityType()
Return true if the implementation is castable to EntityType .
|
abstract
boolean
|
isEqual(Object x, Object y, EntityMode entityMode)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state).
|
abstract
boolean
|
isEqual(Object x, Object y, EntityMode entityMode, SessionFactoryImplementor factory)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state).
|
abstract
boolean
|
isModified(Object dbState, Object currentState, boolean[] checkable, SessionImplementor session)
|
abstract
boolean
|
isMutable()
Are objects of this type mutable.
|
abstract
boolean
|
isSame(Object x, Object y, EntityMode entityMode)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state) taking a shortcut for entity references.
|
abstract
boolean
|
isXMLElement()
|
abstract
Object
|
nullSafeGet(ResultSet rs, String name, SessionImplementor session, Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
abstract
Object
|
nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
abstract
void
|
nullSafeSet(PreparedStatement st, Object value, int index, boolean[] settable, SessionImplementor session)
Write an instance of the mapped class to a prepared statement, ignoring some columns.
|
abstract
void
|
nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session)
Write an instance of the mapped class to a prepared statement.
|
abstract
Object
|
replace(Object original, Object target, SessionImplementor session, Object owner, Map copyCache, ForeignKeyDirection foreignKeyDirection)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
abstract
Object
|
replace(Object original, Object target, SessionImplementor session, Object owner, Map copyCache)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
abstract
Object
|
resolve(Object value, SessionImplementor session, Object owner)
Map identifiers to entities or collections.
|
abstract
Object
|
semiResolve(Object value, SessionImplementor session, Object owner)
Given a hydrated, but unresolved value, return a value that may be used to
reconstruct property-ref associations.
|
abstract
void
|
setToXMLNode(Node node, Object value, SessionFactoryImplementor factory)
A representation of the value to be embedded in an XML element.
|
abstract
int[]
|
sqlTypes(Mapping mapping)
Return the JDBC types codes (per java.sql.Types) for the columns mapped by this type.
|
abstract
boolean[]
|
toColumnNullness(Object value, Mapping mapping)
Given an instance of the type, return an array of boolean, indicating
which mapped columns would be null.
|
abstract
String
|
toLoggableString(Object value, SessionFactoryImplementor factory)
A representation of the value to be embedded in a log file.
|
|