org.geotools.arcsde.session
Class Commands.CreateAndExecuteQueryCommand

java.lang.Object
  extended by org.geotools.arcsde.session.Command<SeQuery>
      extended by org.geotools.arcsde.session.Commands.CreateAndExecuteQueryCommand
Enclosing class:
Commands

public static final class Commands.CreateAndExecuteQueryCommand
extends Command<SeQuery>

Command to create, prepare, and execute a query.


Constructor Summary
Commands.CreateAndExecuteQueryCommand(java.lang.String[] propertyNames, SeSqlConstruct sql)
           
 
Method Summary
 SeQuery 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

Commands.CreateAndExecuteQueryCommand

public Commands.CreateAndExecuteQueryCommand(java.lang.String[] propertyNames,
                                             SeSqlConstruct sql)
Method Detail

execute

public SeQuery execute(ISession session,
                       SeConnection connection)
                throws SeException,
                       java.io.IOException
Description copied from class: Command
Executed to operate on an SeConnection, a Command is scheduled for execution on a Session.

Please keep in mind that a Command should be short in duration; you are sharing this SeConnection with other threads.

Specified by:
execute in class Command<SeQuery>
Parameters:
session - the Session the command is being executed inside
connection - the session's connection, used to interact with ArcSDE
Returns:
the result of the command execution, or null if the command is not meant to return anything (a command meant to return something should fail if not able to)
Throws:
SeException
java.io.IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.