|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.persistence.metadata.Element
com.arsdigita.persistence.metadata.MetadataRoot
The MetadataRoot is a singleton class that serves as an entry point for the metadata system.
Field Summary | |
static SimpleType |
BIGDECIMAL
|
static SimpleType |
BIGINTEGER
|
static SimpleType |
BLOB
|
static SimpleType |
BOOLEAN
|
static SimpleType |
BYTE
|
static SimpleType |
CHARACTER
|
static SimpleType |
CLOB
|
static SimpleType |
DATE
|
static SimpleType |
DOUBLE
|
static SimpleType |
FLOAT
|
static SimpleType |
INTEGER
|
static SimpleType |
LONG
|
static SimpleType |
OBJECT
|
static SimpleType |
SHORT
|
static SimpleType |
STRING
|
static String |
versionId
|
Constructor Summary | |
MetadataRoot()
|
Method Summary | |
static void |
clear()
|
Set |
getAssociations()
|
static MetadataRoot |
getMetadataRoot()
Returns the MetadataRoot instance for this JVM. |
static MetadataRoot |
getMetadataRoot(Root root)
|
Model |
getModel(String name)
Returns the Model with the specified name, or null if no such model exists. |
Iterator |
getModels()
Returns an Iterator of all the Models contained by this MetadataRoot. |
ObjectType |
getObjectType(String name)
Returns an ObjectType given a fully qualified type name or null if no such type exists. |
Collection |
getObjectTypes()
Returns a collection of the object types in this metadata root |
SimpleType |
getPrimitiveType(String name)
Returns one of the primitive or predefined types. |
Root |
getRoot()
|
boolean |
hasModel(String name)
Returns true if a model with the given name exists as part of this MetadataRoot. |
boolean |
hasTable(String name)
|
static void |
loadPrimitives()
|
Methods inherited from class com.arsdigita.persistence.metadata.Element |
equals, getColumnNumber, getFilename, getLineNumber, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
public static SimpleType BIGINTEGER
public static SimpleType BIGDECIMAL
public static SimpleType BOOLEAN
public static SimpleType BYTE
public static SimpleType CHARACTER
public static SimpleType DATE
public static SimpleType DOUBLE
public static SimpleType FLOAT
public static SimpleType INTEGER
public static SimpleType LONG
public static SimpleType SHORT
public static SimpleType STRING
public static SimpleType BLOB
public static SimpleType CLOB
public static SimpleType OBJECT
Constructor Detail |
public MetadataRoot()
Method Detail |
public static final void loadPrimitives()
public static final void clear()
public static final MetadataRoot getMetadataRoot(Root root)
public static final MetadataRoot getMetadataRoot()
public final Root getRoot()
public Model getModel(String name)
name
- The name of the model to get.
public boolean hasModel(String name)
public Iterator getModels()
Model
public ObjectType getObjectType(String name)
name
- The fully qualified name of the ObjectType.
public Collection getObjectTypes()
public Set getAssociations()
public SimpleType getPrimitiveType(String name)
name
- The name of the primitive type.
public boolean hasTable(String name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |