|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.arcsde.session.Command<R>
public abstract class Command<R>
Runnable used to interact with an ArcSDEConnection.
Instances of this class can be sent to Session.issue(Command)
in order to be executed. A
Command
has exclusive access to the connection
for the duration of
its execute
method.
This facility is used to prevent a series of complicated locks and try/catch/finally code.
Constructor Summary | |
---|---|
Command()
|
Method Summary | |
---|---|
abstract R |
execute(ISession session,
SeConnection connection)
Executed to operate on an SeConnection, a Command is scheduled for execution on a Session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Command()
Method Detail |
---|
public abstract R execute(ISession session, SeConnection connection) throws SeException, java.io.IOException
Please keep in mind that a Command should be short in duration; you are sharing this SeConnection with other threads.
session
- the Session the command is being executed insideconnection
- the session's connection, used to interact with ArcSDE
SeException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |