public abstract class Command<R> extends Object
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 and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
abstract R |
execute(ISession session,
SeConnection connection)
Executed to operate on an SeConnection, a Command is scheduled for execution on a Session.
|
public abstract R execute(ISession session, SeConnection connection) throws SeException, 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 ArcSDESeException
IOException
Copyright © 1996–2019 Geotools. All rights reserved.