java.lang.Object org.hibernate.mapping.PersistentClass org.hibernate.mapping.RootClass
All Implemented Interfaces: TableOwner, Filterable, MetaAttributable, Serializable
Gavin
public Object accept(PersistentClassVisitor mv) { return mv.accept(this); }
{ return mv.accept(this); }
public void addSubclass(Subclass subclass) throws MappingException { super.addSubclass(subclass); setPolymorphic(true); }
{ super.addSubclass(subclass); setPolymorphic(true); }
public String getCacheConcurrencyStrategy() { return cacheConcurrencyStrategy; }
{ return cacheConcurrencyStrategy; }
public String getCacheRegionName() { return cacheRegionName==null ? getEntityName() : cacheRegionName; }
{ return cacheRegionName==null ? getEntityName() : cacheRegionName; }
public Value getDiscriminator() { return discriminator; }
{ return discriminator; }
public Class getEntityPersisterClass() { return entityPersisterClass; }
{ return entityPersisterClass; }
public KeyValue getIdentifier() { return identifier; }
{ return identifier; }
public Property getIdentifierProperty() { return identifierProperty; }
{ return identifierProperty; }
public Set getIdentityTables() { Set tables = new HashSet(); Iterator iter = getSubclassClosureIterator(); while ( iter.hasNext() ) { PersistentClass clazz = (PersistentClass) iter.next(); if ( clazz.isAbstract() == null || !clazz.isAbstract().booleanValue() ) tables.add( clazz.getIdentityTable() ); } return tables; }
{ Set tables = new HashSet(); Iterator iter = getSubclassClosureIterator(); while ( iter.hasNext() ) { PersistentClass clazz = (PersistentClass) iter.next(); if ( clazz.isAbstract() == null || !clazz.isAbstract().booleanValue() ) tables.add( clazz.getIdentityTable() ); } return tables; }
public KeyValue getKey() { return getIdentifier(); }
{ return getIdentifier(); }
public Iterator getKeyClosureIterator() { return new SingletonIterator( getKey() ); }
{ return new SingletonIterator( getKey() ); }
public int getOptimisticLockMode() { return optimisticLockMode; }
{ return optimisticLockMode; }
public Iterator getPropertyClosureIterator() { return getPropertyIterator(); }
{ return getPropertyIterator(); }
public RootClass getRootClass() { return this; }
{ return this; }
public Table getRootTable() { return getTable(); }
{ return getTable(); }
public int getSubclassId() { return 0; }
{ return 0; }
public PersistentClass getSuperclass() { return null; }
{ return null; }
public Set getSynchronizedTables() { return synchronizedTables; }
{ return synchronizedTables; }
public Table getTable() { return table; }
{ return table; }
public Iterator getTableClosureIterator() { return new SingletonIterator( getTable() ); }
{ return new SingletonIterator( getTable() ); }
public Property getVersion() { return version; }
{ return version; }
public String getWhere() { return where; }
{ return where; }
public boolean hasEmbeddedIdentifier() { return embeddedIdentifier; }
{ return embeddedIdentifier; }
public boolean hasIdentifierProperty() { return identifierProperty!=null; }
{ return identifierProperty!=null; }
public boolean isDiscriminatorInsertable() { return discriminatorInsertable; }
{ return discriminatorInsertable; }
public boolean isExplicitPolymorphism() { return explicitPolymorphism; }
{ return explicitPolymorphism; }
public boolean isForceDiscriminator() { return forceDiscriminator; }
{ return forceDiscriminator; }
public boolean isInherited() { return false; }
{ return false; }
public boolean isJoinedSubclass() { return false; }
public boolean isLazyPropertiesCacheable() { return lazyPropertiesCacheable; }
{ return lazyPropertiesCacheable; }
public boolean isMutable() { return mutable; }
{ return mutable; }
public boolean isPolymorphic() { return polymorphic; }
{ return polymorphic; }
public boolean isVersioned() { return version!=null; }
{ return version!=null; }
int nextSubclassId() { return ++nextSubclassId; }
{ return ++nextSubclassId; }
public void setCacheConcurrencyStrategy(String cacheConcurrencyStrategy) { this.cacheConcurrencyStrategy = cacheConcurrencyStrategy; }
{ this.cacheConcurrencyStrategy = cacheConcurrencyStrategy; }
public void setCacheRegionName(String cacheRegionName) { this.cacheRegionName = cacheRegionName; }
{ this.cacheRegionName = cacheRegionName; }
public void setDiscriminator(Value discriminator) { this.discriminator = discriminator; }
{ this.discriminator = discriminator; }
public void setDiscriminatorInsertable(boolean insertable) { this.discriminatorInsertable = insertable; }
{ this.discriminatorInsertable = insertable; }
public void setEmbeddedIdentifier(boolean embeddedIdentifier) { this.embeddedIdentifier = embeddedIdentifier; }
{ this.embeddedIdentifier = embeddedIdentifier; }
public void setEntityPersisterClass(Class persister) { this.entityPersisterClass = persister; }
{ this.entityPersisterClass = persister; }
public void setExplicitPolymorphism(boolean explicitPolymorphism) { this.explicitPolymorphism = explicitPolymorphism; }
{ this.explicitPolymorphism = explicitPolymorphism; }
public void setForceDiscriminator(boolean forceDiscriminator) { this.forceDiscriminator = forceDiscriminator; }
{ this.forceDiscriminator = forceDiscriminator; }
public void setIdentifier(KeyValue identifier) { this.identifier = identifier; }
{ this.identifier = identifier; }
public void setIdentifierProperty(Property identifierProperty) { this.identifierProperty = identifierProperty; identifierProperty.setPersistentClass(this); }
{ this.identifierProperty = identifierProperty; identifierProperty.setPersistentClass(this); }
public void setLazyPropertiesCacheable(boolean lazyPropertiesCacheable) { this.lazyPropertiesCacheable = lazyPropertiesCacheable; }
{ this.lazyPropertiesCacheable = lazyPropertiesCacheable; }
public void setMutable(boolean mutable) { this.mutable = mutable; }
{ this.mutable = mutable; }
public void setPolymorphic(boolean polymorphic) { this.polymorphic = polymorphic; }
{ this.polymorphic = polymorphic; }
public void setTable(Table table) { this.table=table; }
{ this.table=table; }
public void setVersion(Property version) { this.version = version; }
{ this.version = version; }
public void setWhere(String string) { where = string; }
{ where = string; }
public void validate(Mapping mapping) throws MappingException { super.validate(mapping); if ( !getIdentifier().isValid(mapping) ) { throw new MappingException( "identifier mapping has wrong number of columns: " + getEntityName() + " type: " + getIdentifier().getType().getName() ); } checkCompositeIdentifier(); }
{ super.validate(mapping); if ( !getIdentifier().isValid(mapping) ) { throw new MappingException( "identifier mapping has wrong number of columns: " + getEntityName() + " type: " + getIdentifier().getType().getName() ); } checkCompositeIdentifier(); }