public class ContentEntry extends Object
This class is only of concern to subclasses, client code should never see this class.
Each 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;
Constructor and Description |
---|
ContentEntry(ContentDataStore dataStore,
Name typeName)
Creates the entry.
|
Modifier and Type | Method and Description |
---|---|
void |
clearTransaction(Transaction transaction)
Removes a closed transaction from the state cache.
|
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() |
public ContentEntry(ContentDataStore dataStore, Name typeName)
dataStore
- The DataStore of the entry.typeName
- The name of the entry.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 void clearTransaction(Transaction transaction)
Copyright © 1996–2023 Geotools. All rights reserved.