|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Transaction.State
FeatureStore
implementations can use this interface to externalize the
state they require to implement Transaction
support.
The commit and rollback methods will
be called as required. The intention is that several FeatureStore
s can
share common transaction state (example: Postgis feature stores sharing a connection
to the same database).
Method Summary | |
---|---|
void |
addAuthorization(String authorizationID)
Call back used for Transaction.useAuthorization(authorizationID) . |
LockResponse |
commit()
Call back used for Transaction.commit() . |
void |
rollback()
Call back used for Transaction.rollback() |
void |
setTransaction(Transaction transaction)
Provides configuration information for this Transaction.State . |
Method Detail |
---|
void setTransaction(Transaction transaction)
Transaction.State
.
This method is called with non null transaction
when this state is
put into a transaction.
This transaction will be used to determine correct event notification.
This method is called again with null
when state is
removed (usually during
Transaction.close()
).
void addAuthorization(String authorizationID) throws IOException
Transaction.useAuthorization(authorizationID)
.
IOException
LockResponse commit() throws IOException
Transaction.commit()
.
IOException
void rollback() throws IOException
Transaction.rollback()
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |