|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectContentEntry
public final class ContentEntry
An entry for a type or feature source provided by a datastore.
This class is only of concern to subclasses, client code should never see this class.
An entry maintains state on a per-transaction basis. The getState(Transaction)
method is used to get at this state.
ContentEntry entry = ...;
Transaction tx1 = new Transaction();
Transaction tx2 = new Transaction();
ContentState s1 = entry.getState( tx1 );
ContentState s2 = entry.getState( tx2 );
s1 != s2;
modules/library/data (gt-data.jar)
Constructor Summary | |
---|---|
ContentEntry(ContentDataStore dataStore,
Name typeName)
Creates the entry. |
Method Summary | |
---|---|
void |
dispose()
Disposes the entry by disposing all maintained state. |
ContentDataStore |
getDataStore()
Backpointer to datastore. |
Name |
getName()
Qualified name of the entry. |
ContentState |
getState(Transaction transaction)
Returns state for the entry for a particular transaction. |
String |
getTypeName()
Unqualified name of the entry. |
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContentEntry(ContentDataStore dataStore, Name typeName)
dataStore
- The datastore of the entry.typeName
- The name of the entry.Method Detail |
---|
public Name getName()
public String getTypeName()
Equivalent to: getName().getLocalPart()
.
public ContentDataStore getDataStore()
public ContentState getState(Transaction transaction)
In the event that no state exists for the supplied transaction one will
be created by copying the state of Transaction.AUTO_COMMIT
.
transaction
- A transaction.
public void dispose()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |