Save This Page
Home » Hibernate-3.3.2.GA » org.hibernate » mapping » [javadoc | source]
org.hibernate.mapping
abstract public class: PersistentClass [javadoc | source]
java.lang.Object
   org.hibernate.mapping.PersistentClass

All Implemented Interfaces:
    Filterable, MetaAttributable, Serializable

Direct Known Subclasses:
    UnionSubclass, Subclass, SingleTableSubclass, RootClass, JoinedSubclass

Mapping for an entity.
Field Summary
public static final  String NULL_DISCRIMINATOR_MAPPING     
public static final  String NOT_NULL_DISCRIMINATOR_MAPPING     
protected final  Set synchronizedTables     
protected  int optimisticLockMode     
Method from org.hibernate.mapping.PersistentClass Summary:
accept,   addFilter,   addJoin,   addProperty,   addSubclass,   addSubclassJoin,   addSubclassProperty,   addSubclassTable,   addSynchronizedTable,   addTuplizer,   checkColumnDuplication,   checkColumnDuplication,   checkPropertyColumnDuplication,   createPrimaryKey,   getBatchSize,   getCacheConcurrencyStrategy,   getClassName,   getCustomSQLDelete,   getCustomSQLDeleteCheckStyle,   getCustomSQLInsert,   getCustomSQLInsertCheckStyle,   getCustomSQLUpdate,   getCustomSQLUpdateCheckStyle,   getDirectSubclasses,   getDiscriminator,   getDiscriminatorColumnIterator,   getDiscriminatorValue,   getEntityName,   getEntityPersisterClass,   getFilterMap,   getIdentifier,   getIdentifierMapper,   getIdentifierProperty,   getIdentityTable,   getJoinClosureIterator,   getJoinClosureSpan,   getJoinIterator,   getJoinNumber,   getKey,   getKeyClosureIterator,   getLoaderName,   getMappedClass,   getMetaAttribute,   getMetaAttributes,   getNodeName,   getNonDuplicatedPropertyIterator,   getOptimisticLockMode,   getProperty,   getPropertyClosureIterator,   getPropertyClosureSpan,   getPropertyIterator,   getProxyInterface,   getProxyInterfaceName,   getRecursiveProperty,   getReferenceablePropertyIterator,   getReferencedProperty,   getRootClass,   getRootTable,   getSubclassClosureIterator,   getSubclassId,   getSubclassIterator,   getSubclassJoinClosureIterator,   getSubclassPropertyClosureIterator,   getSubclassSpan,   getSubclassTableClosureIterator,   getSuperclass,   getSynchronizedTables,   getTable,   getTableClosureIterator,   getTemporaryIdTableDDL,   getTemporaryIdTableName,   getTuplizerImplClassName,   getTuplizerMap,   getUnjoinedPropertyIterator,   getVersion,   getWhere,   hasDom4jRepresentation,   hasEmbeddedIdentifier,   hasIdentifierMapper,   hasIdentifierProperty,   hasNaturalId,   hasPojoRepresentation,   hasSelectBeforeUpdate,   hasSubclasses,   hasSubselectLoadableCollections,   isAbstract,   isClassOrSuperclassJoin,   isClassOrSuperclassTable,   isCustomDeleteCallable,   isCustomInsertCallable,   isCustomUpdateCallable,   isDiscriminatorInsertable,   isDiscriminatorValueNotNull,   isDiscriminatorValueNull,   isExplicitPolymorphism,   isForceDiscriminator,   isInherited,   isJoinedSubclass,   isLazy,   isLazyPropertiesCacheable,   isMutable,   isPolymorphic,   isVersioned,   nextSubclassId,   prepareTemporaryTables,   setAbstract,   setBatchSize,   setClassName,   setCustomSQLDelete,   setCustomSQLInsert,   setCustomSQLUpdate,   setDiscriminatorValue,   setDynamicInsert,   setDynamicUpdate,   setEntityName,   setEntityPersisterClass,   setIdentifierMapper,   setLazy,   setLoaderName,   setMetaAttributes,   setNodeName,   setOptimisticLockMode,   setProxyInterfaceName,   setSelectBeforeUpdate,   setSubselectLoadableCollections,   toString,   useDynamicInsert,   useDynamicUpdate,   validate
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.mapping.PersistentClass Detail:
 abstract public Object accept(PersistentClassVisitor mv)
 public  void addFilter(String name,
    String condition) 
 public  void addJoin(Join join) 
 public  void addProperty(Property p) 
 public  void addSubclass(Subclass subclass) throws MappingException 
 protected  void addSubclassJoin(Join join) 
 protected  void addSubclassProperty(Property prop) 
 protected  void addSubclassTable(Table subclassTable) 
 public  void addSynchronizedTable(String table) 
 public  void addTuplizer(EntityMode entityMode,
    String implClassName) 
 protected  void checkColumnDuplication() 
 protected  void checkColumnDuplication(Set distinctColumns,
    Iterator columns) throws MappingException 
 protected  void checkPropertyColumnDuplication(Set distinctColumns,
    Iterator properties) throws MappingException 
 public  void createPrimaryKey() 
 public int getBatchSize() 
 abstract public String getCacheConcurrencyStrategy()
 public String getClassName() 
 public String getCustomSQLDelete() 
 public ExecuteUpdateResultCheckStyle getCustomSQLDeleteCheckStyle() 
 public String getCustomSQLInsert() 
 public ExecuteUpdateResultCheckStyle getCustomSQLInsertCheckStyle() 
 public String getCustomSQLUpdate() 
 public ExecuteUpdateResultCheckStyle getCustomSQLUpdateCheckStyle() 
 public Iterator getDirectSubclasses() 
 abstract public Value getDiscriminator()
 protected Iterator getDiscriminatorColumnIterator() 
 public String getDiscriminatorValue() 
 public String getEntityName() 
 abstract public Class getEntityPersisterClass()
 public Map getFilterMap() 
 abstract public KeyValue getIdentifier()
 public Component getIdentifierMapper() 
 abstract public Property getIdentifierProperty()
 public Table getIdentityTable() 
 public Iterator getJoinClosureIterator() 
 public int getJoinClosureSpan() 
 public Iterator getJoinIterator() 
 public int getJoinNumber(Property prop) 
 abstract public KeyValue getKey()
 abstract public Iterator getKeyClosureIterator()
 public String getLoaderName() 
 public Class getMappedClass() throws MappingException 
 public MetaAttribute getMetaAttribute(String name) 
 public Map getMetaAttributes() 
 public String getNodeName() 
 protected Iterator getNonDuplicatedPropertyIterator() 
 abstract public int getOptimisticLockMode()
 public Property getProperty(String propertyName) throws MappingException 
 abstract public Iterator getPropertyClosureIterator()
 public int getPropertyClosureSpan() 
 public Iterator getPropertyIterator() 
    Build an iterator over the properties defined on this class. The returned iterator only accounts for "normal" properties (i.e. non-identifier properties).

    Differs from #getUnjoinedPropertyIterator in that the iterator we return here will include properties defined as part of a join.

 public Class getProxyInterface() 
 public String getProxyInterfaceName() 
 public Property getRecursiveProperty(String propertyPath) throws MappingException 
 public Iterator getReferenceablePropertyIterator() 
    Build an iterator of properties which are "referenceable".
 public Property getReferencedProperty(String propertyPath) throws MappingException 
    Given a property path, locate the appropriate referenceable property reference.

    A referenceable property is a property which can be a target of a foreign-key mapping (an identifier or explcitly named in a property-ref).

 abstract public RootClass getRootClass()
 abstract public Table getRootTable()
 public Iterator getSubclassClosureIterator() 
 abstract public int getSubclassId()
 public Iterator getSubclassIterator() 
    Iterate over subclasses in a special 'order', most derived subclasses first.
 public Iterator getSubclassJoinClosureIterator() 
 public Iterator getSubclassPropertyClosureIterator() 
 public int getSubclassSpan() 
 public Iterator getSubclassTableClosureIterator() 
 abstract public PersistentClass getSuperclass()
 abstract public Set getSynchronizedTables()
 abstract public Table getTable()
 abstract public Iterator getTableClosureIterator()
 public String getTemporaryIdTableDDL() 
 public String getTemporaryIdTableName() 
 public String getTuplizerImplClassName(EntityMode mode) 
 public Map getTuplizerMap() 
 public Iterator getUnjoinedPropertyIterator() 
    Build an iterator over the properties defined on this class which are not defined as part of a join. As with #getPropertyIterator , the returned iterator only accounts for non-identifier properties.
 abstract public Property getVersion()
 abstract public String getWhere()
 public boolean hasDom4jRepresentation() 
 abstract public boolean hasEmbeddedIdentifier()
 public boolean hasIdentifierMapper() 
 abstract public boolean hasIdentifierProperty()
 public boolean hasNaturalId() 
 public boolean hasPojoRepresentation() 
 public boolean hasSelectBeforeUpdate() 
 public boolean hasSubclasses() 
 public boolean hasSubselectLoadableCollections() 
 public Boolean isAbstract() 
 public boolean isClassOrSuperclassJoin(Join join) 
 public boolean isClassOrSuperclassTable(Table closureTable) 
 public boolean isCustomDeleteCallable() 
 public boolean isCustomInsertCallable() 
 public boolean isCustomUpdateCallable() 
 abstract public boolean isDiscriminatorInsertable()
 public boolean isDiscriminatorValueNotNull() 
 public boolean isDiscriminatorValueNull() 
 abstract public boolean isExplicitPolymorphism()
 public boolean isForceDiscriminator() 
 abstract public boolean isInherited()
 abstract public boolean isJoinedSubclass()
 public boolean isLazy() 
 abstract public boolean isLazyPropertiesCacheable()
 abstract public boolean isMutable()
 abstract public boolean isPolymorphic()
 abstract public boolean isVersioned()
 abstract int nextSubclassId()
 public  void prepareTemporaryTables(Mapping mapping,
    Dialect dialect) 
 public  void setAbstract(Boolean isAbstract) 
 public  void setBatchSize(int batchSize) 
 public  void setClassName(String className) 
 public  void setCustomSQLDelete(String customSQLDelete,
    boolean callable,
    ExecuteUpdateResultCheckStyle checkStyle) 
 public  void setCustomSQLInsert(String customSQLInsert,
    boolean callable,
    ExecuteUpdateResultCheckStyle checkStyle) 
 public  void setCustomSQLUpdate(String customSQLUpdate,
    boolean callable,
    ExecuteUpdateResultCheckStyle checkStyle) 
 public  void setDiscriminatorValue(String discriminatorValue) 
 public  void setDynamicInsert(boolean dynamicInsert) 
 public  void setDynamicUpdate(boolean dynamicUpdate) 
 public  void setEntityName(String entityName) 
 abstract public  void setEntityPersisterClass(Class classPersisterClass)
 public  void setIdentifierMapper(Component handle) 
 public  void setLazy(boolean lazy) 
 public  void setLoaderName(String loaderName) 
 public  void setMetaAttributes(Map metas) 
 public  void setNodeName(String nodeName) 
 public  void setOptimisticLockMode(int optimisticLockMode) 
 public  void setProxyInterfaceName(String proxyInterfaceName) 
 public  void setSelectBeforeUpdate(boolean selectBeforeUpdate) 
 public  void setSubselectLoadableCollections(boolean hasSubselectCollections) 
 public String toString() 
 public boolean useDynamicInsert() 
 public boolean useDynamicUpdate() 
 public  void validate(Mapping mapping) throws MappingException