Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\oracle\product\10.2.0\client_2\sqlj\doc\runtime\javadoc\sqlj\runtime\ref\ drwxrwxrwx |
Viewing file: ConnectionContextImpl.html (42.99 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
sqlj.runtime.ref
|
Field Summary | |
static int |
STMT_CACHE_EXCEPTION
|
static int |
STMT_CACHE_NOT_ENABLED
|
Fields inherited from interface sqlj.runtime.ConnectionContext |
CLOSE_CONNECTION,
KEEP_CONNECTION |
Constructor Summary | |
protected |
ConnectionContextImpl(ProfileGroup profiles,
java.sql.Connection conn)
Creates a new connection context impl class with the given profile group and connection. |
protected |
ConnectionContextImpl(ProfileGroup profiles,
ConnectionContext other)
Creates a new connection context impl class with the given profile group which uses the same connection as that of the passed context. |
protected |
ConnectionContextImpl(ProfileGroup profiles,
java.lang.String dsname)
Creates a new connection context impl class with the given profile group which uses the default datasource connection. |
protected |
ConnectionContextImpl(ProfileGroup profiles,
java.lang.String url,
boolean autoCommit)
Creates a new connection context impl class with the given profile group and creates a new connection using the passed url. |
protected |
ConnectionContextImpl(ProfileGroup profiles,
java.lang.String url,
java.util.Properties info,
boolean autoCommit)
Creates a new connection context impl class with the given profile group and creates a new connection using the passed url and properties. |
protected |
ConnectionContextImpl(ProfileGroup profiles,
java.lang.String dsname,
java.lang.String user,
java.lang.String password)
Creates a new connection context impl class with the given profile group which uses the a datasource connection with particular username and password. |
protected |
ConnectionContextImpl(ProfileGroup profiles,
java.lang.String url,
java.lang.String user,
java.lang.String password,
boolean autoCommit)
Creates a new connection context impl class with the given profile group and creates a new connection using the passed url, user and password. |
Method Summary | |
void |
close()
closes the context, its underlying connection and connected profiles. |
void |
close(boolean closeConnection)
Releases all resources used in maintaining database state on this context. |
protected void |
finalize()
Calls the finalize method of the super and closes this context if it has not already been closed. |
sqlj.runtime.profile.ConnectedProfile |
getConnectedProfile(java.lang.Object profileKey)
Returns the connected profile associated with a profileKey for this connection context instance. |
java.sql.Connection |
getConnection()
Returns the underlying connection for this connection context. |
static int |
getDefaultStmtCacheSize()
This retrieves the current default statement cache size for connection contexts. |
ExecutionContext |
getExecutionContext()
Returns the default execution context used by this connection context. |
oracle.jdbc.OracleConnection |
getOracleConnection()
|
java.lang.Object |
getSavepoint(java.lang.String name)
Look up a JDBC Savepoint instance by its name |
java.sql.SQLException |
getStmtCacheException()
See if there is a statement caching exception. |
int |
getStmtCacheSize()
This verifies whether SQLJ/explicit statement caching is enabled for the underlying connection of the connection context. |
boolean |
isClosed()
Returns true if this context has been closed, false otherwise. |
static java.util.Properties |
loadProps(java.lang.Class loadCtx,
java.lang.String propName)
Read a properties file. |
static java.util.Hashtable |
loadTypeMap(java.lang.Class loadCtx,
java.lang.String propList)
Utility function to load the type map into a hastable. |
java.lang.Object |
releaseSavepoint(java.lang.String name)
Remove the mapping between a name and a savepoint |
static void |
setDefaultStmtCacheSize(int size)
This sets the default statement cache size for all connection contexts. |
void |
setSavepoint(java.lang.String name,
java.lang.Object savepoint)
Utility function to map a name to a savepoint referened by that name |
void |
setStmtCacheSize(int size)
This sets the statement cache size for the underlying connection of the particular connection context instance (overrides the default). |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static int STMT_CACHE_NOT_ENABLED
public static int STMT_CACHE_EXCEPTION
Constructor Detail |
protected ConnectionContextImpl(ProfileGroup profiles, java.sql.Connection conn) throws java.sql.SQLException
profiles
- the profile group for the context subclass.conn
- the underlying connection for this context instance.protected ConnectionContextImpl(ProfileGroup profiles, java.lang.String url, java.lang.String user, java.lang.String password, boolean autoCommit) throws java.sql.SQLException
profiles
- the profile group for the context subclass.url
- the database urluser
- the usernamepassword
- the user passwordautoCommit
- true if the connection should be created in
auto-commit mode, false otherwise.DriverManager.getConnection(String,String,String)
,
Connection.setAutoCommit(boolean)
protected ConnectionContextImpl(ProfileGroup profiles, java.lang.String url, java.util.Properties info, boolean autoCommit) throws java.sql.SQLException
profiles
- the profile group for the context subclass.url
- the database urlproperties
- the properties for creating a connectionautoCommit
- true if the connection should be created in
auto-commit mode, false otherwise.Connection.setAutoCommit(boolean)
,
DriverManager.getConnection(String,java.util.Properties)
protected ConnectionContextImpl(ProfileGroup profiles, java.lang.String url, boolean autoCommit) throws java.sql.SQLException
profiles
- the profile group for the context subclass.url
- the database urlautoCommit
- true if the connection should be created in
auto-commit mode, false otherwise.DriverManager.getConnection(String)
,
Connection.setAutoCommit(boolean)
protected ConnectionContextImpl(ProfileGroup profiles, ConnectionContext other) throws java.sql.SQLException
profiles
- the profile group for the context subclass.other
- a connection context instance with which to share a
connection.ConnectionContext.getConnection()
protected ConnectionContextImpl(ProfileGroup profiles, java.lang.String dsname) throws java.sql.SQLException
profiles
- the profile group for the context subclass.dsname
- name of the data sourceConnectionContext.getConnection()
protected ConnectionContextImpl(ProfileGroup profiles, java.lang.String dsname, java.lang.String user, java.lang.String password) throws java.sql.SQLException
profiles
- the profile group for the context subclass.dsname
- name of the data sourceConnectionContext.getConnection()
Method Detail |
public oracle.jdbc.OracleConnection getOracleConnection()
public java.sql.SQLException getStmtCacheException()
public int getStmtCacheSize()
public void setStmtCacheSize(int size) throws java.sql.SQLException
public static int getDefaultStmtCacheSize()
public static void setDefaultStmtCacheSize(int size)
public sqlj.runtime.profile.ConnectedProfile getConnectedProfile(java.lang.Object profileKey) throws java.sql.SQLException
profileKey
- the key asscoiated with the desired profile.ConnectionContext.getConnectedProfile(Object)
public void close() throws java.sql.SQLException
ConnectionContext.close()
public boolean isClosed()
ConnectionContext.isClosed()
public java.sql.Connection getConnection()
ConnectionContext.getConnection()
public void close(boolean closeConnection) throws java.sql.SQLException
Note: A context is automatically closed when it is garbage collected. A context closed in such a way does not close the underlying JDBC connection since it will also be automatically closed when it is garbage collected.
closeConnection
- is true if the underlying Connection should
also be closed.ConnectionContext.close(boolean)
public ExecutionContext getExecutionContext()
public static java.util.Properties loadProps(java.lang.Class loadCtx, java.lang.String propName)
public static java.util.Hashtable loadTypeMap(java.lang.Class loadCtx, java.lang.String propList)
loadCtx
- class that describes the loading context for the type mappropList
- string that designates the name of the resource containing the type mappublic void setSavepoint(java.lang.String name, java.lang.Object savepoint)
name
- the name of a savepointsavepoint
- the JDBC Savepoint instance identified by the given name.public java.lang.Object getSavepoint(java.lang.String name)
name
- the name of a savepointpublic java.lang.Object releaseSavepoint(java.lang.String name)
name
- the name of a savepointprotected void finalize() throws java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]-- |