public interface IfxConnection extends java.sql.Connection, Connection2, IfmxConnection
Modifier and Type | Field and Description |
---|---|
static int |
LOGGING_MODE
Database has logging.
|
static int |
MODE_ANSI
Database is a mode ansi database.
|
static int |
NO_DATABASE
No database associated with this connection.
|
static int |
NO_LOGGING_MODE
Database has no logging.
|
static int |
TRANSACTION_LAST_COMMITTED
New constant defined for Last Commited as JDK doesnt support it
|
Modifier and Type | Method and Description |
---|---|
IfxProtocol |
createProto()
Create a new protocol instance for this connection
|
int |
getBlobCacheSize() |
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 |
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()
Get the name of the database currently connected to, if any.
|
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() |
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.
|
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 protoTrace object instantiated in the IfxConnection
constructor.
|
int |
getSqlLogicalChar()
Gets SQL_LOGICAL_CHAR onconfig value for the current database
|
Trace |
getTrace()
getTrace
Return the trace object instantiated in the IfxConnection
constructor.
|
boolean |
getTrimTrailingSpaces()
Get TrimTrailingSpaces -- if set, trim trailing spaces in
IfxChar.fromIfx().
|
IfxUDTInfo |
getUDTInfo(IfxColumnInfo colinfo,
java.lang.String name)
Fill out UDT metadata given the column metadata
|
java.lang.String |
getURL()
What is the URL of this connection
|
boolean |
getuseDtenv() |
java.lang.String |
getUserName()
What is the connection's userName?
|
java.lang.String |
getXnameByXid(int xid) |
boolean |
inXATransaction()
Returns true if start has been called to begin (or resume) an
XA transaction.
|
boolean |
is90303()
Is the server connected to of version 90303?
|
boolean |
is9301()
Is the server connected to of version 9301?
|
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 |
isBigintSupported()
isBigintSupported()
This function returns true if the server supports Bigint/ Bigserial.
|
boolean |
isDbOpen()
Is the database opened?
|
boolean |
isDelimIdentSet() |
boolean |
isDirect()
Whether this is a server-side (direct) connection.
|
boolean |
isGLS()
isGLS
This method returns true if the server is GLS capable (7.2+).
|
boolean |
isIEEEM()
Is the server connected to on a homogenous platform (IEEEM) as
the client?
|
boolean |
IsLastCommittedSupported()
Returns true if server supportsLast Committed
|
boolean |
isLongID()
Is the server connected to suppors Long ID?
|
boolean |
isLvcGtThan2kSupported()
Does the server connected to support >2k LVARCHAR
|
boolean |
isOnLine()
isOnLine
This method returns true if the server is online.
|
boolean |
isSysmaster()
isSysmaster
This function returns true if sysmaster should be available,
(6.0+ and online), false otherwise (se or 5.x).
|
boolean |
isUSVER()
Is the server connected to an IUS server?
|
boolean |
isValid(int timeout) |
boolean |
isXAConnection()
Returns true if the connection is XA as opposed to plain.
|
boolean |
isXPS()
Is the server connected to an XPS server?
|
boolean |
isXPSVER8_40()
Is the server connected to an 840 server?
|
boolean |
isXPSVER8_50()
Is the server connected to an 840 server?
|
java.lang.String |
retCapName(java.lang.String capName) |
void |
setFPCacheInfo(int routineId,
java.lang.String signature,
com.informix.jdbc.IfxFParam fparam)
Store fastpath function information.
|
void |
setIsBigInt(boolean flag)
This function will set and get value based on colinfo information
|
void |
setIsBigSerial(boolean flag) |
java.sql.Savepoint |
setSavepointUnique(java.lang.String name) |
getTypeMap
getHDRType, getIFX_USEPUT, getSQLStatementOffset, getUDTInfo, getUDTInfo, isHDREnabled, scrubConnection, scrubConnectionReleasesAllStatements, setIFX_USEPUT
abort, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap
static final int TRANSACTION_LAST_COMMITTED
static final int NO_DATABASE
static final int MODE_ANSI
static final int LOGGING_MODE
static final int NO_LOGGING_MODE
Trace getTrace()
Trace getProtoTrace()
java.lang.String getGeneratedCursor()
java.lang.String getDbName() throws java.sql.SQLException
java.sql.SQLException
java.lang.String getURL() throws java.sql.SQLException
java.sql.SQLException
java.lang.String getUserName() throws java.sql.SQLException
java.sql.SQLException
java.lang.String getJDBCVersion() throws java.sql.SQLException
java.sql.SQLException
int getDatabaseType() throws java.sql.SQLException
java.sql.SQLException
boolean isDbOpen() throws java.sql.SQLException
java.sql.SQLException
java.lang.String getDbProductName() throws java.sql.SQLException
java.sql.SQLException
java.lang.String getDbVersion() throws java.sql.SQLException
java.sql.SQLException
java.lang.String getProtoClassName()
java.lang.String getConnClassName()
boolean isDelimIdentSet()
boolean is90303()
boolean isLongID()
boolean is9301()
boolean isUSVER()
boolean isXPSVER8_40()
boolean isXPSVER8_50()
boolean isXPS()
boolean isLvcGtThan2kSupported()
int getMaxLvarcharSize() throws java.sql.SQLException
java.sql.SQLException
boolean getMapFloat()
boolean getMapReal()
boolean isIEEEM()
IfxUDTInfo getUDTInfo(IfxColumnInfo colinfo, java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
int getBlobCacheSize()
boolean isSysmaster()
boolean isANSIJoin()
boolean isGLS()
boolean isOnLine()
boolean isAutoFree()
java.lang.String getdbDate()
java.lang.String getglDate()
java.lang.String getdbTime()
java.lang.String getglDateTime()
boolean getclLocaleProp()
boolean getdbLocaleProp()
boolean getuseDtenv()
java.lang.String getdbCentury()
java.lang.String getdbEncoding()
java.lang.String getclLocale()
java.lang.String getdbLocale()
boolean isANSI()
int getSqlLogicalChar() throws java.sql.SQLException
Gets SQL_LOGICAL_CHAR onconfig value for the current database
java.sql.SQLException
java.lang.String getXnameByXid(int xid) throws java.sql.SQLException
java.sql.SQLException
boolean isDirect()
java.lang.String getJDBCTempDir()
IfxProtocol getProto()
IfxProtocol createProto()
int getFetchBufSize()
long getdbTodayDate()
long getdbTodayStart()
int getFPCacheRoutineId(java.lang.String signature)
signature
- 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.com.informix.jdbc.IfxFParam getFPCacheFParam(java.lang.String signature)
signature
- 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.void setFPCacheInfo(int routineId, java.lang.String signature, com.informix.jdbc.IfxFParam fparam)
routineId
- the function id returned by the server.signature
- the routine signaturefparam
- the fparam information returned by the server.boolean getTrimTrailingSpaces()
boolean isXAConnection()
boolean inXATransaction()
boolean IsLastCommittedSupported() throws java.sql.SQLException
java.sql.SQLException
boolean isBigintSupported()
void setIsBigInt(boolean flag)
boolean getIsBigInt()
void setIsBigSerial(boolean flag)
boolean getIsBigSerial()
java.sql.Savepoint setSavepointUnique(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
java.lang.String retCapName(java.lang.String capName)
boolean isValid(int timeout) throws java.sql.SQLException
isValid
in interface java.sql.Connection
java.sql.SQLException
java.lang.String getDatabaseProductVersion()
int getLOMode()