|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ElmoManager
Manages the basic operations of Elmo JavaBeans.
| Method Summary | ||
|---|---|---|
void |
close()
Closes any transactions or connections in the manager. |
|
void |
close(Iterator<?> iter)
Close an Iterator created by iterate() immediately, instead of waiting until the iteration is complete or connection is closed. |
|
boolean |
contains(Object entity)
Check if the instance belongs to the current persistence context. |
|
Memento |
createMemento()
Creates a new Memento Object that represents the current state of the Bean pool. |
|
ElmoQuery |
createQuery(String query)
Creates an ElmoQuery to evaluate the query string. |
|
|
designate(Class<T> concept)
Assigns type to a new anonymous entity. |
|
|
designate(Class<T> concept,
QName qname)
Assigns type to the named entity subject. |
|
|
designateEntity(Class<T> concept,
Object entity)
|
|
Entity |
find(QName qname)
Retrives the rdf:type, creates a Java Bean class and instantiates it. |
|
|
findAll(Class<T> role)
Creates an iteration of entities that implement this role. |
|
Locale |
getLocale()
Locale this manager was created with. |
|
EntityTransaction |
getTransaction()
Returns the resource-level transaction object. |
|
boolean |
isOpen()
If this manager currently has an open connection to the repository. |
|
|
merge(T bean)
Copies all non-null values from bean into an entity managed by this manager. |
|
void |
redoMemento(Memento memento)
Replays changes made after this memento object was created. |
|
void |
refresh(Object entity)
If entity implements Refreshable, its method
Refreshable.refresh() will be called. |
|
void |
remove(Object entity)
Removes the given entity or subject and all implementing roles. |
|
Entity |
removeDesignation(Class<?> concept,
Object entity)
|
|
|
rename(T entity,
QName qname)
Removes all the references to the given entity and
replaces them with references to the new qname. |
|
void |
undoMemento(Memento memento)
Rolls-back any changes made after this memento object was created. |
|
| Method Detail |
|---|
Locale getLocale()
boolean isOpen()
true if the connection is open.void close()
void close(Iterator<?> iter)
EntityTransaction getTransaction()
Memento createMemento()
undoMemento(Memento)void undoMemento(Memento memento)
memento - Transaction to be rolled-back.createMemento()void redoMemento(Memento memento)
memento - Transaction to be repeated.createMemento()boolean contains(Object entity)
entity -
true if the instance belongs to the current
persistence context.<T> T designate(Class<T> concept)
type to a new anonymous entity.
concept - interface to be translated to rdf:type.
<T> T designate(Class<T> concept,
QName qname)
type to the named entity subject.
concept - interface to be translated to rdf:type.qname - URI or encoded BNode id of the entity.
<T> T designateEntity(Class<T> concept,
Object entity)
Entity removeDesignation(Class<?> concept,
Object entity)
<T> T rename(T entity,
QName qname)
entity and
replaces them with references to the new qname.
entity - current Entity to be renamedqname - new qualified name of the entity
entity with the given qname.Entity find(QName qname)
qname - URI or encoded BNode id of the entity.
ElmoQuery createQuery(String query)
query - rdf query in the configured language - default SPARQL.
ElmoQuery.<T> Iterable<T> findAll(Class<T> role)
role.
role - concept or behaviour to be translated to one or more
rdf:types.
void refresh(Object entity)
entity implements Refreshable, its method
Refreshable.refresh() will be called.
entity - <T> T merge(T bean)
bean implements Entity its QName will
be used to look up the managed entity, otherwise a new anonymous entity
will be created.
T - bean - with values that shoud be merged
void remove(Object entity)
entity - to be removed from the pool and repository.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||