KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > metadata > CollectionMetadata


1 //$Id: CollectionMetadata.java,v 1.1 2004/06/03 16:30:11 steveebersole Exp $
2
package org.hibernate.metadata;
3
4 import org.hibernate.type.Type;
5
6 /**
7  * Exposes collection metadata to the application
8  *
9  * @author Gavin King
10  */

11 public interface CollectionMetadata {
12     /**
13      * The collection key type
14      */

15     public Type getKeyType();
16     /**
17      * The collection element type
18      */

19     public Type getElementType();
20     /**
21      * The collection index type (or null if the collection has no index)
22      */

23     public Type getIndexType();
24     /**
25      * Is this collection indexed?
26      */

27     public boolean hasIndex();
28     /**
29      * The name of this collection role
30      */

31     public String JavaDoc getRole();
32     /**
33      * Is the collection an array?
34      */

35     public boolean isArray();
36     /**
37      * Is the collection a primitive array?
38      */

39     public boolean isPrimitiveArray();
40     /**
41      * Is the collection lazily initialized?
42      */

43     public boolean isLazy();
44 }
45
46
47
48
49
50
51
Popular Tags