org.geotools.arcsde.pool
Class ArcSDEPooledConnection

Object
  extended by SeConnection
      extended by ArcSDEPooledConnection

Deprecated. still here waiting for gce to switch to ISession

public class ArcSDEPooledConnection
extends SeConnection

An SeConnection that returns itself to the connection pool instead of closing on each call to close().

Since:
2.3.x
Author:
Gabriel Roldan (TOPP)

Field Summary
 
Fields inherited from class SeConnection
SE_ONE_THREAD_POLICY, SE_TRYLOCK_POLICY, SE_UNPROTECTED_POLICY
 
Constructor Summary
ArcSDEPooledConnection(ObjectPool pool, ArcSDEConnectionConfig config)
          Deprecated.  
 
Method Summary
 void close()
          Deprecated. Doesn't close the connection, but returns itself to the connection pool.
 void commitTransaction()
          Deprecated.  
 boolean equals(Object other)
          Deprecated. Compares for reference equality
 SeLayer getLayer(String layerName)
          Deprecated.  
 SeRasterColumn getRasterColumn(String rasterName)
          Deprecated.  
 SeTable getTable(String tableName)
          Deprecated.  
 int hashCode()
          Deprecated.  
 boolean isClosed()
          Deprecated.  
 boolean isPassivated()
          Deprecated. Returns whether this connection is on the connection pool domain or not.
 boolean isTransactionActive()
          Deprecated. Returns whether a transaction is in progress over this connection As for any other public method, this one can't be called if isPassivated() is true.
 void rollbackTransaction()
          Deprecated.  
 void startTransaction()
          Deprecated.  
 String toString()
          Deprecated.  
 
Methods inherited from class SeConnection
getDatabaseName, getDBMSInfo, getLayers, getRasterColumns, getRelease, getSdeDbaName, getTimeSinceLastRT, getUser, setConcurrency, setTransactionAutoCommit, testServer
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArcSDEPooledConnection

public ArcSDEPooledConnection(ObjectPool pool,
                              ArcSDEConnectionConfig config)
                       throws SeException
Deprecated. 
Throws:
SeException
Method Detail

isClosed

public final boolean isClosed()
Deprecated. 
Overrides:
isClosed in class SeConnection

isPassivated

public boolean isPassivated()
Deprecated. 
Returns whether this connection is on the connection pool domain or not.

Returns:
true if this connection has beed returned to the pool and thus cannot be used, false if its safe to keep using it.

getLayer

public SeLayer getLayer(String layerName)
                 throws DataSourceException
Deprecated. 
Throws:
DataSourceException

getRasterColumn

public SeRasterColumn getRasterColumn(String rasterName)
                               throws DataSourceException
Deprecated. 
Throws:
DataSourceException

getTable

public SeTable getTable(String tableName)
                 throws DataSourceException
Deprecated. 
Throws:
DataSourceException

startTransaction

public void startTransaction()
                      throws SeException
Deprecated. 
Overrides:
startTransaction in class SeConnection
Throws:
SeException

commitTransaction

public void commitTransaction()
                       throws SeException
Deprecated. 
Overrides:
commitTransaction in class SeConnection
Throws:
SeException

isTransactionActive

public boolean isTransactionActive()
Deprecated. 
Returns whether a transaction is in progress over this connection

As for any other public method, this one can't be called if isPassivated() is true.

Returns:

rollbackTransaction

public void rollbackTransaction()
                         throws SeException
Deprecated. 
Overrides:
rollbackTransaction in class SeConnection
Throws:
SeException

close

public void close()
           throws IllegalStateException
Deprecated. 
Doesn't close the connection, but returns itself to the connection pool.

Overrides:
close in class SeConnection
Throws:
IllegalStateException - if close() is called while a transaction is in progress
See Also:
destroy()

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

equals

public boolean equals(Object other)
Deprecated. 
Compares for reference equality

Overrides:
equals in class Object

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object


Copyright © 1996-2009 Geotools. All Rights Reserved.