Save This Page
Home » hibernate-annotations-3.4.0.CR1 » org.hibernate » type » [javadoc | source]
org.hibernate.type
abstract public class: EntityType [javadoc | source]
java.lang.Object
   org.hibernate.type.AbstractType
      org.hibernate.type.EntityType

All Implemented Interfaces:
    AssociationType, Type

Direct Known Subclasses:
    ManyToOneType, OneToOneType, SpecialOneToOneType

A reference to an entity class
Field Summary
protected final  String uniqueKeyPropertyName     
protected final  boolean isEmbeddedInXML     
Constructor:
 protected EntityType(String entityName,
    String uniqueKeyPropertyName,
    boolean eager,
    boolean isEmbeddedInXML,
    boolean unwrapProxy) 
Method from org.hibernate.type.EntityType Summary:
compare,   deepCopy,   fromXMLNode,   getAssociatedEntityName,   getAssociatedEntityName,   getAssociatedJoinable,   getHashCode,   getIdentifier,   getIdentifierOrUniqueKeyPropertyName,   getIdentifierOrUniqueKeyType,   getIdentifierType,   getIdentifierType,   getLHSPropertyName,   getName,   getOnCondition,   getPropertyName,   getRHSUniqueKeyPropertyName,   getReturnedClass,   getSemiResolvedType,   isAssociationType,   isEmbeddedInXML,   isEntityType,   isEqual,   isMutable,   isNotEmbedded,   isNull,   isNullable,   isOneToOne,   isReferenceToPrimaryKey,   isSame,   isXMLElement,   loadByUniqueKey,   nullSafeGet,   nullSafeGet,   replace,   resolve,   resolveIdentifier,   setToXMLNode,   toLoggableString,   toString
Methods from org.hibernate.type.AbstractType:
assemble,   beforeAssemble,   compare,   disassemble,   getHashCode,   getHashCode,   getSemiResolvedType,   hydrate,   isAnyType,   isAssociationType,   isCollectionType,   isComponentType,   isDirty,   isEntityType,   isEqual,   isEqual,   isModified,   isSame,   isXMLElement,   replace,   replaceNode,   resolve,   semiResolve
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.type.EntityType Detail:
 public int compare(Object x,
    Object y,
    EntityMode entityMode) 
 public Object deepCopy(Object value,
    EntityMode entityMode,
    SessionFactoryImplementor factory) 
 public Object fromXMLNode(Node xml,
    Mapping factory) throws HibernateException 
 public final String getAssociatedEntityName() 
 public String getAssociatedEntityName(SessionFactoryImplementor factory) 
 public Joinable getAssociatedJoinable(SessionFactoryImplementor factory) throws MappingException 
 public int getHashCode(Object x,
    EntityMode entityMode,
    SessionFactoryImplementor factory) 
 protected final Object getIdentifier(Object value,
    SessionImplementor session) throws HibernateException 
 public final String getIdentifierOrUniqueKeyPropertyName(Mapping factory) throws MappingException 
 public final Type getIdentifierOrUniqueKeyType(Mapping factory) throws MappingException 
 Type getIdentifierType(Mapping factory) 
 Type getIdentifierType(SessionImplementor session) throws MappingException 
 public String getLHSPropertyName() 
 public String getName() 
 public String getOnCondition(String alias,
    SessionFactoryImplementor factory,
    Map enabledFilters) throws MappingException 
 public String getPropertyName() 
 public String getRHSUniqueKeyPropertyName() 
 public final Class getReturnedClass() 
    This returns the wrong class for an entity with a proxy, or for a named entity. Theoretically it should return the proxy class, but it doesn't.
 public Type getSemiResolvedType(SessionFactoryImplementor factory) 
 public boolean isAssociationType() 
 public boolean isEmbeddedInXML() 
 public final boolean isEntityType() 
 public boolean isEqual(Object x,
    Object y,
    EntityMode entityMode,
    SessionFactoryImplementor factory) 
 public boolean isMutable() 
 protected boolean isNotEmbedded(SessionImplementor session) 
 protected boolean isNull(Object owner,
    SessionImplementor session) 
 abstract protected boolean isNullable()
 abstract public boolean isOneToOne()
 public boolean isReferenceToPrimaryKey() 
    Does this association foreign key reference the primary key of the other table?
 public final boolean isSame(Object x,
    Object y,
    EntityMode entityMode) 
 public boolean isXMLElement() 
 public Object loadByUniqueKey(String entityName,
    String uniqueKeyPropertyName,
    Object key,
    SessionImplementor session) throws HibernateException 
    Load an instance by a unique key that is not the primary key.
 public Object nullSafeGet(ResultSet rs,
    String name,
    SessionImplementor session,
    Object owner) throws HibernateException, SQLException 
 public final Object nullSafeGet(ResultSet rs,
    String[] names,
    SessionImplementor session,
    Object owner) throws HibernateException, SQLException 
 public Object replace(Object original,
    Object target,
    SessionImplementor session,
    Object owner,
    Map copyCache) throws HibernateException 
 public Object resolve(Object value,
    SessionImplementor session,
    Object owner) throws HibernateException 
    Resolve an identifier or unique key value
 protected final Object resolveIdentifier(Serializable id,
    SessionImplementor session) throws HibernateException 
    Resolve an identifier
 public  void setToXMLNode(Node node,
    Object value,
    SessionFactoryImplementor factory) throws HibernateException 
 public String toLoggableString(Object value,
    SessionFactoryImplementor factory) throws HibernateException 
 public String toString()