FileDocCategorySizeDatePackage
Map.javaAPI DocHibernate 3.2.51068Mon Aug 01 11:29:34 BST 2005org.hibernate.mapping

Map

public class Map extends IndexedCollection
A map has a primary key consisting of the key columns + index columns.

Fields Summary
Constructors Summary
public Map(PersistentClass owner)

		super(owner);
	
Methods Summary
public java.lang.Objectaccept(ValueVisitor visitor)

		return visitor.accept(this);
	
public voidcreateAllKeys()

		super.createAllKeys();
		if ( !isInverse() ) getIndex().createForeignKey();
	
public org.hibernate.type.CollectionTypegetDefaultCollectionType()

		if ( isSorted() ) {
			return TypeFactory.sortedMap( getRole(), getReferencedPropertyName(), isEmbedded(), getComparator() );
		}
		else if ( hasOrder() ) {
			return TypeFactory.orderedMap( getRole(), getReferencedPropertyName(), isEmbedded() );
		}
		else {
			return TypeFactory.map( getRole(), getReferencedPropertyName(), isEmbedded() );
		}
	
public booleanisMap()

		return true;