| Constructor and Description |
|---|
SessionWrapper(ISession wrapped) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(SeState state) |
void |
close(SeStreamOp stream) |
void |
commitTransaction()
Commits the current transaction.
|
SeQuery |
createAndExecuteQuery(String[] propertyNames,
SeSqlConstruct sql) |
SeState |
createChildState(long parentStateId) |
SeDelete |
createSeDelete() |
SeInsert |
createSeInsert() |
SeRegistration |
createSeRegistration(String typeName) |
SeTable |
createSeTable(String qualifiedName)
Creates an SeTable named
qualifiedName |
SeUpdate |
createSeUpdate() |
SeState |
createState(SeObjectId stateId) |
SeColumnDefinition[] |
describe(SeTable table) |
SeColumnDefinition[] |
describe(String tableName) |
void |
dispose()
Return to the pool (may not close the internal connection, depends on pool settings).
|
SdeRow |
fetch(SeQuery query)
Issues a command that fetches a row from an already executed SeQuery and returns the
SdeRow object with its contents. |
SdeRow |
fetch(SeQuery query,
SdeRow currentRow) |
String |
getDatabaseName() |
SeDBMSInfo |
getDBMSInfo() |
SeLayer |
getLayer(String layerName) |
List<SeLayer> |
getLayers()
Returns the live list of layers, not the cached ones, so it may pick up the differences in
the database.
|
SeRasterColumn |
getRasterColumn(String rasterName) |
List<String> |
getRasterColumns() |
SeRelease |
getRelease() |
SeTable |
getTable(String tableName) |
String |
getUser() |
boolean |
isClosed() |
boolean |
isDisposed()
Returns whether this connection is on the connection pool domain or not.
|
<T> T |
issue(Command<T> command)
Executes the given command and returns its result.
|
boolean |
isTransactionActive()
Returns whether a transaction is in progress over this connection
As for any other public method, this one can't be called if
ISession.isDisposed() is true. |
SeQuery |
prepareQuery(SeQueryInfo qInfo,
SeFilter[] spatialConstraints,
ArcSdeVersionHandler version) |
void |
rollbackTransaction()
Rolls back the current transaction
When this method returns it is guaranteed that
ISession.isTransactionActive() will return
false, regardless of the success of the rollback operation. |
void |
startTransaction()
Starts a transaction over the connection held by this Session
If this method succeeds,
ISession.isTransactionActive() will return true afterwards |
void |
testServer()
Performs a session sanity check to avoid stale connections to be returned from the pool.
|
protected final ISession wrapped
public SessionWrapper(ISession wrapped)
public void testServer()
throws IOException
ISessiontestServer in interface ISessionIOExceptionISession.testServer()public void close(SeState state)
throws IOException
close in interface ISessionIOExceptionISession.close(com.esri.sde.sdk.client.SeState)public void close(SeStreamOp stream)
throws IOException
close in interface ISessionIOExceptionISession.close(com.esri.sde.sdk.client.SeStreamOp)public void commitTransaction()
throws IOException
ISessionThis method shall only be called from inside a command
commitTransaction in interface ISessionIOExceptionISession.commitTransaction()public SeQuery createAndExecuteQuery(String[] propertyNames, SeSqlConstruct sql) throws IOException
createAndExecuteQuery in interface ISessionIOExceptionISession.createAndExecuteQuery(java.lang.String[],
com.esri.sde.sdk.client.SeSqlConstruct)public SeDelete createSeDelete()
throws IOException
createSeDelete in interface ISessionIOExceptionISession.createSeDelete()public SeInsert createSeInsert()
throws IOException
createSeInsert in interface ISessionIOExceptionISession.createSeInsert()public SeRegistration createSeRegistration(String typeName) throws IOException
createSeRegistration in interface ISessionIOExceptionISession.createSeRegistration(java.lang.String)public SeTable createSeTable(String qualifiedName) throws IOException
ISessionqualifiedName; the layer does not need to exist on the server.createSeTable in interface ISessionIOExceptionISession.createSeTable(java.lang.String)public SeUpdate createSeUpdate()
throws IOException
createSeUpdate in interface ISessionIOExceptionISession.createSeUpdate()public SeState createState(SeObjectId stateId)
throws IOException
createState in interface ISessionIOExceptionISession.createState(com.esri.sde.sdk.client.SeObjectId)public SeColumnDefinition[] describe(String tableName) throws IOException
describe in interface ISessionIOExceptionISession.describe(java.lang.String)public SeColumnDefinition[] describe(SeTable table)
throws IOException
describe in interface ISessionIOExceptionISession.describe(com.esri.sde.sdk.client.SeTable)public void dispose()
throws IllegalStateException
ISessiondispose in interface ISessionIllegalStateException - if dispose() is called while a transaction is in progressISession.dispose()public SdeRow fetch(SeQuery query) throws IOException
ISessionSdeRow object with its contents.
The point in returning an SdeRow instead of a plain SeRow is that the
former prefetches the row values and this can be freely used outside a Command.
Otherwise the SeRow should only be used inside a command as accessing its values implies
using the connection.
fetch in interface ISessionIOExceptionISession.fetch(com.esri.sde.sdk.client.SeQuery)public SdeRow fetch(SeQuery query, SdeRow currentRow) throws IOException
fetch in interface ISessionIOExceptionISession.fetch(SeQuery, SdeRow)public String getDatabaseName() throws IOException
getDatabaseName in interface ISessionIOExceptionISession.getDatabaseName()public SeDBMSInfo getDBMSInfo()
throws IOException
getDBMSInfo in interface ISessionIOExceptionISession.getDBMSInfo()public SeLayer getLayer(String layerName) throws IOException
getLayer in interface ISessionIOExceptionISession.getLayer(java.lang.String)public List<SeLayer> getLayers() throws IOException
ISessiongetLayers in interface ISessionIOExceptionISession.getLayers()public SeRasterColumn getRasterColumn(String rasterName) throws IOException
getRasterColumn in interface ISessionIOExceptionISession.getRasterColumn(java.lang.String)public List<String> getRasterColumns() throws IOException
getRasterColumns in interface ISessionIOExceptionISession.getRasterColumns()public SeRelease getRelease()
throws IOException
getRelease in interface ISessionIOExceptionISession.getRelease()public SeTable getTable(String tableName) throws IOException
getTable in interface ISessionIOExceptionISession.getTable(java.lang.String)public String getUser() throws IOException
getUser in interface ISessionIOExceptionISession.getUser()public boolean isClosed()
isClosed in interface ISessionISession.isClosed()public boolean isDisposed()
ISessionisDisposed in interface ISessiontrue if this connection has beed returned to the pool and thus cannot be
used, false if its safe to keep using it.ISession.isDisposed()public boolean isTransactionActive()
ISessionAs for any other public method, this one can't be called if ISession.isDisposed() is true.
isTransactionActive in interface ISessionISession.isTransactionActive()public <T> T issue(Command<T> command) throws IOException
ISessionissue in interface ISessioncommand - the command to executeIOException - if an exception occurs handling any ArcSDE resource while executing the
commandISession.issue(org.geotools.arcsde.session.Command)public void rollbackTransaction()
throws IOException
ISessionWhen this method returns it is guaranteed that ISession.isTransactionActive() will return
false, regardless of the success of the rollback operation.
rollbackTransaction in interface ISessionIOExceptionISession.rollbackTransaction()public void startTransaction()
throws IOException
ISessionIf this method succeeds, ISession.isTransactionActive() will return true afterwards
startTransaction in interface ISessionIOExceptionISession.startTransaction()public SeState createChildState(long parentStateId)
throws IOException
createChildState in interface ISessionIOExceptionISession.createChildState(long)public SeQuery prepareQuery(SeQueryInfo qInfo,
SeFilter[] spatialConstraints,
ArcSdeVersionHandler version)
throws IOException
prepareQuery in interface ISessionIOExceptionISession.prepareQuery(SeQueryInfo, SeFilter[],
ArcSdeVersionHandler)Copyright © 1996–2019 Geotools. All rights reserved.