Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » cfg » annotations » [javadoc | source]
org.hibernate.cfg.annotations
abstract public class: CollectionBinder [javadoc | source]
java.lang.Object
   org.hibernate.cfg.annotations.CollectionBinder

Direct Known Subclasses:
    SetBinder, PrimitiveArrayBinder, BagBinder, MapBinder, ListBinder, ArrayBinder, IdBagBinder

Collection binder
Field Summary
protected  Collection collection     
protected  String propertyName     
 PropertyHolder propertyHolder     
 int batchSize     
 String cacheConcurrencyStrategy     
 String cacheRegionName     
protected  IndexColumn indexColumn     
protected  String hqlOrderBy     
protected  boolean cascadeDeleteEnabled     
protected  String mapKeyPropertyName     
protected  HashMap localGenerators     
Constructor:
 protected CollectionBinder() 
 protected CollectionBinder(boolean sorted) 
Method from org.hibernate.cfg.annotations.CollectionBinder Summary:
bind,   bindManyToManySecondPass,   bindManytoManyInverseFk,   bindOneToManySecondPass,   bindStarToManySecondPass,   createCollection,   getCollection,   getCollectionBinder,   getSecondPass,   setBatchSize,   setCache,   setCascadeDeleteEnabled,   setCascadeStrategy,   setCollectionType,   setEjb3OrderBy,   setElementColumns,   setEmbedded,   setExplicitAssociationTable,   setFkJoinColumns,   setIgnoreNotFound,   setIndexColumn,   setInsertable,   setInverseJoinColumns,   setJoinColumns,   setLocalGenerators,   setMapKey,   setMapKeyColumns,   setMapKeyManyToManyColumns,   setMappedBy,   setMappings,   setOneToMany,   setProperty,   setPropertyAccessorName,   setPropertyHolder,   setPropertyName,   setSort,   setSqlOrderBy,   setTableBinder,   setTargetEntity,   setUpdatable
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.cfg.annotations.CollectionBinder Detail:
 public  void bind() 
 protected  void bindManyToManySecondPass(Collection collValue,
    Map persistentClasses,
    Ejb3JoinColumn[] joinColumns,
    Ejb3JoinColumn[] inverseJoinColumns,
    Ejb3Column[] elementColumns,
    boolean isEmbedded,
    XClass collType,
    boolean ignoreNotFound,
    boolean unique,
    boolean cascadeDeleteEnabled,
    TableBinder associationTableBinder,
    XProperty property,
    PropertyHolder parentPropertyHolder,
    String hqlOrderBy,
    ExtendedMappings mappings) throws MappingException 
 public static  void bindManytoManyInverseFk(PersistentClass referencedEntity,
    Ejb3JoinColumn[] columns,
    SimpleValue value,
    boolean unique,
    ExtendedMappings mappings) 
    bind the inverse FK of a ManyToMany If we are in a mappedBy case, read the columns from the associated colletion element Otherwise delegates to the usual algorithm
 protected  void bindOneToManySecondPass(Collection collection,
    Map persistentClasses,
    Ejb3JoinColumn[] fkJoinColumns,
    XClass collectionType,
    boolean cascadeDeleteEnabled,
    boolean ignoreNotFound,
    String hqlOrderBy,
    ExtendedMappings extendedMappings) 
 protected boolean bindStarToManySecondPass(Map persistentClasses,
    XClass collType,
    Ejb3JoinColumn[] fkJoinColumns,
    Ejb3JoinColumn[] keyColumns,
    Ejb3JoinColumn[] inverseColumns,
    Ejb3Column[] elementColumns,
    boolean isEmbedded,
    XProperty property,
    boolean unique,
    TableBinder associationTableBinder,
    boolean ignoreNotFound,
    ExtendedMappings mappings) 
    return true if it's a Fk, false if it's an association table
 abstract protected Collection createCollection(PersistentClass persistentClass)
 public Collection getCollection() 
 public static CollectionBinder getCollectionBinder(String entityName,
    XProperty property,
    boolean isIndexed) 
    collection binder factory
 public SecondPass getSecondPass(Ejb3JoinColumn[] fkJoinColumns,
    Ejb3JoinColumn[] keyColumns,
    Ejb3JoinColumn[] inverseColumns,
    Ejb3Column[] elementColumns,
    Ejb3Column[] mapKeyColumns,
    Ejb3JoinColumn[] mapKeyManyToManyColumns,
    boolean isEmbedded,
    XProperty property,
    XClass collType,
    boolean ignoreNotFound,
    boolean unique,
    TableBinder assocTableBinder,
    ExtendedMappings mappings) 
 public  void setBatchSize(BatchSize batchSize) 
 public  void setCache(Cache cacheAnn) 
 public  void setCascadeDeleteEnabled(boolean onDeleteCascade) 
 public  void setCascadeStrategy(String cascadeStrategy) 
 public  void setCollectionType(XClass collectionType) 
 public  void setEjb3OrderBy(OrderBy orderByAnn) 
 public  void setElementColumns(Ejb3Column[] elementColumns) 
 public  void setEmbedded(boolean annotationPresent) 
 public  void setExplicitAssociationTable(boolean explicitAssocTable) 
 public  void setFkJoinColumns(Ejb3JoinColumn[] ejb3JoinColumns) 
 public  void setIgnoreNotFound(boolean ignoreNotFound) 
 public  void setIndexColumn(IndexColumn indexColumn) 
 public  void setInsertable(boolean insertable) 
 public  void setInverseJoinColumns(Ejb3JoinColumn[] inverseJoinColumns) 
 public  void setJoinColumns(Ejb3JoinColumn[] joinColumns) 
 public  void setLocalGenerators(HashMap localGenerators) 
 public  void setMapKey(MapKey key) 
 public  void setMapKeyColumns(Ejb3Column[] mapKeyColumns) 
 public  void setMapKeyManyToManyColumns(Ejb3JoinColumn[] mapJoinColumns) 
 public  void setMappedBy(String mappedBy) 
 public  void setMappings(ExtendedMappings mappings) 
 public  void setOneToMany(boolean oneToMany) 
 public  void setProperty(XProperty property) 
 public  void setPropertyAccessorName(String propertyAccessorName) 
 public  void setPropertyHolder(PropertyHolder propertyHolder) 
 public  void setPropertyName(String propertyName) 
 public  void setSort(Sort sortAnn) 
 public  void setSqlOrderBy(OrderBy orderByAnn) 
 public  void setTableBinder(TableBinder tableBinder) 
 public  void setTargetEntity(XClass targetEntity) 
 public  void setUpdatable(boolean updatable)