|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.ddtek.jxtr.JXTRBase
JXTRBase is an abstract base class that defines and implements methods shared by all Connect for SQL/XML statement classes.
JXTRResultSetWrapper,
JXTRQuery,
JXTRSingleTableUpdate,
JXTRUpdate| Field Summary | |
static int |
BINARY_AS_BASE64
Sets base64 encoding for binary values. |
static int |
BINARY_AS_HEX
Sets hexadecimal encoding for binary values. |
static int |
TIMESTAMP_AS_ISO8601
Sets ISO8601 encoding (YYYY-MM-DDTHH:MI:SS.F) for timestamp values. |
static int |
TIMESTAMP_AS_ODBC
Sets ODBC encoding (YYYY-MM-DD HH:MI:SS.F) for timestamp values. |
| Constructor Summary | |
JXTRBase()
Constructs a new JXTRBase. |
|
| Method Summary | |
void |
clearWarnings()
Clears all the warnings reported on this object. |
abstract void |
close()
Closes database prepared statement(s). |
abstract int |
getBinaryEncoding()
Returns the type of binary decoding. |
boolean |
getPreparedStatementCloseBehaviour()
Indicates whether database prepared statements are closed after executing this object. |
abstract int |
getTimestampEncoding()
Returns the type of timestamp decoding. |
JXTRWarning |
getWarnings()
Retrieves the first warning reported by calls on this object. |
abstract void |
setBigDecimal(int paramIx,
java.math.BigDecimal paramValue)
Sets the specified parameter index to the specified BigDecimal value. |
abstract void |
setBinaryEncoding(int binaryCoding)
Sets the type of encoding/decoding for binary values. |
abstract void |
setBoolean(int paramIx,
boolean paramValue)
Sets the specified parameter index to the specified boolean value. |
abstract void |
setByte(int paramIx,
byte paramValue)
Sets the specified parameter index to the specified byte value. |
abstract void |
setBytes(int paramIx,
byte[] paramValue)
Sets the specified parameter index to the specified byte array value. |
abstract void |
setDate(int paramIx,
java.sql.Date paramValue)
Sets the specified parameter index to the specified date value. |
abstract void |
setDouble(int paramIx,
double paramValue)
Sets the specified parameter index to the specified double value. |
abstract void |
setFloat(int paramIx,
float paramValue)
Sets the specified parameter index to the specified float value. |
abstract void |
setInt(int paramIx,
int paramValue)
Sets the specified parameter index to the specified int value. |
abstract void |
setLong(int paramIx,
long paramValue)
Sets the specified parameter index to the specified long value. |
abstract void |
setNull(int paramIx,
int jdbcType)
Sets the specified parameter index to a NULL value. |
abstract void |
setNullReplacementValue(java.lang.String defNullValue)
Sets the replacement value to use if a NULL value is encountered when selecting data from a database or if no value is found in the XML document being used as input to a jXTransformer write statement. |
abstract void |
setObject(int paramIx,
java.lang.Object paramValue)
Sets the specified parameter index to the specified object. |
abstract void |
setObject(int paramIx,
java.lang.Object paramValue,
int targetJdbcType)
Sets the specified parameter index to the specified object. |
abstract void |
setObject(int paramIx,
java.lang.Object paramValue,
int targetJdbcType,
int scale)
Sets the specified parameter index to the specified object. |
void |
setPreparedStatementCloseBehaviour(boolean autoClose)
Specifies how to handle the closing of JDBC PreparedStatement objects that are created to execute this Connect for SQL/XML statement. |
abstract void |
setShort(int paramIx,
short paramValue)
Sets the specified parameter index to the specified short value. |
abstract void |
setString(int paramIx,
java.lang.String paramValue)
Sets the specified parameter index to the specified string value. |
abstract void |
setTime(int paramIx,
java.sql.Time paramValue)
Sets the specified parameter index to the specified time value. |
abstract void |
setTimestamp(int paramIx,
java.sql.Timestamp paramValue)
Sets the specified parameter index to the specified timestamp value. |
abstract void |
setTimestampEncoding(int timestampCoding)
Sets the type of encoding for timestamp values. |
boolean |
unlock(java.lang.String password)
Unlocks an OEM locked Connect for SQL/XML installation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TIMESTAMP_AS_ODBC
setTimestampEncoding(int),
Constant Field Valuespublic static final int TIMESTAMP_AS_ISO8601
setTimestampEncoding(int),
Constant Field Valuespublic static final int BINARY_AS_BASE64
setBinaryEncoding(int),
Constant Field Valuespublic static final int BINARY_AS_HEX
setBinaryEncoding(int),
Constant Field Values| Constructor Detail |
public JXTRBase()
JXTRBase.
| Method Detail |
public abstract void setBigDecimal(int paramIx,
java.math.BigDecimal paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setBigDecimal
public abstract void setBoolean(int paramIx,
boolean paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setBoolean
public abstract void setByte(int paramIx,
byte paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setByte
public abstract void setBytes(int paramIx,
byte[] paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setBytes
public abstract void setInt(int paramIx,
int paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setInt
public abstract void setObject(int paramIx,
java.lang.Object paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setObject
public abstract void setObject(int paramIx,
java.lang.Object paramValue,
int targetJdbcType)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parametertargetJdbcType - Target JDBC type for the parameterjava.sql.PreparedStatement.setObject
public abstract void setObject(int paramIx,
java.lang.Object paramValue,
int targetJdbcType,
int scale)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parametertargetJdbcType - Target JDBC type for the parameterscale - Scale for numeric and decimal JDBC typesjava.sql.PreparedStatement.setObject
public abstract void setString(int paramIx,
java.lang.String paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setString
public abstract void setShort(int paramIx,
short paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setShort
public abstract void setLong(int paramIx,
long paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setLong
public abstract void setFloat(int paramIx,
float paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setFloat
public abstract void setDouble(int paramIx,
double paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setDouble
public abstract void setDate(int paramIx,
java.sql.Date paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setDate
public abstract void setTime(int paramIx,
java.sql.Time paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setTime
public abstract void setTimestamp(int paramIx,
java.sql.Timestamp paramValue)
paramIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setTimestamp
public abstract void setNull(int paramIx,
int jdbcType)
paramIx - Index of parameter to set (1 based)jdbcType - JDBC type for the parameterjava.sql.PreparedStatement.setNullpublic abstract void setTimestampEncoding(int timestampCoding)
public abstract int getTimestampEncoding()
public abstract void setBinaryEncoding(int binaryCoding)
public abstract int getBinaryEncoding()
public abstract void setNullReplacementValue(java.lang.String defNullValue)
defNullValue - Value used to replace a NULL value if a NULL
value is encounteredpublic void setPreparedStatementCloseBehaviour(boolean autoClose)
When autoClose is set to true (the default),
All JDBC PreparedStatement objects that were opened to execute
this Connect for SQL/XML statement are automatically closed after the
statement is executed.
This does not apply to JXTRQuery or JXTRResultSetWrapper
objects for which the preferred JDBC statement type is set to
JDBC_STAT (see JXTRQueryBase.setPreferredJDBCStatType(int).
If set to false, the JDBC PreparedStatement objects
remain open after execution and are reused when this
Connect for SQL/XML statement is re-executed. In this case, an explicit
call to close() must be made to close all JDBC
preparedStatement objects and release the associated resources.
autoClose - Automatically closes database prepared statementsgetPreparedStatementCloseBehaviour(),
close()public boolean getPreparedStatementCloseBehaviour()
setPreparedStatementCloseBehaviour(boolean),
close()
public abstract void close()
throws JXTRException
JXTRException - if an error occured during closing of
resources or database statement(s).
public JXTRWarning getWarnings()
throws JXTRException
The warning chain is automatically cleared each time this object
is (re)executed.
This method cannot be called on a closed JXTRBase object;
doing so will cause an JXTRException to be thrown.
Note: If you are processing a JXTRResultSet object,
any warnings associated with reads on that JXTRResultSet object
will be chained on it rather than on the JXTRQuery object
that produced it.
JXTRException - if this method is called on a closed object.
public void clearWarnings()
throws JXTRException
getWarnings will
return null until a new warning is reported
for this object.
JXTRException - if an error occurs when clearing the warnings.public boolean unlock(java.lang.String password)
password - The password protecting this Connect for SQL/XML
installation.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||