public interface TypeStore
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_TYPE_NAME
The root EntityType name.
|
Modifier and Type | Method and Description |
---|---|
EntityType |
addType(java.io.InputStream stream)
This method adds a new type to the EntityStore
|
EntityType |
getBaseType()
This method is used to retrieve the base entity type definition.
|
java.util.Collection<java.lang.String> |
getSubtypes(java.lang.String type)
Get the names of the immediate descendants of the type specified.
|
EntityType |
getTypeForName(java.lang.String name)
This method is used to retrieve an EntityType based on it's name.
|
void |
reset()
Remove all non-default Entities and reset the core Types.
|
EntityType |
updateType(java.io.InputStream stream)
This method updates a type in the EntityStore with a new definiton.
|
static final java.lang.String BASE_TYPE_NAME
EntityType getBaseType() throws EntityStoreException
EntityStoreException
- if an error occursEntityType getTypeForName(java.lang.String name) throws EntityStoreException, UnknownTypeException
name
- EntityStoreException
- if there was a problem retrieving the
type from the underlying persistent storeUnknownTypeException
- if no type for this name existsjava.util.Collection<java.lang.String> getSubtypes(java.lang.String type) throws EntityStoreException
type
- The name of the parent typeEntityStoreExeption
- Thrown if the type specified does not
exist in the Store.EntityStoreException
EntityType addType(java.io.InputStream stream) throws EntityStoreException
stream
- The stream from which to read the EntityType definitionEntityStoreException
- Thrown if the type already exists.EntityType updateType(java.io.InputStream stream) throws EntityStoreException
stream
- The stream from which to read the EntityType definitionEntityStoreException
- Thrown if the type does not already exist.void reset() throws EntityStoreException
EntityStoreException
- if the store cannot be cleared
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel