|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISession
Method Summary | ||
---|---|---|
void |
close(SeState state)
|
|
void |
close(SeStreamOp stream)
|
|
void |
commitTransaction()
Commits the current transaction. |
|
SeQuery |
createAndExecuteQuery(java.lang.String[] propertyNames,
SeSqlConstruct sql)
|
|
SeState |
createChildState(long parentStateId)
|
|
SeDelete |
createSeDelete()
|
|
SeInsert |
createSeInsert()
|
|
SeRegistration |
createSeRegistration(java.lang.String typeName)
|
|
SeTable |
createSeTable(java.lang.String qualifiedName)
Creates an SeTable named qualifiedName |
|
SeUpdate |
createSeUpdate()
|
|
SeState |
createState(SeObjectId stateId)
|
|
SeColumnDefinition[] |
describe(SeTable table)
|
|
SeColumnDefinition[] |
describe(java.lang.String tableName)
|
|
void |
dispose()
Return to the pool (may not close the internal connection, depends on pool settings). |
|
boolean |
equals(java.lang.Object other)
Compares for reference equality |
|
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 seQuery,
SdeRow currentRow)
|
|
java.lang.String |
getDatabaseName()
|
|
SeDBMSInfo |
getDBMSInfo()
|
|
SeLayer |
getLayer(java.lang.String layerName)
|
|
java.util.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(java.lang.String rasterName)
|
|
java.util.List<java.lang.String> |
getRasterColumns()
|
|
SeRelease |
getRelease()
|
|
SeTable |
getTable(java.lang.String tableName)
|
|
java.lang.String |
getUser()
|
|
int |
hashCode()
|
|
boolean |
isClosed()
|
|
boolean |
isDisposed()
Returns whether this connection is on the connection pool domain or not. |
|
|
issue(Command<T> command)
Executes the given command and returns its result. |
|
boolean |
isTransactionActive()
Returns whether a transaction is in progress over this connection |
|
void |
rollbackTransaction()
Rolls back the current transaction |
|
void |
startTransaction()
Starts a transaction over the connection held by this Session |
|
void |
testServer()
Performs a session sanity check to avoid stale connections to be returned from the pool. |
Method Detail |
---|
<T> T issue(Command<T> command) throws java.io.IOException
command
- the command to execute
java.io.IOException
- if an exception occurs handling any ArcSDE resource while executing the commandvoid testServer() throws java.io.IOException
java.io.IOException
SeConnection#testServer(long)}
boolean isClosed()
boolean isDisposed()
true
if this connection has beed returned to the pool and thus cannot be
used, false
if its safe to keep using it.SeLayer getLayer(java.lang.String layerName) throws java.io.IOException
java.io.IOException
SeRasterColumn getRasterColumn(java.lang.String rasterName) throws java.io.IOException
java.io.IOException
java.util.List<java.lang.String> getRasterColumns() throws java.io.IOException
java.io.IOException
SeTable getTable(java.lang.String tableName) throws java.io.IOException
java.io.IOException
void startTransaction() throws java.io.IOException
If this method succeeds, isTransactionActive()
will return true afterwards
java.io.IOException
#issueStartTransaction(Session)}
void commitTransaction() throws java.io.IOException
This method shall only be called from inside a command
java.io.IOException
boolean isTransactionActive()
As for any other public method, this one can't be called if isDisposed()
is true.
void rollbackTransaction() throws java.io.IOException
When this method returns it is guaranteed that isTransactionActive()
will return
false, regardless of the success of the rollback operation.
java.io.IOException
void dispose() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if dispose() is called while a transaction is in progressboolean equals(java.lang.Object other)
equals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object
java.util.List<SeLayer> getLayers() throws java.io.IOException
java.io.IOException
java.lang.String getUser() throws java.io.IOException
java.io.IOException
SeRelease getRelease() throws java.io.IOException
java.io.IOException
java.lang.String getDatabaseName() throws java.io.IOException
java.io.IOException
SeDBMSInfo getDBMSInfo() throws java.io.IOException
java.io.IOException
SeRegistration createSeRegistration(java.lang.String typeName) throws java.io.IOException
java.io.IOException
SeTable createSeTable(java.lang.String qualifiedName) throws java.io.IOException
qualifiedName; the layer does not need to exist on the server.
- Parameters:
qualifiedName
-
- Returns:
-
- Throws:
java.io.IOException
SeInsert createSeInsert() throws java.io.IOException
java.io.IOException
SeUpdate createSeUpdate() throws java.io.IOException
java.io.IOException
SeDelete createSeDelete() throws java.io.IOException
java.io.IOException
SeColumnDefinition[] describe(java.lang.String tableName) throws java.io.IOException
java.io.IOException
SeColumnDefinition[] describe(SeTable table) throws java.io.IOException
java.io.IOException
SdeRow fetch(SeQuery query) throws java.io.IOException
SdeRow
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.
query
-
java.io.IOException
SdeRow fetch(SeQuery seQuery, SdeRow currentRow) throws java.io.IOException
java.io.IOException
void close(SeState state) throws java.io.IOException
java.io.IOException
void close(SeStreamOp stream) throws java.io.IOException
java.io.IOException
SeState createState(SeObjectId stateId) throws java.io.IOException
java.io.IOException
SeQuery createAndExecuteQuery(java.lang.String[] propertyNames, SeSqlConstruct sql) throws java.io.IOException
java.io.IOException
SeState createChildState(long parentStateId) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |