public class IfxSqliConnect extends java.lang.Object implements IfxConnection
A Connection's database is able to provide information describing its tables, its supported SQL grammar, its stored procedures, the capabilities of this connection, etc. This information is obtained with the getMetaData method.
Note: By default the Connection automatically commits changes after executing each statement. If auto commit has been disabled, an explicit commit must be done by the application or database changes will not be saved.
getConnection,
Statement,
ResultSet,
DatabaseMetaData| Modifier and Type | Field and Description |
|---|---|
protected static short |
ANSIMODE |
static short |
ANSIWARN |
protected Connection |
asfconn |
protected static java.util.concurrent.ExecutorService |
cleaner |
protected long |
cleanerMaximumDelay |
protected long |
cleanerMinimumDelay |
protected int |
cleanerZeroPointPercentage |
static boolean |
ConnEst |
protected java.util.Properties |
connInfo |
protected java.lang.String |
dbName |
protected boolean |
delimIdent |
protected boolean |
encoption |
protected java.lang.String |
externalVersion |
protected java.util.Vector<java.io.File> |
fileList |
protected boolean |
freeclobwithrs |
static boolean |
GclEnv |
static short |
HASLOG |
protected boolean |
ifxAllowOut |
protected IfxToJavaType |
ifxtojava |
protected PreparedStatementCache |
implicitCache |
boolean |
isOpen |
protected JavaToIfxType |
javatoifx |
int |
jdbcGeneratedSavepointId_ |
static java.lang.String |
jdbcGeneratedSavepointNamePrefix__ |
protected boolean |
Noansiwarn |
protected java.util.concurrent.atomic.AtomicInteger |
preparedStatementClosedCount |
protected java.util.concurrent.atomic.AtomicInteger |
preparedStatementCount |
protected java.util.concurrent.atomic.AtomicInteger |
preparedStatementReusedCount |
protected java.lang.String |
productName |
protected IfxProtocol |
proto |
protected java.lang.String |
protoClassName |
protected static java.util.concurrent.BlockingQueue<DelayedWeakReference<IfxSqliConnect>> |
queueOfConnections
All connections instances share a single delay queue and cleaner thread.
|
protected boolean |
replCheck |
protected boolean |
socketTimedOut |
protected boolean |
softCloseDone |
protected java.util.Vector<com.informix.jdbc.IfxSqliConnect.StmtList> |
stmtList |
protected java.lang.ref.ReferenceQueue<IfxStatement> |
stmtReferenceQueue
Each connection has its own reference queue of statements with weak
references that have been closed.
|
protected static java.util.concurrent.atomic.AtomicLong |
stmtWeakReferenceCloseCount |
protected java.util.ArrayList<java.lang.ref.WeakReference<java.sql.Savepoint>> |
svptList |
protected boolean |
useCaseCapName |
protected boolean |
usePut |
protected java.lang.String |
userName |
LOGGING_MODE, MODE_ANSI, NO_DATABASE, NO_LOGGING_MODE, TRANSACTION_LAST_COMMITTED| Constructor and Description |
|---|
IfxSqliConnect()
Constructor for the connection class:
No parameter version is for the server side sub-class to this
class to construct w/o opening an ASF connection
Parameter version is the normal SQLI way.
|
IfxSqliConnect(java.lang.String luser,
java.lang.String lpasswd,
java.lang.String url,
java.util.Properties prop)
Constructor for the connection class:
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort(java.util.concurrent.Executor executor) |
void |
addToBlobList(IfxSmartBlob x) |
void |
addToFileList(java.io.File ifxTmp) |
protected IfxUDTInfo |
addUDTInfo(java.lang.String udtOwner,
java.lang.String udtName)
IfxSqliConnect.addUDTInfo()
Access the sysxtdtypes and sysattrtypes system catalogs
and add these entries to udtMap if useCacheMap is set to
true.
|
protected void |
changeStmtId(IfxStatement stmt,
int id) |
protected void |
clearTransactions(boolean rollbackXids) |
void |
clearWarnings()
After this call getWarnings returns null until a new warning is
reported for this Connection.
|
void |
close()
In some cases, it is desirable to immediately release a
Connection's database and JDBC resources instead of waiting for
them to be automatically released; the close method provides this
immediate release.
|
protected void |
closeAllResultSets() |
protected void |
closeAllStatements()
Close all statements for this connection
This method is called from the close method of reusable connection
|
void |
commit()
Commit makes all changes made since the previous
commit/rollback permanent and releases any database locks
currently held by the Connection.
|
java.sql.Array |
createArrayOf(java.lang.String typeName,
java.lang.Object[] elements) |
java.sql.Blob |
createBlob() |
java.sql.Clob |
createClob() |
java.sql.NClob |
createNClob() |
IfxProtocol |
createProto()
Create a new protocol instance for this connection
|
java.sql.SQLXML |
createSQLXML() |
java.sql.Statement |
createStatement()
SQL statements without parameters are normally
executed using Statement objects.
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
JDBC 2.0
Same as createStatement() above, but allows the default result set
type and result set concurrency type to be overridden.
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
java.sql.Struct |
createStruct(java.lang.String typeName,
java.lang.Object[] attributes) |
protected void |
deleteAllFiles() |
boolean |
doesBlobNeedPurge() |
protected void |
endMetaDataQuery() |
protected void |
finalize() |
protected void |
freeStatementWeakReferences() |
boolean |
getAutoCommit()
Get the current auto-commit state.
|
boolean |
getAutoFree() |
int |
getBlobCacheSize() |
protected IfxPreparedStatement |
getCachedPreparedStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
java.lang.String |
getCatalog()
Return the Connection's current catalog name
|
java.lang.String |
getclEncoding() |
java.util.Properties |
getClientInfo()
The Informix server does not support setting of client info properties.
|
java.lang.String |
getClientInfo(java.lang.String name)
The Informix server does not support setting of client info properties.
|
java.lang.String |
getclLocale()
Gets the CLIENT_LOCALE locale for connection
|
boolean |
getclLocaleProp() |
java.lang.String |
getConnClassName()
What is the name of the connection class?
|
java.lang.String |
getConnectionDbName()
Return current *Internal* name of database (can be null)
This method is primarily for IfxDirectProtocol and
executeCloseDatabase to find out if we have a db or server connection.
|
java.lang.String |
getDatabaseProductVersion() |
int |
getDatabaseType()
What is the database type? NO_DATABASE, ANSI_MODE, LOGGING or NON_LOGGING?
|
java.lang.String |
getdbCentury() |
java.lang.String |
getdbDate() |
java.lang.String |
getdbEncoding()
Gets the DB_LOCALE encoding for connection
|
java.lang.String |
getdbLocale()
Gets the DB_LOCALE locale for connection
|
boolean |
getdbLocaleProp() |
java.lang.String |
getDbName()
Return current name of database (can be null)
|
java.lang.String |
getDbProductName()
What is the product name of the current Database?
|
java.lang.String |
getdbTime() |
long |
getdbTodayDate()
This method will return the dbTodayDate value
|
long |
getdbTodayStart()
This method will return the dbTodayStart value
|
java.lang.String |
getDbVersion()
What is the current Database version?
|
int |
getFetchBufSize()
This method will return the FET_BUF_SIZE value
|
com.informix.jdbc.IfxFParam |
getFPCacheFParam(java.lang.String signature)
Returns a routine's fparam structure based on the routine signature.
|
int |
getFPCacheRoutineId(java.lang.String signature)
Returns a routine's id based on the routine signature.
|
java.lang.String |
getGeneratedCursor() |
java.lang.String |
getglDate() |
java.lang.String |
getglDateTime() |
java.lang.String |
getHDRType()
get the HDR server type of the connection 'primary|secondary|standard'
|
int |
getHoldability()
Map holdability to JDBC3.0 values .
|
boolean |
getIFX_USEPUT() |
boolean |
getIsBigInt() |
boolean |
getIsBigSerial() |
java.lang.String |
getJDBCTempDir()
Where the user wants to redirect their temp files
|
java.lang.String |
getJDBCVersion()
What is the current JDBC Version?
|
int |
getLOMode() |
boolean |
getMapFloat()
Is JDBC type FLOAT mapped to Informix type Float
|
boolean |
getMapReal()
Is Informix type Smallfloat reported as JDBC type REAL
|
int |
getMaxLvarcharSize()
Gets maximum size of LVARCHAR supported by server connected to.
|
java.sql.DatabaseMetaData |
getMetaData()
A Connection's database is able to provide information
describing its tables, its supported SQL grammar, its stored
procedures, the capabilities of this connection, etc.
|
int |
getNetworkTimeout() |
boolean |
getOPTOFC()
Returns true if OPTOFC=1 is set by the user.
|
PreparedStatementCache |
getPreparedStatementCache()
Returns the PreparedStatement cache used by this connection
|
IfxProtocol |
getProto()
Get the protocol instance for this connection
|
java.lang.String |
getProtoClassName()
What is the name of the protocol class?
|
Trace |
getProtoTrace()
getProtoTrace
Return the protocol trace object instantiated in the IfxSqliConnect
constructor.
|
java.lang.String |
getSchema() |
int |
getSqlLogicalChar()
Gets SQL_LOGICAL_CHAR onconfig value for the current database
|
int |
getSQLStatementOffset()
Get the error offset of last executed/prepared SQL statement
|
Trace |
getTrace()
getTrace
Return the trace object instantiated in the IfxSqliConnect
constructor.
|
int |
getTransactionIsolation()
Get this Connection's current transaction isolation mode
|
boolean |
getTrimTrailingSpaces()
Get TrimTrailingSpaces -- if set, trim trailing spaces in
IfxChar.fromIfx().
|
java.util.Map<java.lang.String,java.lang.Class<?>> |
getTypeMap()
JDBC 2.0
Get the type-map object associated with this connection.
|
IfxUDTInfo |
getUDTInfo(IfxColumnInfo colinfo)
IfxSqliConnect.getUDTInfo(colinfo)
Load up udt medadata using the column metadata, used by
direct connections only.
|
IfxUDTInfo |
getUDTInfo(IfxColumnInfo colinfo,
java.lang.String name)
IfxSqliConnect.getUDTInfo(colinfo, typename)
Search for this SQLName in udtMap.
|
IfxUDTInfo |
getUDTInfo(int xid)
Get general information about opaque and distinct types
and detailed information for complex types.
|
IfxUDTInfo |
getUDTInfo(java.lang.String name,
java.lang.String owner)
Get general information about opaque and distinct types
and detailed information for complex types.
|
java.lang.String |
getURL()
Return the original url (not the
|
boolean |
getuseDtenv() |
boolean |
getUsePut() |
java.lang.String |
getUserName()
What is the connection's userName?
|
java.sql.SQLWarning |
getWarnings()
The first warning reported by calls on this Connection is
returned.
|
java.lang.String |
getXnameByXid(int xid) |
boolean |
inXATransaction()
Returns true if start has been called to begin (or resume) an
XA transaction.
|
boolean |
is2GBFetchBufferSupported()
is2GBFetchBufferSupported
This method returns true if the server supports 2GB linit for FET_BUF_SIZE
|
boolean |
is4ByteOffsetSupported()
is4ByteOffsetSupported()
This method returns true if the server supports 4 byte length/offset
field of string table (Col names)
|
boolean |
is90303()
is90303
This function returns true if the server is 9.0303.
|
boolean |
is9301()
is90301
This function returns true if the server is 9.0301.
|
boolean |
isANSI()
Is the database ANSI?
|
boolean |
isANSIJoin()
isANSIJoin
This method returns true if the server can understand the ANSI
join syntax (7.31 & 9.2).
|
boolean |
isAutoFree()
Returns true if the server supports AutoFree feature
|
boolean |
isAutoGeneratedKeysSupported()
isAutoGeneratedKeysSupported
This method returns true if the server supports autoGeneratedKeys
|
boolean |
isBigintSupported()
isBigIntSupported
This method returns true if the server supports Bigint/ Bigserial
|
boolean |
isClosed()
Check if a Connection is closed
|
boolean |
isCommitEnabled() |
protected boolean |
isCommitNeeded() |
boolean |
isDbOpen()
Is there a database associated with the current connection?
|
boolean |
isDelimIdentSet()
isDelimIdentSet
This method provides access for the variable delimIdent for the
IfxDatabaseMetaData class.
|
boolean |
isDescribeInputSupported()
isDescribeInputSupported
This method returns true if the server supports DESCRIBE INPUT
|
boolean |
isDirect()
Whether this is a server-side (direct) connection.
|
boolean |
isFPDescribeSupported()
isFPDescribeSupported
This method returns true if the server supports FastPath Describe
|
boolean |
isGLS()
isGLS
This method returns true if the server is GLS capable (7.2+).
|
boolean |
isHDREnabled()
Test if the HDR mode on connection
|
boolean |
isIEEEM()
isIEEEM
Is the server we are connected to on IEEEM format?
|
boolean |
isInUserTransaction()
Check if the connection is currently in user transaction.
|
boolean |
IsLastCommittedSupported()
Returns true if server supportsLast Committed
|
boolean |
isLongID()
Is the server connected to suppors Long ID?
|
boolean |
isLvcGtThan2kSupported()
isLvcGtThan2kSupported
This method returns true if the server supports >2k LVARCHAR
Implemented in 9.40 and onwards.
|
boolean |
isMultipleUdrInOutSupported()
isMultipleUdrInOutSupported
This method returns true if the server supports inout mode parameters
|
boolean |
isMultipleUdrOutSupported() |
boolean |
isNamedParametersSupported()
isNamedParametersSupported
This method returns true if the server supports NamedParameters
|
boolean |
isOnLine()
isOnLine
This method returns true if the server is online.
|
boolean |
isOnLine5SER() |
boolean |
isPAMAuthentication() |
boolean |
isPrivateServerEnabled() |
boolean |
isReadOnly()
Test if the connection is in read-only mode
|
boolean |
isRemove64KLimitSupported()
isRemove64KLimitSupported
This method returns true if the server supports Removal of 64K Limit
|
boolean |
isReplCheckColumnEnabled() |
boolean |
isSavepointSupported()
isSavepointSupported
This method returns true if the server supports Savepoint
|
boolean |
isSQBatchSupported()
isSQBatchSupported
This method returns true if the server supports SQBATCH
|
boolean |
isSysmaster()
isSysmaster
This function returns true if sysmaster should be available,
(6.0+ and online), false otherwise (se or 5.x).
|
boolean |
isUSVER()
isUSVER
This function returns true if the server is 9.0+.
|
boolean |
isValid(int timeout) |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
boolean |
isXAConnection()
Returns true if the connection is XA as opposed to plain.
|
boolean |
isXPS()
isXPS
This function returns true if connecting to XPS server.
|
boolean |
isXPSVER8_40()
Is the server connected to an 840 server?
|
boolean |
isXPSVER8_50()
isXPS
This function returns true if connecting to XPS 8.5 + server
|
java.lang.Object |
loadUDTba(int xid,
byte[] modeba,
byte[] nameba,
byte[] ownerba,
short IfxType,
int source,
int sourceLength)
IfxSqliConnect.loadUDTba()
Called from server jdbc to prepare for a call to loadUDT
|
boolean |
lockSession()
lockSession
Put the connection in critical session so no other thread
can initiate any message exchange to the server.
|
protected void |
markCursorsToClosed(boolean checkStmtType) |
protected void |
markStatementAsReleased() |
java.lang.String |
nativeSQL(java.lang.String sql)
A driver may convert the JDBC sql grammar into its system's
native SQL grammar prior to sending it; nativeSQL returns the
native form of the statement that the driver would have sent.
|
java.lang.String[] |
parseIfxLocale(java.lang.String glsOrNLSLocale)
This method parses a string specifying a locale in GLS or NLS form
and returns a String array with 2 elements in it.
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
A SQL stored procedure call statement is handled by creating a
CallableStatement for it.
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
JDBC 2.0
Same as prepareCall() above, but allows the default result set
type and result set concurrency type to be overridden.
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
A SQL statement with or without IN parameters can be
pre-compiled and stored in a PreparedStatement object.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int autoGeneratedKeys) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int[] columnIndexes) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
JDBC 2.0
Same as prepareStatement() above, but allows the default result set
type and result set concurrency type to be overridden.
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
java.lang.String[] columnNames) |
void |
releaseBlob() |
void |
releaseSavepoint(java.sql.Savepoint savepoint) |
java.lang.Object |
removeFromBlobTable(java.lang.Integer hashKey) |
protected void |
removeFromStmtList(IfxStatement stmt) |
protected void |
removeSavepointFromList(java.sql.Savepoint savepoint) |
protected void |
resetDatabaseProperties() |
java.lang.String |
retCapName(java.lang.String capName) |
java.lang.String |
returnEnc() |
void |
rollback()
Rollback drops all changes made since the previous
commit/rollback and releases any database locks currently held
by the Connection.
|
void |
rollback(java.sql.Savepoint savepoint) |
void |
scrubConnection()
Called to return a connection to its original state.
|
boolean |
scrubConnectionReleasesAllStatements()
Called to determine if calling scrubConnection() will release all
Statements.
|
void |
setAutoCommit(boolean newAC)
If a connection is in auto-commit mode, then all its SQL statements
will be executed and committed as individual transactions.
|
void |
setCatalog(java.lang.String catalog)
A sub-space of this Connection's database may be selected by setting a
catalog name.
|
void |
setClientInfo(java.util.Properties properties) |
void |
setClientInfo(java.lang.String name,
java.lang.String value) |
void |
setCommitEnabled(boolean flag) |
void |
setDatabaseProductVersion(java.lang.String dbVersion) |
void |
setFPCacheInfo(int routineId,
java.lang.String signature,
com.informix.jdbc.IfxFParam fparam)
Store fastpath function information.
|
void |
setHoldability(int holdability)
Changes the holdability of ResultSet objects created using this
Connection object to the given holdability
|
void |
setIFX_USEPUT(boolean enable) |
void |
setIsBigInt(boolean flag)
This function will set and get value based on colinfo information
|
void |
setIsBigSerial(boolean flag) |
protected void |
setLocale(java.lang.String cl)
Called only by IfxDirectConnection to default
clLocale/dbLocale to english so dateUtil doesn't use
Locale.getDefault() which if Japanese is run, becomes
japanese, even tho we are running english tests
|
void |
setNetworkTimeout(java.util.concurrent.Executor executor,
int milliseconds) |
protected java.util.Properties |
SetPrimEVars() |
void |
setReadOnly(boolean mode)
You can put a connection in read-only mode as a hint to enable
database optimizations.
|
void |
setReplCheckColumnEnabled(boolean flag) |
java.sql.Savepoint |
setSavepoint() |
java.sql.Savepoint |
setSavepoint(java.lang.String name) |
java.sql.Savepoint |
setSavepointUnique(java.lang.String name) |
void |
setSchema(java.lang.String schema) |
void |
setServerIsolationLevel() |
void |
setStructInfo(java.lang.Object obj_udtInfo,
short seqno,
short levelno,
short parentno,
byte[] fieldnameba,
short fieldno,
short type,
short length,
int xid,
byte[] xidOwnerba,
byte[] xidNameba)
IfxSqliConnect.setStructInfo()
|
void |
setTransactionIsolation(int level)
You can call this method to try to change the transaction
isolation level on a newly opened connection, using one of the
TRANSACTION_* values.
|
void |
setTransactionIsolation(int level,
java.sql.Statement stmt)
You can call this method to try to change the transaction
isolation level on a newly opened connection, using one of the
TRANSACTION_* values.
|
protected void |
setTxnIsolationLvl(java.lang.String sql) |
void |
setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)
JDBC 2.0
Install a type-map object as the default type-map for
this connection.
|
protected void |
startMetaDataQuery() |
boolean |
testLockSession() |
void |
unlockSession()
unLockSession
Release the connection critical session so other thread
can initiate message exchange to the server.
|
<T> T |
unwrap(java.lang.Class<T> iface) |
void |
xaSetSerWarnFlags(short flags,
java.lang.String name) |
public static boolean GclEnv
public static boolean ConnEst
protected java.util.Vector<java.io.File> fileList
protected final PreparedStatementCache implicitCache
public static final short HASLOG
protected static final short ANSIMODE
public static final short ANSIWARN
public boolean isOpen
protected boolean softCloseDone
protected java.lang.String externalVersion
protected java.lang.String productName
protected Connection asfconn
protected final JavaToIfxType javatoifx
protected final IfxToJavaType ifxtojava
protected boolean encoption
protected IfxProtocol proto
protected java.util.Properties connInfo
protected java.lang.String userName
protected java.lang.String dbName
protected boolean freeclobwithrs
protected boolean Noansiwarn
protected boolean delimIdent
protected boolean ifxAllowOut
protected boolean useCaseCapName
protected boolean usePut
protected java.lang.String protoClassName
protected java.util.Vector<com.informix.jdbc.IfxSqliConnect.StmtList> stmtList
protected boolean socketTimedOut
protected java.lang.ref.ReferenceQueue<IfxStatement> stmtReferenceQueue
protected static final java.util.concurrent.BlockingQueue<DelayedWeakReference<IfxSqliConnect>> queueOfConnections
IfxSqliConnect constructor(s) register each instance with the
queue of connections.protected static java.util.concurrent.ExecutorService cleaner
protected static java.util.concurrent.atomic.AtomicLong stmtWeakReferenceCloseCount
protected final int cleanerZeroPointPercentage
protected final long cleanerMinimumDelay
protected final long cleanerMaximumDelay
protected boolean replCheck
protected java.util.ArrayList<java.lang.ref.WeakReference<java.sql.Savepoint>> svptList
protected final java.util.concurrent.atomic.AtomicInteger preparedStatementCount
protected final java.util.concurrent.atomic.AtomicInteger preparedStatementReusedCount
protected final java.util.concurrent.atomic.AtomicInteger preparedStatementClosedCount
public int jdbcGeneratedSavepointId_
public static final java.lang.String jdbcGeneratedSavepointNamePrefix__
public IfxSqliConnect()
throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxSqliConnect(java.lang.String luser,
java.lang.String lpasswd,
java.lang.String url,
java.util.Properties prop)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object removeFromBlobTable(java.lang.Integer hashKey)
public boolean doesBlobNeedPurge()
public boolean isDirect()
IfxConnectionisDirect in interface IfxConnectionpublic void close()
throws java.sql.SQLException
Note: A Connection is automatically closed when it is garbage collected. Certain fatal errors also result in a closed Connection.
close in interface java.lang.AutoCloseableclose in interface java.sql.Connectionjava.sql.SQLExceptionpublic boolean isClosed()
throws java.sql.SQLException
isClosed in interface java.sql.Connectionjava.sql.SQLExceptionpublic void scrubConnection()
throws java.sql.SQLException
IfmxConnectionCalled to return a connection to its original state. scrubConnection() will retain all Statements and reset the connection to its original state. Prior to 2.21.JC3 version, this fuction releases all the Statements and reset the connection to its original state. To determine if Statements are released call scrubConnectionReleasesAllStatements()
scrubConnection in interface IfmxConnectionjava.sql.SQLExceptionprotected void clearTransactions(boolean rollbackXids)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void closeAllResultSets()
throws java.sql.SQLException
java.sql.SQLExceptionprotected void resetDatabaseProperties()
throws java.sql.SQLException
java.sql.SQLExceptionprotected void closeAllStatements()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean scrubConnectionReleasesAllStatements()
scrubConnectionReleasesAllStatements in interface IfmxConnectionpublic void commit()
throws java.sql.SQLException
If the current database does not support transactions, an SQLException is thrown.
Uses the IfxProtocol class's executeCommit() method to do the actual committing.
commit in interface java.sql.Connectionjava.sql.SQLExceptionpublic void rollback()
throws java.sql.SQLException
If the current database does not support transactions, an SQLException is thrown.
Uses the IfxProtocol class's executeRollback() method to do the actual rollback.
rollback in interface java.sql.Connectionjava.sql.SQLExceptionpublic void setAutoCommit(boolean newAC)
throws java.sql.SQLException
By default, new connections are in auto-commit mode. The commit occurs when the statement completes or the next execute occurs, whichever comes first. In the case of statements returning a ResultSet, the statement completes when the last row of the ResultSet has been retrieved or the ResultSet has been closed. In advanced cases, a single statement may return multiple results as well as output parameter values. Here the commit occurs when all results and output param values have been retrieved.
If the database type doesn't support transactions, throw an exception.
setAutoCommit in interface java.sql.ConnectionautoCommit - true enables auto-commit; false disables
auto-commit.java.sql.SQLExceptionpublic boolean getAutoCommit()
throws java.sql.SQLException
getAutoCommit in interface java.sql.Connectionjava.sql.SQLExceptionsetAutoCommit(boolean)public void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.lang.String returnEnc()
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
Note: Subsequent warnings will be chained to this SQLWarning.
getWarnings in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.Statement createStatement()
throws java.sql.SQLException
createStatement in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
createStatement in interface java.sql.ConnectionresultSetType - a result set type, see ResultSet.TYPE_XXXresultSetConcurrency - a concurrency type, see ResultSet.CONCUR_XXXjava.sql.SQLException - if a database-access error occurs.public java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
Note: This method is optimized for handling parametric SQL statements that benefit from precompilation. If the driver supports precompilation, prepareStatement will send the statement to the database for precompilation. Some drivers may not support precompilation. In this case, the statement may not be sent to the database until the PreparedStatement is executed. This has no direct affect on users; however, it does affect which method throws certain SQLExceptions.
prepareStatement in interface java.sql.Connectionsql - a SQL statement that may contain one or more '?' IN
parameter placeholdersjava.sql.SQLExceptionprotected IfxPreparedStatement getCachedPreparedStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
prepareStatement in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int[] columnIndexes)
throws java.sql.SQLException
prepareStatement in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.PreparedStatement prepareStatement(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
prepareStatement in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
prepareStatement in interface java.sql.ConnectionresultSetType - a result set type, see ResultSet.TYPE_XXXresultSetConcurrency - a concurrency type, see ResultSet.CONCUR_XXXjava.sql.SQLException - if a database-access error occurs.public java.sql.CallableStatement prepareCall(java.lang.String sql)
throws java.sql.SQLException
Note: This method is optimized for handling stored procedure call statements. Some drivers may send the call statement to the database when the prepareCall is done; others may wait until the CallableStatement is executed. This has no direct affect on users; however, it does affect which method throws certain SQLExceptions.
prepareCall in interface java.sql.Connectionsql - a SQL statement that may contain one or more '?'
parameter placeholdersjava.sql.SQLExceptionpublic java.sql.CallableStatement prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
prepareCall in interface java.sql.ConnectionresultSetType - a result set type, see ResultSet.TYPE_XXXresultSetConcurrency - a concurrency type, see ResultSet.CONCUR_XXXjava.sql.SQLException - if a database-access error occurs.public java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap()
throws java.sql.SQLException
getTypeMap in interface Connection2getTypeMap in interface java.sql.Connectionjava.sql.SQLExceptionpublic void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)
throws java.sql.SQLException
setTypeMap in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.lang.String nativeSQL(java.lang.String sql)
throws java.sql.SQLException
Keywords:
d (date) Format: {d 'yyyy-mm-dd'}
t (time) Format: {t 'hh:mm:ss'}
ts (timestamp) Format: {ts 'yyyy-mm-dd hh:mm:ss.f...}
fn (scalar functions) Format: {fn escape (escape character) Format: {escape ' oj (outer join) Format: {oj call (call a func/proc) Format: {call {? = call
The IfxDatabaseMetaData object requires the this pointer because
it needs the connection object to run queries on the current database
(system tables).
IfxSqliConnect class does not support catalogs. You can still get the
information from the 'catalog' through the IfxDatabaseMetaData
object. The methods in that class run queries on system catalogs
to retreive the desired info.
The current catalog name is defined to be the
current database name.
IfxSqliConnect doesn't support read-only mode.
Return without doing anything.
Note: setReadOnly cannot be called while in the
middle of a transaction. Note: setTransactionIsolation can be called while
in the middle of a transaction. In this case, the existing
transaction is first committed. Note: setTransactionIsolation can be called while
in the middle of a transaction. In this case, the existing
transaction is first committed. Gets SQL_LOGICAL_CHAR onconfig value for the current database Get the error offset of last executed/prepared SQL statement LEFT OUTER JOIN [ table |
nativeSQL in interface java.sql.Connectionsql - a SQL statement that may contain one or more '?'
parameter placeholdersjava.sql.SQLException
getMetaData
public java.sql.DatabaseMetaData getMetaData()
throws java.sql.SQLException
getMetaData in interface java.sql.Connectionjava.sql.SQLException
setCatalog
public void setCatalog(java.lang.String catalog)
throws java.sql.SQLException
setCatalog in interface java.sql.Connectionjava.sql.SQLException
getCatalog
public java.lang.String getCatalog()
throws java.sql.SQLException
getCatalog in interface java.sql.Connectionjava.sql.SQLException
setReadOnly
public void setReadOnly(boolean mode)
throws java.sql.SQLException
setReadOnly in interface java.sql.ConnectionreadOnly - true enables read-only mode; false disables
read-only mode.java.sql.SQLException
isReadOnly
public boolean isReadOnly()
throws java.sql.SQLException
isReadOnly in interface java.sql.Connectionjava.sql.SQLException
getLOMode
public int getLOMode()
getLOMode in interface IfxConnection
getHDRType
public java.lang.String getHDRType()
throws java.sql.SQLException
getHDRType in interface IfmxConnectionjava.sql.SQLException
isHDREnabled
public boolean isHDREnabled()
throws java.sql.SQLException
isHDREnabled in interface IfmxConnectionjava.sql.SQLException
getMaxLvarcharSize
public int getMaxLvarcharSize()
throws java.sql.SQLException
IfxConnection
getMaxLvarcharSize in interface IfxConnectionjava.sql.SQLException
setTransactionIsolation
public void setTransactionIsolation(int level)
throws java.sql.SQLException
setTransactionIsolation in interface java.sql.Connectionlevel - one of the TRANSACTION_* isolation values with the
exception of TRANSACTION_NONE; some databases may not support
other valuesjava.sql.SQLExceptionDatabaseMetaData.supportsTransactionIsolationLevel(int)
setTransactionIsolation
public void setTransactionIsolation(int level,
java.sql.Statement stmt)
throws java.sql.SQLException
level - one of the TRANSACTION_* isolation values with the
exception of TRANSACTION_NONE; some databases may not support
other valuesstmt - Statement object used to set the transaction leveljava.sql.SQLExceptionDatabaseMetaData.supportsTransactionIsolationLevel(int)
getTransactionIsolation
public int getTransactionIsolation()
throws java.sql.SQLException
getTransactionIsolation in interface java.sql.Connectionjava.sql.SQLException
getDatabaseType
public int getDatabaseType()
throws java.sql.SQLException
IfxConnection
getDatabaseType in interface IfxConnectionjava.sql.SQLException
isDbOpen
public boolean isDbOpen()
throws java.sql.SQLException
isDbOpen in interface IfxConnectionjava.sql.SQLException
getConnectionDbName
public java.lang.String getConnectionDbName()
throws java.sql.SQLException
java.sql.SQLException
getDbName
public java.lang.String getDbName()
throws java.sql.SQLException
getDbName in interface IfxConnectionjava.sql.SQLException
getURL
public java.lang.String getURL()
throws java.sql.SQLException
getURL in interface IfxConnectionjava.sql.SQLException
getUserName
public java.lang.String getUserName()
throws java.sql.SQLException
getUserName in interface IfxConnectionjava.sql.SQLException
getJDBCVersion
public java.lang.String getJDBCVersion()
throws java.sql.SQLException
IfxConnection
getJDBCVersion in interface IfxConnectionjava.sql.SQLException
getDbProductName
public java.lang.String getDbProductName()
throws java.sql.SQLException
IfxConnection
getDbProductName in interface IfxConnectionjava.sql.SQLException
getDbVersion
public java.lang.String getDbVersion()
throws java.sql.SQLException
IfxConnection
getDbVersion in interface IfxConnectionjava.sql.SQLException
SetPrimEVars
protected java.util.Properties SetPrimEVars()
throws java.sql.SQLException
java.sql.SQLException
parseIfxLocale
public java.lang.String[] parseIfxLocale(java.lang.String glsOrNLSLocale)
throws java.sql.SQLException
- java.sql.SQLException - when the locale could not be mapped corresponding
JDK codeset and locale.
isDelimIdentSet
public boolean isDelimIdentSet()
isDelimIdentSet in interface IfxConnection
isGLS
public boolean isGLS()
IfxConnection
isGLS in interface IfxConnection
isOnLine
public boolean isOnLine()
IfxConnection
isOnLine in interface IfxConnection
isOnLine5SER
public boolean isOnLine5SER()
isLongID
public boolean isLongID()
IfxConnection
isLongID in interface IfxConnection
is90303
public boolean is90303()
is90303 in interface IfxConnection
is9301
public boolean is9301()
is9301 in interface IfxConnection
isNamedParametersSupported
public boolean isNamedParametersSupported()
isSavepointSupported
public boolean isSavepointSupported()
isSQBatchSupported
public boolean isSQBatchSupported()
isRemove64KLimitSupported
public boolean isRemove64KLimitSupported()
is4ByteOffsetSupported
public boolean is4ByteOffsetSupported()
is2GBFetchBufferSupported
public boolean is2GBFetchBufferSupported()
isAutoGeneratedKeysSupported
public boolean isAutoGeneratedKeysSupported()
isDescribeInputSupported
public boolean isDescribeInputSupported()
isFPDescribeSupported
public boolean isFPDescribeSupported()
isMultipleUdrInOutSupported
public boolean isMultipleUdrInOutSupported()
isLvcGtThan2kSupported
public boolean isLvcGtThan2kSupported()
isLvcGtThan2kSupported in interface IfxConnection
isANSIJoin
public boolean isANSIJoin()
isANSIJoin in interface IfxConnection
isXPSVER8_40
public boolean isXPSVER8_40()
IfxConnection
isXPSVER8_40 in interface IfxConnection
isUSVER
public boolean isUSVER()
isUSVER in interface IfxConnection
isXPS
public boolean isXPS()
isXPS in interface IfxConnection
isXPSVER8_50
public boolean isXPSVER8_50()
isXPSVER8_50 in interface IfxConnection
isIEEEM
public boolean isIEEEM()
isIEEEM in interface IfxConnection
isSysmaster
public boolean isSysmaster()
isSysmaster in interface IfxConnection
isAutoFree
public boolean isAutoFree()
IfxConnection
isAutoFree in interface IfxConnection
isPrivateServerEnabled
public boolean isPrivateServerEnabled()
isMultipleUdrOutSupported
public boolean isMultipleUdrOutSupported()
isPAMAuthentication
public boolean isPAMAuthentication()
getMapFloat
public boolean getMapFloat()
IfxConnection
getMapFloat in interface IfxConnection
getMapReal
public boolean getMapReal()
IfxConnection
getMapReal in interface IfxConnection
getTrace
public Trace getTrace()
getTrace in interface IfxConnection
getProtoTrace
public Trace getProtoTrace()
getProtoTrace in interface IfxConnection
lockSession
public boolean lockSession()
testLockSession
public boolean testLockSession()
unlockSession
public void unlockSession()
getGeneratedCursor
public java.lang.String getGeneratedCursor()
getGeneratedCursor in interface IfxConnection
getProtoClassName
public java.lang.String getProtoClassName()
IfxConnection
getProtoClassName in interface IfxConnection
getConnClassName
public java.lang.String getConnClassName()
IfxConnection
getConnClassName in interface IfxConnection
addUDTInfo
protected IfxUDTInfo addUDTInfo(java.lang.String udtOwner,
java.lang.String udtName)
throws java.sql.SQLException
java.sql.SQLException
loadUDTba
public java.lang.Object loadUDTba(int xid,
byte[] modeba,
byte[] nameba,
byte[] ownerba,
short IfxType,
int source,
int sourceLength)
throws java.sql.SQLException
java.sql.SQLException
setStructInfo
public void setStructInfo(java.lang.Object obj_udtInfo,
short seqno,
short levelno,
short parentno,
byte[] fieldnameba,
short fieldno,
short type,
short length,
int xid,
byte[] xidOwnerba,
byte[] xidNameba)
throws java.sql.SQLException
java.sql.SQLException
getUDTInfo
public IfxUDTInfo getUDTInfo(IfxColumnInfo colinfo)
throws java.sql.SQLException
java.sql.SQLException
getUDTInfo
public IfxUDTInfo getUDTInfo(IfxColumnInfo colinfo,
java.lang.String name)
throws java.sql.SQLException
getUDTInfo in interface IfxConnectionjava.sql.SQLException
getUDTInfo
public IfxUDTInfo getUDTInfo(int xid)
throws java.sql.SQLException
getUDTInfo in interface IfmxConnectionxid - The extended id.java.sql.SQLException
getUDTInfo
public IfxUDTInfo getUDTInfo(java.lang.String name,
java.lang.String owner)
throws java.sql.SQLException
getUDTInfo in interface IfmxConnectionname - The data type name.owner - The owner of the data type (can be null).java.sql.SQLException
getAutoFree
public boolean getAutoFree()
getOPTOFC
public boolean getOPTOFC()
getUsePut
public boolean getUsePut()
getIFX_USEPUT
public boolean getIFX_USEPUT()
getIFX_USEPUT in interface IfmxConnection
setIFX_USEPUT
public void setIFX_USEPUT(boolean enable)
throws java.sql.SQLException
setIFX_USEPUT in interface IfmxConnectionjava.sql.SQLException
getTrimTrailingSpaces
public boolean getTrimTrailingSpaces()
IfxConnection
getTrimTrailingSpaces in interface IfxConnection
getBlobCacheSize
public int getBlobCacheSize()
getBlobCacheSize in interface IfxConnection
finalize
protected void finalize()
finalize in class java.lang.Object
getdbDate
public java.lang.String getdbDate()
getdbDate in interface IfxConnection
getglDate
public java.lang.String getglDate()
getglDate in interface IfxConnection
getdbTime
public java.lang.String getdbTime()
getdbTime in interface IfxConnection
getglDateTime
public java.lang.String getglDateTime()
getglDateTime in interface IfxConnection
getclLocaleProp
public boolean getclLocaleProp()
getclLocaleProp in interface IfxConnection
getdbLocaleProp
public boolean getdbLocaleProp()
getdbLocaleProp in interface IfxConnection
getuseDtenv
public boolean getuseDtenv()
getuseDtenv in interface IfxConnection
getdbCentury
public java.lang.String getdbCentury()
getdbCentury in interface IfxConnection
getdbLocale
public java.lang.String getdbLocale()
IfxConnection
getdbLocale in interface IfxConnection
getdbEncoding
public java.lang.String getdbEncoding()
IfxConnection
getdbEncoding in interface IfxConnection
getclLocale
public java.lang.String getclLocale()
IfxConnection
getclLocale in interface IfxConnection
setLocale
protected void setLocale(java.lang.String cl)
getclEncoding
public java.lang.String getclEncoding()
getJDBCTempDir
public java.lang.String getJDBCTempDir()
IfxConnection
getJDBCTempDir in interface IfxConnection
isANSI
public boolean isANSI()
IfxConnection
isANSI in interface IfxConnection
getXnameByXid
public java.lang.String getXnameByXid(int xid)
throws java.sql.SQLException
getXnameByXid in interface IfxConnectionjava.sql.SQLException
getSqlLogicalChar
public int getSqlLogicalChar()
throws java.sql.SQLException
IfxConnection
getSqlLogicalChar in interface IfxConnectionjava.sql.SQLException
xaSetSerWarnFlags
public void xaSetSerWarnFlags(short flags,
java.lang.String name)
throws java.sql.SQLException
java.sql.SQLException
getProto
public IfxProtocol getProto()
IfxConnection
getProto in interface IfxConnection
createProto
public IfxProtocol createProto()
IfxConnection
createProto in interface IfxConnection
getFetchBufSize
public int getFetchBufSize()
getFetchBufSize in interface IfxConnection
getdbTodayDate
public long getdbTodayDate()
getdbTodayDate in interface IfxConnection
getdbTodayStart
public long getdbTodayStart()
getdbTodayStart in interface IfxConnection
getPreparedStatementCache
public PreparedStatementCache getPreparedStatementCache()
IfxConnection
getPreparedStatementCache in interface IfxConnection
isXAConnection
public boolean isXAConnection()
IfxConnection
isXAConnection in interface IfxConnection
inXATransaction
public boolean inXATransaction()
IfxConnection
inXATransaction in interface IfxConnection
getFPCacheRoutineId
public int getFPCacheRoutineId(java.lang.String signature)
getFPCacheRoutineId in interface IfxConnectionsignature - Function signature used as the key to do a look
into the fast path cache. If found the routine id will be returned.
If not found a -1 will be returned.
getFPCacheFParam
public com.informix.jdbc.IfxFParam getFPCacheFParam(java.lang.String signature)
getFPCacheFParam in interface IfxConnectionsignature - Function signature used as the key to do a look
into the fast path cache. If found the fparam will be returned.
If not found a null will be returned.
setFPCacheInfo
public void setFPCacheInfo(int routineId,
java.lang.String signature,
com.informix.jdbc.IfxFParam fparam)
setFPCacheInfo in interface IfxConnectionroutineId - the function id returned by the server.signature - the routine signaturefparam - the fparam information returned by the server.
changeStmtId
protected void changeStmtId(IfxStatement stmt,
int id)
markStatementAsReleased
protected void markStatementAsReleased()
markCursorsToClosed
protected void markCursorsToClosed(boolean checkStmtType)
removeFromStmtList
protected void removeFromStmtList(IfxStatement stmt)
freeStatementWeakReferences
protected void freeStatementWeakReferences()
addToBlobList
public void addToBlobList(IfxSmartBlob x)
releaseBlob
public void releaseBlob()
isInUserTransaction
public boolean isInUserTransaction()
setHoldability
public void setHoldability(int holdability)
throws java.sql.SQLException
setHoldability in interface java.sql.Connectiona - ResultSet holdability constant; one of
ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMITexcpetion - if database error occurs,
or if the given parameter is not
a ResultSet constant indicating holdability, or the given holdability
is not supportedjava.sql.SQLException
getHoldability
public int getHoldability()
throws java.sql.SQLException
getHoldability in interface java.sql.Connectionjava.sql.SQLException
setSavepoint
public java.sql.Savepoint setSavepoint()
throws java.sql.SQLException
setSavepoint in interface java.sql.Connectionjava.sql.SQLException
setSavepoint
public java.sql.Savepoint setSavepoint(java.lang.String name)
throws java.sql.SQLException
setSavepoint in interface java.sql.Connectionjava.sql.SQLException
setSavepointUnique
public java.sql.Savepoint setSavepointUnique(java.lang.String name)
throws java.sql.SQLException
setSavepointUnique in interface IfxConnectionjava.sql.SQLException
rollback
public void rollback(java.sql.Savepoint savepoint)
throws java.sql.SQLException
rollback in interface java.sql.Connectionjava.sql.SQLException
releaseSavepoint
public void releaseSavepoint(java.sql.Savepoint savepoint)
throws java.sql.SQLException
releaseSavepoint in interface java.sql.Connectionjava.sql.SQLException
createStatement
public java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws java.sql.SQLException
createStatement in interface java.sql.Connectionjava.sql.SQLException
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws java.sql.SQLException
prepareStatement in interface java.sql.Connectionjava.sql.SQLException
prepareCall
public java.sql.CallableStatement prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws java.sql.SQLException
prepareCall in interface java.sql.Connectionjava.sql.SQLException
getSQLStatementOffset
public int getSQLStatementOffset()
IfmxConnection
getSQLStatementOffset in interface IfmxConnection
startMetaDataQuery
protected void startMetaDataQuery()
throws java.sql.SQLException
java.sql.SQLException
endMetaDataQuery
protected void endMetaDataQuery()
throws java.sql.SQLException
java.sql.SQLException
setServerIsolationLevel
public void setServerIsolationLevel()
throws java.sql.SQLException
java.sql.SQLException
isCommitNeeded
protected boolean isCommitNeeded()
IsLastCommittedSupported
public boolean IsLastCommittedSupported()
IfxConnection
IsLastCommittedSupported in interface IfxConnection
setTxnIsolationLvl
protected void setTxnIsolationLvl(java.lang.String sql)
addToFileList
public void addToFileList(java.io.File ifxTmp)
deleteAllFiles
protected void deleteAllFiles()
throws java.sql.SQLException
java.sql.SQLException
removeSavepointFromList
protected void removeSavepointFromList(java.sql.Savepoint savepoint)
throws java.sql.SQLException
java.sql.SQLException
isBigintSupported
public boolean isBigintSupported()
isBigintSupported in interface IfxConnection
setIsBigInt
public void setIsBigInt(boolean flag)
IfxConnection
setIsBigInt in interface IfxConnection
getIsBigInt
public boolean getIsBigInt()
getIsBigInt in interface IfxConnection
setIsBigSerial
public void setIsBigSerial(boolean flag)
setIsBigSerial in interface IfxConnection
getIsBigSerial
public boolean getIsBigSerial()
getIsBigSerial in interface IfxConnection
isReplCheckColumnEnabled
public boolean isReplCheckColumnEnabled()
setReplCheckColumnEnabled
public void setReplCheckColumnEnabled(boolean flag)
isCommitEnabled
public boolean isCommitEnabled()
setCommitEnabled
public void setCommitEnabled(boolean flag)
createArrayOf
public java.sql.Array createArrayOf(java.lang.String typeName,
java.lang.Object[] elements)
throws java.sql.SQLException
createArrayOf in interface java.sql.Connectionjava.sql.SQLException
createBlob
public java.sql.Blob createBlob()
throws java.sql.SQLException
createBlob in interface java.sql.Connectionjava.sql.SQLException
createClob
public java.sql.Clob createClob()
throws java.sql.SQLException
createClob in interface java.sql.Connectionjava.sql.SQLException
createNClob
public java.sql.NClob createNClob()
throws java.sql.SQLException
createNClob in interface java.sql.Connectionjava.sql.SQLException
createSQLXML
public java.sql.SQLXML createSQLXML()
throws java.sql.SQLException
createSQLXML in interface java.sql.Connectionjava.sql.SQLException
createStruct
public java.sql.Struct createStruct(java.lang.String typeName,
java.lang.Object[] attributes)
throws java.sql.SQLException
createStruct in interface java.sql.Connectionjava.sql.SQLException
getClientInfo
public java.util.Properties getClientInfo()
throws java.sql.SQLException
getClientInfo in interface java.sql.Connectionjava.sql.SQLException
getClientInfo
public java.lang.String getClientInfo(java.lang.String name)
throws java.sql.SQLException
getClientInfo in interface java.sql.Connectionjava.sql.SQLException
isValid
public boolean isValid(int timeout)
throws java.sql.SQLException
isValid in interface java.sql.Connectionjava.sql.SQLException
setClientInfo
public void setClientInfo(java.util.Properties properties)
throws java.sql.SQLClientInfoException
setClientInfo in interface java.sql.Connectionjava.sql.SQLClientInfoException
setClientInfo
public void setClientInfo(java.lang.String name,
java.lang.String value)
throws java.sql.SQLClientInfoException
setClientInfo in interface java.sql.Connectionjava.sql.SQLClientInfoException
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLException
unwrap
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLException
retCapName
public java.lang.String retCapName(java.lang.String capName)
retCapName in interface IfxConnection
getDatabaseProductVersion
public java.lang.String getDatabaseProductVersion()
getDatabaseProductVersion in interface IfxConnection
setDatabaseProductVersion
public void setDatabaseProductVersion(java.lang.String dbVersion)
setSchema
public void setSchema(java.lang.String schema)
throws java.sql.SQLException
setSchema in interface java.sql.Connectionjava.sql.SQLException
getSchema
public java.lang.String getSchema()
throws java.sql.SQLException
getSchema in interface java.sql.Connectionjava.sql.SQLException
abort
public void abort(java.util.concurrent.Executor executor)
throws java.sql.SQLException
abort in interface java.sql.Connectionjava.sql.SQLException
setNetworkTimeout
public void setNetworkTimeout(java.util.concurrent.Executor executor,
int milliseconds)
throws java.sql.SQLException
setNetworkTimeout in interface java.sql.Connectionjava.sql.SQLException
getNetworkTimeout
public int getNetworkTimeout()
throws java.sql.SQLException
getNetworkTimeout in interface java.sql.Connectionjava.sql.SQLException