|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectArcSDEReferencedConnection
public class ArcSDEReferencedConnection
There can be only one! It ends up being modal based on a transaction being around. If supplied with Transaction.AUTO_COMMIT the connection is viewed as being read only.
| Constructor Summary | |
|---|---|
ArcSDEReferencedConnection(ObjectPool pool,
ArcSDEConnectionConfig config)
|
|
| Method Summary | ||
|---|---|---|
void |
close(SeState state)
|
|
void |
close(SeStreamOp stream)
|
|
void |
commitTransaction()
Commits the current transaction. |
|
SeQuery |
createAndExecuteQuery(String[] propertyNames,
SeSqlConstruct sql)
|
|
SeState |
createChildState(long parentStateId)
Creates either a direct child state of parentStateId, or a sibling being an exact copy of parentStatId if either the state can't be closed because its in use or parentStateId does not belong to the current user. |
|
SeDelete |
createSeDelete()
|
|
SeInsert |
createSeInsert()
|
|
SeLayer |
createSeLayer()
|
|
SeQuery |
createSeQuery()
|
|
SeQuery |
createSeQuery(String[] propertyNames,
SeSqlConstruct sql)
Creates an SeQuery to fetch the given propertyNames with the provided attribute based restrictions This method shall only be called from inside a Command |
|
SeRasterColumn |
createSeRasterColumn()
|
|
SeRasterColumn |
createSeRasterColumn(SeObjectId rasterColumnId)
|
|
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). |
|
boolean |
equals(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 query,
SdeRow currentRow)
|
|
String |
getDatabaseName()
|
|
SeDBMSInfo |
getDBMSInfo()
|
|
SeVersion |
getDefaultVersion()
Returns the up to date information about the database default version |
|
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)
|
|
SeRelease |
getRelease()
|
|
SeTable |
getTable(String tableName)
|
|
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 As for any other public method, this one can't be called if ISession.isDisposed() is true. |
|
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
|
|
String |
toString()
|
|
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArcSDEReferencedConnection(ObjectPool pool,
ArcSDEConnectionConfig config)
throws IOException
IOException| Method Detail |
|---|
public <T> T issue(Command<T> command)
throws IOException
ISession
issue in interface ISessioncommand - the command to execute
IOException - if an exception occurs handling any ArcSDE resource while executing the commandISession.issue(org.geotools.arcsde.pool.Command)public final boolean isClosed()
isClosed in interface ISessionISession.isClosed()public boolean isDisposed()
ISession
isDisposed 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#isPassivated()
public SeLayer getLayer(String layerName)
throws IOException
getLayer in interface ISessionIOExceptionISession.getLayer(java.lang.String)
public SeRasterColumn getRasterColumn(String rasterName)
throws IOException
getRasterColumn in interface ISessionIOExceptionISession.getRasterColumn(java.lang.String)
public SeTable getTable(String tableName)
throws IOException
getTable in interface ISessionIOExceptionISession.getTable(java.lang.String)
public void startTransaction()
throws IOException
ISession
If this method succeeds, ISession.isTransactionActive() will return true afterwards
startTransaction in interface ISessionIOExceptionISession.startTransaction()
public void commitTransaction()
throws IOException
ISessionThis method shall only be called from inside a command
commitTransaction in interface ISessionIOExceptionISession.commitTransaction()public boolean isTransactionActive()
ISession
As for any other public method, this one can't be called if ISession.isDisposed() is true.
isTransactionActive in interface ISessionISession.isTransactionActive()
public void rollbackTransaction()
throws IOException
ISession
When 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 dispose()
throws IllegalStateException
ISession
dispose in interface ISessionIllegalStateException - if close() is called while a transaction is in progressISession#close()public String toString()
toString in class Objectpublic boolean equals(Object other)
ISession
equals in interface ISessionequals in class ObjectISession.equals(java.lang.Object)public int hashCode()
hashCode in interface ISessionhashCode in class ObjectISession.hashCode()
public List<SeLayer> getLayers()
throws IOException
ISession
getLayers in interface ISessionIOExceptionISession.getLayers()
public String getUser()
throws IOException
getUser in interface ISessionIOExceptionISession.getUser()
public SeRelease getRelease()
throws IOException
getRelease in interface ISessionIOExceptionISession.getRelease()
public String getDatabaseName()
throws IOException
getDatabaseName in interface ISessionIOExceptionISession.getDatabaseName()
public SeDBMSInfo getDBMSInfo()
throws IOException
getDBMSInfo in interface ISessionIOException
public SeLayer createSeLayer()
throws IOException
createSeLayer in interface ISessionIOExceptionISession.createSeLayer()
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.
- Specified by:
createSeTable in interface ISession
- Returns:
-
- Throws:
IOException- See Also:
ISession.createSeTable(java.lang.String)
public SeInsert createSeInsert()
throws IOException
createSeInsert in interface ISessionIOExceptionISession.createSeInsert()
public SeUpdate createSeUpdate()
throws IOException
createSeUpdate in interface ISessionIOExceptionISession.createSeUpdate()
public SeDelete createSeDelete()
throws IOException
createSeDelete in interface ISessionIOExceptionISession.createSeDelete()
public SeRasterColumn createSeRasterColumn()
throws IOException
createSeRasterColumn in interface ISessionIOExceptionISession.createSeRasterColumn()
public SeRasterColumn createSeRasterColumn(SeObjectId rasterColumnId)
throws IOException
createSeRasterColumn in interface ISessionIOExceptionISession.createSeRasterColumn(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 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 ISessionIOException
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 SeState createState(SeObjectId stateId)
throws IOException
createState in interface ISessionIOExceptionISession.createState(com.esri.sde.sdk.client.SeObjectId)
public SeQuery createSeQuery()
throws IOException
createSeQuery in interface ISessionIOExceptionISession.createSeQuery()
public SeQuery createSeQuery(String[] propertyNames,
SeSqlConstruct sql)
throws IOException
ISession This method shall only be called from inside a Command
createSeQuery in interface ISessionIOExceptionISession.createSeQuery(java.lang.String[], com.esri.sde.sdk.client.SeSqlConstruct)
public SeQuery createAndExecuteQuery(String[] propertyNames,
SeSqlConstruct sql)
throws IOException
createAndExecuteQuery in interface ISessionIOExceptionISession.createAndExecuteQuery(java.lang.String[],
com.esri.sde.sdk.client.SeSqlConstruct)
public SeVersion getDefaultVersion()
throws IOException
ISession
getDefaultVersion in interface ISessionIOExceptionISession.getDefaultVersion()
public SeState createChildState(long parentStateId)
throws IOException
createChildState in interface ISessionIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||