站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

IdentifierCollection (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.mapping
Class IdentifierCollection

java.lang.Object
  extended bynet.sf.hibernate.mapping.Collection
      extended bynet.sf.hibernate.mapping.IdentifierCollection
All Implemented Interfaces:
Fetchable, Value
Direct Known Subclasses:
IdentifierBag

public abstract class IdentifierCollection
extends Collection

A collection with a synthetic "identifier" column


Field Summary
static String DEFAULT_IDENTIFIER_COLUMN_NAME
           
 
Fields inherited from class net.sf.hibernate.mapping.Collection
DEFAULT_ELEMENT_COLUMN_NAME, DEFAULT_KEY_COLUMN_NAME
 
Constructor Summary
IdentifierCollection(PersistentClass owner)
           
 
Method Summary
 SimpleValue getIdentifier()
           
 boolean isIdentified()
           
 void setIdentifier(SimpleValue identifier)
           
 void validate(Mapping mapping)
           
 
Methods inherited from class net.sf.hibernate.mapping.Collection
createAllKeys, createForeignKey, getBatchSize, getCache, getCollectionPersisterClass, getCollectionTable, getCollectionType, getColumnIterator, getColumnSpan, getComparator, getElement, getFormula, getKey, getOrderBy, getOuterJoinFetchSetting, getOwner, getOwnerClass, getRole, getTable, getType, getWhere, hasOrphanDelete, isArray, isIndexed, isInverse, isLazy, isNullable, isOneToMany, isPrimitiveArray, isSet, isSimpleValue, isSorted, isUnique, isValid, setBatchSize, setCache, setCollectionPersisterClass, setCollectionTable, setComparator, setElement, setInverse, setKey, setLazy, setOrderBy, setOrphanDelete, setOuterJoinFetchSetting, setOwner, setRole, setSorted, setWhere
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_IDENTIFIER_COLUMN_NAME

public static final String DEFAULT_IDENTIFIER_COLUMN_NAME
See Also:
Constant Field Values
Constructor Detail

IdentifierCollection

public IdentifierCollection(PersistentClass owner)
Method Detail

getIdentifier

public SimpleValue getIdentifier()

setIdentifier

public void setIdentifier(SimpleValue identifier)

isIdentified

public final boolean isIdentified()
Overrides:
isIdentified in class Collection

validate

public void validate(Mapping mapping)
              throws MappingException
Overrides:
validate in class Collection
Throws:
MappingException