CollectionSecondPasspublic abstract class CollectionSecondPass extends Object implements SecondPass
Fields Summary |
---|
private static Log | log | Mappings | mappings | org.hibernate.mapping.Collection | collection | private Map | localInheritedMetas |
Methods Summary |
---|
private static java.lang.String | columns(org.hibernate.mapping.Value val)
StringBuffer columns = new StringBuffer();
Iterator iter = val.getColumnIterator();
while ( iter.hasNext() ) {
columns.append( ( (Selectable) iter.next() ).getText() );
if ( iter.hasNext() ) columns.append( ", " );
}
return columns.toString();
| public void | doSecondPass(java.util.Map persistentClasses)
if ( log.isDebugEnabled() )
log.debug( "Second pass for collection: " + collection.getRole() );
secondPass( persistentClasses, localInheritedMetas ); // using local since the inheritedMetas at this point is not the correct map since it is always the empty map
collection.createAllKeys();
if ( log.isDebugEnabled() ) {
String msg = "Mapped collection key: " + columns( collection.getKey() );
if ( collection.isIndexed() )
msg += ", index: " + columns( ( (IndexedCollection) collection ).getIndex() );
if ( collection.isOneToMany() ) {
msg += ", one-to-many: "
+ ( (OneToMany) collection.getElement() ).getReferencedEntityName();
}
else {
msg += ", element: " + columns( collection.getElement() );
}
log.debug( msg );
}
| public abstract void | secondPass(java.util.Map persistentClasses, java.util.Map inheritedMetas)
|
|