|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A Repository stores content Elements, and can retrieve specified elements, store new elements (unless it is read-only), and optionally handle locking and versioning of elements. A single repository stores elements of a particular element type.
| Field Summary | |
static java.lang.String |
ROLE |
| Method Summary | |
void |
add(Element e)Add a new element to the repository. |
void |
clear(java.lang.String elementType)Remove all elements of the specified type from this repository |
void |
delete(java.lang.String elementType, java.lang.Object elementId)Remove the specified element from the repository |
java.util.Set |
getAttributeNames(java.lang.String elementType) |
java.lang.String |
getDescription()Return a Human-readable description string for this repository |
java.util.List |
getIds(java.lang.String elementType, Element criteria, int offset, int max)Retrieve a list of element Ids from the repository. |
java.util.Set |
getKeyAttributeNames(java.lang.String elementType) |
java.util.Set |
getSubTypes(java.lang.String elementType) |
void |
lock(java.lang.String elementType, java.lang.Object elementId) |
boolean |
locked(java.lang.String elementType, java.lang.Object elementId) |
Element |
retrieve(java.lang.String elementType, java.lang.Object elementId)Retrieve a specific element by it's id. |
Element |
retrieve(java.lang.String elementType, java.lang.Object elementId, int version)Retrieve a specific version of an Element. |
java.util.List |
supportedTypes()Return a set of Strings of the element types supported by (stored in) this repository. |
void |
unlock(java.lang.String elementType, java.lang.Object elementId) |
boolean |
versioned()Return true if this repository instance supports versioning, false if it does not. |
| Field Detail |
public static final java.lang.String ROLE
| Method Detail |
public java.lang.String getDescription()
public Element retrieve(java.lang.String elementType,
java.lang.Object elementId)
throws RepositoryException
elementType - The name of the type of element to be retrievedelementId - An object containing the identifier of the element to be retrievedRepositoryException - If the specified element cannot be retrieved, or if the element type does not exist
public Element retrieve(java.lang.String elementType,
java.lang.Object elementId,
int version)
throws RepositoryException
RepositoryException
public void add(Element e)
throws RepositoryException
RepositoryException
public java.util.List getIds(java.lang.String elementType,
Element criteria,
int offset,
int max)
throws RepositoryException
RepositoryException
public void delete(java.lang.String elementType,
java.lang.Object elementId)
throws RepositoryException
RepositoryException
public void clear(java.lang.String elementType)
throws RepositoryException
RepositoryException
public boolean versioned()
throws RepositoryException
RepositoryException
public void lock(java.lang.String elementType,
java.lang.Object elementId)
throws RepositoryException
RepositoryException
public void unlock(java.lang.String elementType,
java.lang.Object elementId)
throws RepositoryException
RepositoryException
public boolean locked(java.lang.String elementType,
java.lang.Object elementId)
throws RepositoryException
RepositoryException
public java.util.List supportedTypes()
throws RepositoryException
RepositoryException
public java.util.Set getAttributeNames(java.lang.String elementType)
throws RepositoryException
RepositoryException
public java.util.Set getKeyAttributeNames(java.lang.String elementType)
throws RepositoryException
RepositoryException
public java.util.Set getSubTypes(java.lang.String elementType)
throws RepositoryException
RepositoryException
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||