|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.jdbc.informix4.BaseHandler | +--weblogic.jdbc.informix4.Statement
This class is documented only for WebLogic extensions to JDBC. For all other methods, see the JDBC spec and related documentation.
Field Summary | |
protected static int |
AlterIndexType
|
protected static int |
AlterType
|
protected static int |
BeginType
|
protected static byte[] |
BLOBUpdateTerminator
|
protected static int |
byteType
|
protected static int |
charType
|
protected static int |
CommitType
|
protected weblogic.jdbc.informix4.Connection |
connection
|
protected int |
count
|
protected static int |
CreateIndexType
|
protected static int |
CreateProcedureType
|
protected static int |
CreateRoleType
|
protected static int |
CreateSchemaType
|
protected static int |
CreateSynonymType
|
protected static int |
CreateTempTableType
|
protected static int |
CreateTriggerType
|
protected static int |
CreateType
|
protected static int |
CreateViewType
|
static int |
CSClass
|
protected int |
cursorID
|
protected static int |
DeleteAllType
|
protected static int |
DeleteType
|
protected static int |
DropIndexType
|
protected static int |
DropProcedureType
|
protected static int |
DropRoleType
|
protected static int |
DropSynonymType
|
protected static int |
DropTableType
|
protected static int |
DropTriggerType
|
protected static int |
DropViewType
|
protected boolean |
enableEscapeProcessing
JDK 1.2: combine with PStatement method protected InformixInputStream doEscapeProcessing(String iSQL) throws SQLException { return null; // return sql without modifications (PreparedStatement will do the processing) } |
protected java.lang.String |
encoding
|
boolean |
escQuotes
|
protected int |
exceptionSeverity
|
protected static byte[] |
FourNulls
|
protected static int |
GrantType
|
protected static int |
HostInfoOffsetBegin
|
protected static byte[] |
Informix2BCursorName
|
protected static int |
InformixAcceptType
|
protected static byte[] |
InformixAckPacket
|
protected static byte[] |
InformixAckUpdate_1
|
protected static byte[] |
InformixAckUpdate_3
|
protected static byte[] |
InformixBLOBHeaderTail
|
protected static byte[] |
InformixBLOBInsertID
|
protected static byte[] |
InformixBLOBInsertTerminator
|
protected static byte[] |
InformixCursorName_1
|
protected static byte[] |
InformixCursorName_3
|
protected static byte[] |
InformixCursorName_5
|
protected static byte[] |
InformixDBAckPacket
|
protected static byte[] |
InformixDBNameHeader
|
protected byte[] |
InformixDBResponse
|
protected static byte[] |
InformixEmptyID
writeBlobs for prepared statements with BLOBs write the blobs in the form 0x00, 0x27, (short which = number of bytes <= 1024) then write 0x00,0x27, 0x00, 0x00 continue the above until untill all BLOBs are transferred. |
protected static byte[] |
InformixEmptyKey
|
protected static byte[] |
InformixHeadDelimiter
|
protected static byte[] |
InformixHostInfo
|
protected byte[] |
InformixInsertParams
|
protected static int |
InformixInsertType
|
protected static byte[] |
InformixMagicPacket
|
protected static int |
InformixMetaDataType
|
protected static byte[] |
InformixNullTail
|
protected static byte[] |
InformixPostMetaPacket
|
protected static byte[] |
InformixPostTermMetaPacket
|
static byte[] |
InformixPreparedStatement
|
protected static int |
InformixProcMetaDataType
|
protected static int |
InformixResponseType
getMoreResults moves to a Statement's next result. |
protected static int |
InformixResultType
|
protected static int |
InformixSelectIntoType
|
protected static int |
InformixSQLErrorType
|
protected static byte[] |
InformixTailDelimiter
|
protected static int |
InformixUpdateType
|
protected static byte[] |
InformixVersionPacket
|
protected java.util.Vector |
inParameters
|
protected static int |
kErrorLoginFailed
|
protected static int |
kMsWarningHeader
|
protected static int |
LockTableType
|
protected int |
majorDBMSVersion
|
protected static int |
MaxInfoLength
|
protected boolean |
needsResult
|
protected boolean |
newsql
|
protected java.util.Vector |
outParameters
|
protected weblogic.jdbc.informix4.ResultSet |
outResults
|
static int |
PSClass
|
java.lang.String |
pStmtSql
|
protected SimpleOutputStream |
query
|
protected static int |
RenameColumnType
|
protected static int |
RenameTableType
|
protected SimpleInputStream |
reply
|
protected java.sql.ResultSet |
result
|
protected static int |
RevokeType
|
protected static int |
RollbackType
|
static int |
SClass
|
protected static int |
SetDebugFileType
|
protected static int |
SetExplainType
|
protected static int |
SetIsolationType
|
protected static int |
SetLockModeType
|
protected static int |
SetLogType
|
protected static int |
SetOptimizationType
|
protected static int |
SetPDQType
|
protected static int |
SetRoleType
|
protected static int |
StartViolationsType
|
protected static int |
StopViolationsType
|
protected static int |
textType
|
protected static int |
UnLockTableType
|
protected static int |
UpdateAllType
|
protected static int |
UpdateStatisticsProcType
|
protected static int |
UpdateStatisticsType
|
protected static int |
vcharType
|
Fields inherited from class weblogic.jdbc.informix4.BaseHandler |
closed,
kInformixProtocol,
kMicrosoftProtocol,
kOracleProtocol,
kSybaseProtocol,
kUnknownProtocol,
unique,
warnings |
Method Summary | |
void |
addBatch(java.lang.String sql)
|
void |
cancel()
Cancel can be used by one thread to cancel a statement that is being executed by another thread. |
protected static void |
checkForInformixError(byte[] inResult,
SimpleOutputStream query,
SimpleInputStream reply,
weblogic.jdbc.informix4.Connection connection)
|
protected void |
checkPrepNoBLOBParms(SimpleOutputStream query,
SimpleInputStream reply,
weblogic.jdbc.informix4.Connection connection)
|
void |
clearBatch()
|
void |
clearParameters()
Clears all the ? parameters set using setXXX routines. |
void |
close()
Release resources associated with this statement, the statement is usually released automatically when garbage is collected. |
protected static boolean |
compareByteArrays(byte[] inResult,
byte[] inExpected)
|
static boolean |
compareWithExpected(byte[] inResult,
byte[] inExpected,
SimpleOutputStream query,
SimpleInputStream reply,
weblogic.jdbc.informix4.Connection connection)
|
protected int |
countBLOBParams()
|
protected int |
countPrepParams(SimpleOutputStream query,
SimpleInputStream reply,
weblogic.jdbc.informix4.Connection connection)
|
protected weblogic.jdbc.informix4.InformixInputStream |
doEscapeProcessing(java.lang.String rawSQL)
Produces an InputStream that will process the sql statement replacing ? parameters with the values defined via setXXX routines. |
boolean |
execute()
A prepared SQL query is executed and multiple results sets can be returned. |
boolean |
execute(java.lang.String sql)
|
int[] |
executeBatch()
|
java.sql.ResultSet |
executeQuery()
A prepared SQL query is executed and its ResultSet is returned. |
java.sql.ResultSet |
executeQuery(java.lang.String iSQL)
Execute a SQL statement that returns a single ResultSet. |
int |
executeUpdate()
Executes the prepared SQL statement and returns an update count (or 0 if no update count). |
int |
executeUpdate(java.lang.String iSQL)
Execute a SQL INSERT, UPDATE or DELETE statement. |
java.math.BigDecimal |
getBigDecimal(int parameterIndex,
int scale)
Get the value of a NUMERIC parameter as a BigDecimal object. |
boolean |
getBoolean(int parameterIndex)
Get the value of a BIT parameter as a Java boolean. |
byte |
getByte(int parameterIndex)
Get the value of a TINYINT parameter as a Java byte. |
byte[] |
getBytes(int parameterIndex)
Get the value of a SQL BINARY or VARBINARY parameter as a Java byte[]. |
java.sql.Connection |
getConnection()
|
java.sql.Date |
getDate(int parameterIndex)
Get the value of a SQL DATE parameter as a Date object. |
double |
getDouble(int parameterIndex)
Get the value of a DOUBLE parameter as a Java double. |
int |
getFetchDirection()
|
int |
getFetchSize()
|
float |
getFloat(int parameterIndex)
Get the value of a FLOAT parameter as a Java float. |
protected byte[] |
getHostInfoData()
|
int |
getInt(int parameterIndex)
Get the value of a INTEGER parameter as a Java int. |
protected byte[] |
getLoginData(java.lang.String iUser,
java.lang.String iPassword,
java.lang.String iDBPath,
java.lang.String iDBDate,
java.lang.String iDBMoney,
java.lang.String iDBName,
java.lang.String iDBDelimIdent,
java.lang.String iDBClientLocale,
java.lang.String iDBDBLocale,
java.lang.String iSQLHOST)
|
long |
getLong(int parameterIndex)
Get the value of a BIGINT parameter as a Java long. |
int |
getMaxFieldSize()
|
int |
getMaxRows()
The maxRows limit is the maximum number of rows that a ResultSet can contain. |
boolean |
getMoreResults()
|
java.lang.Object |
getObject(int parameterIndex)
Get the value of a parameter as a Java object. |
int |
getQueryTimeout()
The queryTimeout limit is the number of seconds the driver will wait for a Statement to execute. |
java.sql.ResultSet |
getResultSet()
getResultSet returns the current result as a ResultSet. |
int |
getResultSetConcurrency()
|
int |
getResultSetType()
|
int |
getSerialNumber()
Returns the serial number after an insert. |
java.lang.String |
getServerVersion()
Return the server version |
short |
getShort(int parameterIndex)
Get the value of a SMALLINT parameter as a Java short. |
int |
getStmtClass()
|
java.lang.String |
getString(int parameterIndex)
Get the value of a CHAR, VARCHAR, or LONGVARCHAR parameter as a Java String. |
java.sql.Time |
getTime(int parameterIndex)
Get the value of a SQL TIME parameter as a Time object. |
java.sql.Timestamp |
getTimestamp(int parameterIndex)
Get the value of a SQL TIMESTAMP parameter as a Timestamp object. |
int |
getUpdateCount()
getUpdateCount returns the current result as an update count; if the result is a ResultSet or there are no more results -1 is returned. |
void |
informixLogin(weblogic.jdbc.informix4.Connection connection,
ConnectionInfo info)
|
byte[] |
insertCursorID(byte[] ioData,
int inCursorID)
|
protected static boolean |
printPackets(byte[] inResult,
byte[] inExpected)
JDK 1.2: THESE METHODS ORIGINALLY EMPTY IN STATEMENT, COPY AS IS INTO CONSOLIDATED STATEMENT protected void writeBLOBs(SimpleOutputStream query, SimpleInputStream reply, Connection connection, boolean isCursorName) throws IOException,SQLException { // should be implemented by PREPARED statement } protected void checkPrepNoBLOBParms(SimpleOutputStream query, SimpleInputStream reply, Connection connection) throws SQLException { // implement in PreparedStatement } protected void writePrepParms(SimpleOutputStream query, SimpleInputStream reply, Connection connection) throws IOException, SQLException { // implement in PreparedStatement } |
protected static void |
processAndThrowError(SimpleOutputStream query,
SimpleInputStream reply,
weblogic.jdbc.informix4.Connection connection,
java.lang.String msg)
|
protected static InformixException |
processError(SimpleOutputStream query,
SimpleInputStream reply,
weblogic.jdbc.informix4.Connection connection,
java.lang.String msg)
|
void |
registerOutParameter(int parameterIndex,
int sqlType)
Before executing a stored procedure call you must explicitly call registerOutParameter to register the Type of each out parameter. |
void |
registerOutParameter(int parameterIndex,
int sqlType,
int scale)
Use this version for Numeric or Decimal parameters. |
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x,
int length)
When a very large ASCII value is input to a LONGVARCHAR parameter it may be more practical to send it via a java.io.InputStream. |
void |
setBigDecimal(int parameterIndex,
java.math.BigDecimal x)
Set a parameter to a BigDecimal value. |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream x,
int length)
When a very large binary value is input to a LONGVARBINARY parameter it may be more practical to send it via a java.io.InputStream. |
void |
setBoolean(int parameterIndex,
boolean x)
Set a parameter to a Java boolean value. |
void |
setByte(int parameterIndex,
byte x)
Set a parameter to a Java byte value. |
void |
setBytes(int parameterIndex,
byte[] x)
Set a parameter to a Java array of bytes. |
void |
setCursorName(java.lang.String name)
setCursorname defines the SQL cursor name that will be used by subsequent Statement execute methods. |
protected void |
setDatabase(java.lang.String databaseName)
|
void |
setDate(int parameterIndex,
java.sql.Date x)
Set a parameter to a Date value. |
void |
setDouble(int parameterIndex,
double x)
Set a parameter to a Java double value. |
void |
setEscapeProcessing(boolean iEnable)
Enables or disables escape sequence processing in SQL statements (on by default) |
void |
setFetchDirection(int direction)
|
void |
setFetchSize(int rows)
|
void |
setFloat(int parameterIndex,
float x)
Set a parameter to a Java float value. |
void |
setInt(int parameterIndex,
int x)
Set a parameter to a Java int value. |
void |
setLong(int parameterIndex,
long x)
Set a parameter to a Java long value. |
void |
setMaxFieldSize(int max)
The maxFieldSize limit (in bytes) is set to limit the size of data that can be returned for any column value; it only applies to BINARY, VARBINARY, LONGVARBINARY, CHAR, VARCHAR, and LONGVARCHAR fields. |
void |
setMaxRows(int max)
The maxRows limit is set to limit the number of rows that any ResultSet can contain. |
void |
setNull(int parameterIndex,
int sqlType)
Set a parameter to SQL NULL. |
void |
setObject(int parameterIndex,
java.lang.Object obj)
Set the value of a parameter using an object; use the java.lang equivalent objects for integral values. |
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType)
This method is like setObject above, but assumes scale of zero. |
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType,
int scale)
Set the value of a parameter using an object; use the java.lang equivalent objects for integral values. |
void |
setOutResults(weblogic.jdbc.informix4.ResultSet r)
JDK 1.2 MOVE THIS TO CALLABLESTATEMENT public boolean execute(String sql) throws SQLException { if (super.execute(sql)) { outResults = (ResultSet)getResultSet(); // Get the results from this procedure return true; } return false; } |
void |
setQueryTimeout(int seconds)
The queryTimeout limit is the number of seconds the driver will wait for a Statement to execute. |
void |
setShort(int parameterIndex,
short x)
Set a parameter to a Java short value. |
void |
setStmtClass(int SClass)
|
void |
setString(int parameterIndex,
java.lang.String x)
Set a parameter to a Java String value. |
void |
setTime(int parameterIndex,
java.sql.Time x)
Set a parameter to a Time value. |
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x)
Set a parameter to a Timestamp value. |
void |
setUnicodeStream(int parameterIndex,
java.io.InputStream obj,
int length)
When a very large UNICODE value is input to a LONGVARCHAR parameter it may be more practical to send it via a java.io.InputStream. |
static java.lang.String |
stringFromFloat(float value)
|
protected void |
testForLikeEscape(java.lang.String sql)
Throw and exception if escape procession used while escape processing explicitly disabled. |
protected void |
throwAndYield(java.lang.String message,
java.lang.String location)
General routine to throw an SQLException and give up the Network Streams |
boolean |
wasNull()
An OUT parameter may have the value of SQL NULL; wasNull reports whether the last value read has this special value. |
protected void |
writeBLOBs(SimpleOutputStream query,
SimpleInputStream reply,
weblogic.jdbc.informix4.Connection connection,
boolean isCursorName)
|
protected void |
writePrepParms(SimpleOutputStream query,
SimpleInputStream reply,
weblogic.jdbc.informix4.Connection connection)
|
protected void |
writeStatementType(SimpleOutputStream query,
SimpleInputStream reply,
weblogic.jdbc.informix4.Connection connection)
Overriden by prepared statement to set the prepared type |
Methods inherited from class weblogic.jdbc.informix4.BaseHandler |
appendWarning,
clearWarnings,
complainIfClosed,
finalize,
getProtocol,
getWarnings,
isClosed,
setProtocol |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int SClass
public static final int PSClass
public static final int CSClass
public static byte[] InformixPreparedStatement
protected SimpleOutputStream query
protected boolean newsql
protected static final int kMsWarningHeader
protected static final int kErrorLoginFailed
protected static final int InformixResponseType
There are no more results when (!getMoreResults() && (getUpdateCount() == -1)
execute(java.lang.String)
protected static final int InformixMetaDataType
protected static final int InformixSelectIntoType
protected static final int InformixUpdateType
protected static final int InformixResultType
protected static final int InformixAcceptType
protected static final int InformixSQLErrorType
protected static final int DeleteType
protected static final int InformixInsertType
protected static final int LockTableType
protected static final int UnLockTableType
protected static final int CreateType
protected static final int DropTableType
protected static final int CreateIndexType
protected static final int DropIndexType
protected static final int GrantType
protected static final int RevokeType
protected static final int RenameTableType
protected static final int RenameColumnType
protected static final int AlterType
protected static final int UpdateStatisticsType
protected static final int DeleteAllType
protected static final int UpdateAllType
protected static final int BeginType
protected static final int CommitType
protected static final int RollbackType
protected static final int CreateViewType
protected static final int DropViewType
protected static final int CreateSynonymType
protected static final int DropSynonymType
protected static final int CreateTempTableType
protected static final int SetLockModeType
protected static final int AlterIndexType
protected static final int SetIsolationType
protected static final int SetLogType
protected static final int SetExplainType
protected static final int CreateSchemaType
protected static final int SetOptimizationType
protected static final int CreateProcedureType
protected static final int DropProcedureType
protected static final int InformixProcMetaDataType
protected static final int SetDebugFileType
protected static final int UpdateStatisticsProcType
protected static final int CreateTriggerType
protected static final int DropTriggerType
protected static final int SetPDQType
protected static final int StartViolationsType
protected static final int StopViolationsType
protected static final int CreateRoleType
protected static final int DropRoleType
protected static final int SetRoleType
protected static byte[] InformixAckPacket
protected static byte[] InformixCursorName_1
protected static byte[] InformixCursorName_3
protected static byte[] InformixCursorName_5
protected byte[] InformixInsertParams
protected static byte[] Informix2BCursorName
protected static byte[] InformixPostMetaPacket
protected static byte[] InformixPostTermMetaPacket
protected static byte[] InformixAckUpdate_1
protected static byte[] InformixAckUpdate_3
protected byte[] InformixDBResponse
protected static byte[] InformixDBNameHeader
protected static byte[] InformixNullTail
protected static byte[] InformixDBAckPacket
protected boolean enableEscapeProcessing
protected weblogic.jdbc.informix4.Connection connection
protected SimpleInputStream reply
protected java.sql.ResultSet result
protected int count
protected int exceptionSeverity
protected int cursorID
protected java.lang.String encoding
protected int majorDBMSVersion
public java.lang.String pStmtSql
protected java.util.Vector inParameters
protected java.util.Vector outParameters
public boolean escQuotes
protected static int charType
protected static int byteType
protected static int textType
protected static int vcharType
protected static byte[] InformixEmptyID
protected static byte[] InformixEmptyKey
protected static byte[] FourNulls
protected static byte[] InformixBLOBHeaderTail
protected static byte[] InformixBLOBInsertID
protected static byte[] InformixHeadDelimiter
protected static byte[] InformixTailDelimiter
protected static byte[] InformixBLOBInsertTerminator
protected static byte[] BLOBUpdateTerminator
protected weblogic.jdbc.informix4.ResultSet outResults
protected boolean needsResult
protected static byte[] InformixMagicPacket
protected static int HostInfoOffsetBegin
protected static int MaxInfoLength
protected static byte[] InformixHostInfo
protected static byte[] InformixVersionPacket
Method Detail |
public void setStmtClass(int SClass)
public int getStmtClass()
public int getSerialNumber()
public java.sql.ResultSet executeQuery(java.lang.String iSQL) throws java.sql.SQLException
sql
- typically this is a static SQL SELECT statementpublic int executeUpdate(java.lang.String iSQL) throws java.sql.SQLException
sql
- a SQL INSERT, UPDATE or DELETE statement or a SQL
statement that returns nothingpublic boolean execute(java.lang.String sql) throws java.sql.SQLException
protected void writeStatementType(SimpleOutputStream query, SimpleInputStream reply, weblogic.jdbc.informix4.Connection connection) throws java.io.IOException, java.sql.SQLException
protected void testForLikeEscape(java.lang.String sql) throws java.sql.SQLException
public void close() throws java.sql.SQLException
public int getMaxFieldSize() throws java.sql.SQLException
public void setMaxFieldSize(int max) throws java.sql.SQLException
max
- the new max column size limit; zero means unlimitedpublic int getMaxRows() throws java.sql.SQLException
public void setMaxRows(int max) throws java.sql.SQLException
max
- the new max rows limit; zero means unlimitedpublic int getQueryTimeout() throws java.sql.SQLException
public void setQueryTimeout(int seconds) throws java.sql.SQLException
seconds
- the new query timeout limit in seconds; zero means unlimitedpublic void cancel() throws java.sql.SQLException
public void setCursorName(java.lang.String name) throws java.sql.SQLException
Note: By definition, positioned update/delete execution must be done by a different Statement than the one which generated the ResultSet being used for positioning. Also, cursor names must be unique within a Connection.
name
- the new cursor name.public java.sql.ResultSet getResultSet()
execute(java.lang.String)
public int getUpdateCount()
The only way to tell for sure that the result is an update count is to first test to see if it is a ResultSet. If it is not a ResultSet it is either an update count or there are no more results.
execute(java.lang.String)
public boolean getMoreResults() throws java.sql.SQLException
public byte[] insertCursorID(byte[] ioData, int inCursorID)
protected static boolean printPackets(byte[] inResult, byte[] inExpected)
protected static void checkForInformixError(byte[] inResult, SimpleOutputStream query, SimpleInputStream reply, weblogic.jdbc.informix4.Connection connection) throws InformixException
protected static void processAndThrowError(SimpleOutputStream query, SimpleInputStream reply, weblogic.jdbc.informix4.Connection connection, java.lang.String msg) throws InformixException
protected static InformixException processError(SimpleOutputStream query, SimpleInputStream reply, weblogic.jdbc.informix4.Connection connection, java.lang.String msg) throws InformixException
protected static boolean compareByteArrays(byte[] inResult, byte[] inExpected) throws InformixException
protected void setDatabase(java.lang.String databaseName) throws java.io.IOException, InformixException
public static boolean compareWithExpected(byte[] inResult, byte[] inExpected, SimpleOutputStream query, SimpleInputStream reply, weblogic.jdbc.informix4.Connection connection) throws InformixException
public void setEscapeProcessing(boolean iEnable) throws java.sql.SQLException
protected weblogic.jdbc.informix4.InformixInputStream doEscapeProcessing(java.lang.String rawSQL) throws java.sql.SQLException
public java.sql.ResultSet executeQuery() throws java.sql.SQLException
public int executeUpdate() throws java.sql.SQLException
public boolean execute() throws java.sql.SQLException
protected int countBLOBParams()
protected int countPrepParams(SimpleOutputStream query, SimpleInputStream reply, weblogic.jdbc.informix4.Connection connection) throws java.sql.SQLException
protected void checkPrepNoBLOBParms(SimpleOutputStream query, SimpleInputStream reply, weblogic.jdbc.informix4.Connection connection) throws java.sql.SQLException
protected void writePrepParms(SimpleOutputStream query, SimpleInputStream reply, weblogic.jdbc.informix4.Connection connection) throws java.io.IOException, java.sql.SQLException
protected void writeBLOBs(SimpleOutputStream query, SimpleInputStream reply, weblogic.jdbc.informix4.Connection connection, boolean isCursorName) throws java.io.IOException, java.sql.SQLException
public void clearParameters() throws java.sql.SQLException
public void setNull(int parameterIndex, int sqlType) throws java.sql.SQLException
Note: You must specify the parameter's SQL type.
parameterIndex
- the first parameter is 1, the second is 2, ...sqlType
- SQL type code defined by Typespublic void setBoolean(int parameterIndex, boolean x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setByte(int parameterIndex, byte x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setShort(int parameterIndex, short x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setInt(int parameterIndex, int x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setLong(int parameterIndex, long x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setFloat(int parameterIndex, float x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setDouble(int parameterIndex, double x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic static java.lang.String stringFromFloat(float value)
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setString(int parameterIndex, java.lang.String x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setBytes(int parameterIndex, byte[] x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setDate(int parameterIndex, java.sql.Date x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setTime(int parameterIndex, java.sql.Time x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws java.sql.SQLException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuepublic void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
Note: this stream object can either be a standard Java stream object, or your own subclass that implements the standard interface.
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the java input stream which contains the ASCII parameter valuelength
- the number of bytes in the streampublic void setUnicodeStream(int parameterIndex, java.io.InputStream obj, int length) throws java.sql.SQLException
Note: this stream object can either be a standard Java stream object, or your own subclass that implements the standard interface.
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the java input stream which contains the
UNICODE parameter value @param length the number of bytes in
the streampublic void setBinaryStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
Note: this stream object can either be a standard Java stream object, or your own subclass that implements the standard interface.
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the java input stream which contains the binary parameter valuelength
- the number of bytes in the streampublic void setObject(int parameterIndex, java.lang.Object x, int targetSqlType, int scale) throws java.sql.SQLException
Set the value of a parameter using an object; use the java.lang equivalent objects for integral values.
The given Java object will be converted to the targetSqlType before being sent to the database.
Note that this method may be used to pass datatabase specific abstract data types, by using a Driver specific Java type and using a targetSqlType of Types.OTHER.
parameterIndex
- The first parameter is 1, the second is 2, ...x
- The object containing the input parameter valuetargetSqlType
- The SQL type (as defined in Types) to be
sent to the database. The scale argument may further qualify this type.scale
- For Types.DECIMAL or Types.NUMERIC types
this is the number of digits after the decimal. For all other
types this value will be ignored,Types
public void setObject(int parameterIndex, java.lang.Object x, int targetSqlType) throws java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object obj) throws java.sql.SQLException
Set the value of a parameter using an object; use the java.lang equivalent objects for integral values.
The JDBC specification specifies a standard mapping from Java Object types to SQL types. The given argument java object will be converted to the corresponding SQL type before being sent to the database.
Note that this method may be used to pass datatabase specific abstract data types, by using a Driver specific Java type.
parameterIndex
- The first parameter is 1, the second is 2, ...x
- The object containing the input parameter valueprotected void throwAndYield(java.lang.String message, java.lang.String location) throws java.sql.SQLException
public void setOutResults(weblogic.jdbc.informix4.ResultSet r)
public void registerOutParameter(int parameterIndex, int sqlType) throws java.sql.SQLException
Note: When reading the value of an out parameter you must use the getXXX method whose Java type XXX corresponds to the parameter's registered SQL type.
parameterIndex
- the first parameter is 1, the second is 2,...sqlType
- SQL type code defined by Types;
for parameters of type Numeric or Decimal use the version of
registerOutParameter that accepts a scale valueType
public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws java.sql.SQLException
public boolean wasNull() throws java.sql.SQLException
public java.lang.String getString(int parameterIndex) throws java.sql.SQLException
public boolean getBoolean(int parameterIndex) throws java.sql.SQLException
public byte getByte(int parameterIndex) throws java.sql.SQLException
public short getShort(int parameterIndex) throws java.sql.SQLException
public int getInt(int parameterIndex) throws java.sql.SQLException
public long getLong(int parameterIndex) throws java.sql.SQLException
public float getFloat(int parameterIndex) throws java.sql.SQLException
public double getDouble(int parameterIndex) throws java.sql.SQLException
public java.math.BigDecimal getBigDecimal(int parameterIndex, int scale) throws java.sql.SQLException
public byte[] getBytes(int parameterIndex) throws java.sql.SQLException
public java.sql.Date getDate(int parameterIndex) throws java.sql.SQLException
public java.sql.Time getTime(int parameterIndex) throws java.sql.SQLException
public java.sql.Timestamp getTimestamp(int parameterIndex) throws java.sql.SQLException
public java.lang.Object getObject(int parameterIndex) throws java.sql.SQLException
public void informixLogin(weblogic.jdbc.informix4.Connection connection, ConnectionInfo info) throws java.sql.SQLException
protected byte[] getLoginData(java.lang.String iUser, java.lang.String iPassword, java.lang.String iDBPath, java.lang.String iDBDate, java.lang.String iDBMoney, java.lang.String iDBName, java.lang.String iDBDelimIdent, java.lang.String iDBClientLocale, java.lang.String iDBDBLocale, java.lang.String iSQLHOST)
protected byte[] getHostInfoData()
public java.lang.String getServerVersion()
public void setFetchDirection(int direction) throws java.sql.SQLException
public int getFetchDirection() throws java.sql.SQLException
public void setFetchSize(int rows) throws java.sql.SQLException
public int getFetchSize() throws java.sql.SQLException
public int getResultSetConcurrency() throws java.sql.SQLException
public int getResultSetType() throws java.sql.SQLException
public void addBatch(java.lang.String sql) throws java.sql.SQLException
public void clearBatch() throws java.sql.SQLException
public int[] executeBatch() throws java.sql.SQLException
public java.sql.Connection getConnection() throws java.sql.SQLException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |