|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.ddtek.jxtr.JXTRBase
|
+--com.ddtek.jxtr.JXTRUpdateBase
JXTRUpdateBase is an abstract base class implementing a number of
methods shared between all jXTransformer write classes
(JXTRSingleTableUpdate, JXTRUpdate).
| Field Summary |
| Fields inherited from class com.ddtek.jxtr.JXTRBase |
BINARY_AS_BASE64, BINARY_AS_HEX, TIMESTAMP_AS_ISO8601, TIMESTAMP_AS_ODBC |
| Constructor Summary | |
JXTRUpdateBase()
Constructs a new JXTRUpdateBase object. |
|
| Method Summary | |
int |
getBatchSize()
Gets the maximum number of JDBC batch entries that can be executed at the same time. |
int |
getBinaryEncoding()
Returns the type of binary encoding/decoding. |
java.lang.String |
getNullRepresentationValue()
Gets the value that was set to represent a NULL value. |
int |
getTimestampEncoding()
Returns the type of timestamp encoding/decoding. |
boolean |
getUseNullReplacementWithNullRepresentation()
Gets the flag setting that instructs Connect for SQL/XML whether to use the NULL replacement value instead of a database NULL value when a NULL replacement value and a NULL representation value are both specified. |
void |
setBatchSize(int size)
Sets the maximum number of JDBC batch entries that can be executed at the same time. |
void |
setBigDecimal(int paramIx,
java.math.BigDecimal paramValue)
Sets the specified parameter index to the specified BigDecimal value. |
void |
setBinaryEncoding(int binaryCoding)
Sets the type of encoding/decoding for binary values (either BINARY_AS_BASE64 or BINARY_AS_HEX). |
void |
setBoolean(int paramIx,
boolean paramValue)
Sets the specified parameter index to the specified boolean value. |
void |
setByte(int paramIx,
byte paramValue)
Sets the specified parameter index to the specified byte value. |
void |
setBytes(int paramIx,
byte[] paramValue)
Sets the specified parameter index to the specified byte array value. |
void |
setDate(int paramIx,
java.sql.Date paramValue)
Sets the specified parameter index to the specified date value. |
void |
setDouble(int paramIx,
double paramValue)
Sets the specified parameter index to the specified double value. |
void |
setFloat(int paramIx,
float paramValue)
Sets the specified parameter index to the specified float value. |
void |
setInt(int paramIx,
int paramValue)
Sets the specified parameter index to the specified int value. |
void |
setLong(int paramIx,
long paramValue)
Sets the specified parameter index to the specified long value. |
void |
setNull(int paramIx,
int jdbcType)
Sets the specified parameter index to a NULL value. |
void |
setNullReplacementValue(java.lang.String defNullValue)
Sets the replacement value to use when an XPath expression does not return a value. |
void |
setNullRepresentationValue(java.lang.String nullValue)
Sets a value that will be replaced with NULL when the value is encountered as the result of an XPath expression. |
void |
setObject(int paramIx,
java.lang.Object paramValue)
Sets the specified parameter index to the specified object. |
void |
setObject(int paramIx,
java.lang.Object paramValue,
int targetJdbcType)
Sets the specified parameter index to the specified object. |
void |
setObject(int paramIx,
java.lang.Object paramValue,
int targetJdbcType,
int scale)
Sets the specified parameter index to the specified object. |
void |
setShort(int paramIx,
short paramValue)
Sets the specified parameter index to the specified short value. |
void |
setString(int paramIx,
java.lang.String paramValue)
Sets the specified parameter index to the specified string value. |
void |
setTime(int paramIx,
java.sql.Time paramValue)
Sets the specified parameter index to the specified time value. |
void |
setTimestamp(int paramIx,
java.sql.Timestamp paramValue)
Sets the specified parameter index to the specified timestamp value. |
void |
setTimestampEncoding(int timestampCoding)
Sets the type of encoding/decoding for timestamp values (either TIMESTAMP_AS_ISO8601 or TIMESTAMP_AS_ODBC ). |
void |
setUseNullReplacementWithNullRepresentation(boolean enable)
Sets a boolean flag that instructs Connect for SQL/XML which value to use when both a NULL replacement value and a NULL representation value are specified. |
| Methods inherited from class com.ddtek.jxtr.JXTRBase |
clearWarnings, close, getPreparedStatementCloseBehaviour, getWarnings, setPreparedStatementCloseBehaviour, unlock |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JXTRUpdateBase()
| Method Detail |
public void setString(int paramIx,
java.lang.String paramValue)
JXTRBase
setString in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setString
public void setDate(int paramIx,
java.sql.Date paramValue)
JXTRBase
setDate in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setDate
public void setBoolean(int paramIx,
boolean paramValue)
JXTRBase
setBoolean in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setBoolean
public void setBigDecimal(int paramIx,
java.math.BigDecimal paramValue)
JXTRBase
setBigDecimal in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setBigDecimal
public void setTimestamp(int paramIx,
java.sql.Timestamp paramValue)
JXTRBase
setTimestamp in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setTimestamp
public void setLong(int paramIx,
long paramValue)
JXTRBase
setLong in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setLong
public void setByte(int paramIx,
byte paramValue)
JXTRBase
setByte in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setByte
public void setBytes(int paramIx,
byte[] paramValue)
JXTRBase
setBytes in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setBytes
public void setDouble(int paramIx,
double paramValue)
JXTRBase
setDouble in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setDouble
public void setShort(int paramIx,
short paramValue)
JXTRBase
setShort in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setShort
public void setTime(int paramIx,
java.sql.Time paramValue)
JXTRBase
setTime in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setTime
public void setFloat(int paramIx,
float paramValue)
JXTRBase
setFloat in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setFloat
public void setInt(int paramIx,
int paramValue)
JXTRBase
setInt in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setInt
public void setObject(int paramIx,
java.lang.Object paramValue)
JXTRBase
setObject in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parameterjava.sql.PreparedStatement.setObject
public void setObject(int paramIx,
java.lang.Object paramValue,
int targetJdbcType)
JXTRBase
setObject in class JXTRBaseparamIx - Index of parameter to set (1 based)paramValue - Value for the parametertargetJdbcType - Target JDBC type for the parameterjava.sql.PreparedStatement.setObject
public void setObject(int paramIx,
java.lang.Object paramValue,
int targetJdbcType,
int scale)
JXTRBase
setObject in class JXTRBaseparamIx - 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 void setNull(int paramIx,
int jdbcType)
JXTRBase
setNull in class JXTRBaseparamIx - Index of parameter to set (1 based)jdbcType - JDBC type for the parameterjava.sql.PreparedStatement.setNullpublic void setTimestampEncoding(int timestampCoding)
setTimestampEncoding in class JXTRBasepublic int getTimestampEncoding()
getTimestampEncoding in class JXTRBasepublic void setBinaryEncoding(int binaryCoding)
setBinaryEncoding in class JXTRBasepublic int getBinaryEncoding()
getBinaryEncoding in class JXTRBasepublic void setNullReplacementValue(java.lang.String defNullValue)
By default, Connect for SQL/XML will use NULL when an XPath expression does not return a value. Default behaviour can be overridden by invoking this method and specifying a value to use instead of NULL.
setNullReplacementValue in class JXTRBasedefNullValue - Value to use instead of NULL.public void setNullRepresentationValue(java.lang.String nullValue)
nullValue - Value that is replaced by a NULL value.public java.lang.String getNullRepresentationValue()
setNullRepresentationValue(java.lang.String)public void setUseNullReplacementWithNullRepresentation(boolean enable)
When only a NULL representation value is set, a database NULL
value is used. If a NULL replacement value is set in addition to
the NULL representation value and this flag is set to
true, the value is replaced with the NULL replacement
value instead of a database NULL value.
enable - If true and a NULL replacement value
has been set, the NULL replacement value will be used instead of
a database NULL value. If false, a database NULL
value is always used, even if the NULL replacement value is
specified.setNullReplacementValue(java.lang.String).,
setNullRepresentationValue(java.lang.String).public boolean getUseNullReplacementWithNullRepresentation()
setUseNullReplacementWithNullRepresentation(boolean).
public void setBatchSize(int size)
throws java.lang.IllegalArgumentException
The default value is 0 (the complete set of input parameters, as determined by the combination of the input XML document, row pattern, and XPath expressions, will be sent as one batch to the database.
This method can be used to restrict the size of batches. If the number of parameter sets is greater than the maximum batch size, multiple batches are executed.
size - Maximum JDBC batch size.
java.lang.IllegalArgumentException - if size < 0 .public int getBatchSize()
setBatchSize(int).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||