com.infoengine.jdbc
Class PreparedBatchUpdate
java.lang.Object
com.infoengine.jdbc.JDBCObject
com.infoengine.jdbc.DoSql
com.infoengine.jdbc.PreparedBatchUpdate
- Direct Known Subclasses:
- BatchExecuteProcedure
- public class PreparedBatchUpdate
- extends DoSql
Fields inherited from class com.infoengine.jdbc.JDBCObject |
autoCommit, autoCommitSupported, BLOB_REQUEST, CLOB_REQUEST, commands, commitExplicitly, conn, ctx, dbType, DEFAULT, getBlobs, group, isTransaction, logWriter, NON_ORACLE, ORACLE_8I, ORACLE_9I, PARAM_ATTRIBUTE, PARAM_CATALOG, PARAM_CLASS, PARAM_DELIMITER, PARAM_DISTINCT, PARAM_FIELD, PARAM_FILENAME, PARAM_MAX_QUERY_SIZE, PARAM_MIMETYPE, PARAM_MODE, PARAM_PARAMTYPES, PARAM_PARAMVALUES, PARAM_RETURN, PARAM_SCHEMA, PARAM_SORTBY, PARAM_SORTED, PARAM_SQL, PARAM_TYPE, PARAM_WHERE, password, rb, rsetScrollCapability, scratchBuff, serviceName, task, TYPE_FORWARD_ONLY, userid, webject |
Method Summary |
protected void |
add_batch(Statement stmt)
|
protected void |
checkUpdateCountsSize(int size)
|
Object |
get_date_array(Vector elem_tokens)
|
protected oracle.sql.ARRAY |
get_oracle_array(String type_name,
String value)
|
protected oracle.sql.STRUCT |
get_oracle_struct(String type_name,
String value)
|
Object |
get_struct_array(Vector elem_tokens)
|
Object |
get_time_array(Vector elem_tokens)
|
int[] |
getParamSqlTypes(String[] paramTypes)
|
String[] |
getParamTypes()
|
protected Statement |
getStatement()
|
protected void |
processArray(PreparedStatement pstmt,
int index,
String value,
String param_type)
|
protected void |
processStruct(PreparedStatement pstmt,
int index,
String value,
String param_type)
|
void |
run()
|
protected void |
set_parameter(PreparedStatement pstmt,
int index,
String trimmed_value,
String param_type,
int param_sql_type)
|
protected void |
setNull(PreparedStatement pstmt,
int index,
String param_type,
int param_sql_type)
|
Methods inherited from class com.infoengine.jdbc.JDBCObject |
addGroup, addResultSet, addStructToElement, buildSelect, execCommand, getGroupoutName, getParam, getParams, getTask, getWebjectParam, initialize, makeConnection, removeControlChars, returnBlob, returnBlob, setCommitTypeInfo, setMessageReturn, sqlColumns, sqlColumns, sqlDistinct, sqlField, sqlFields, sqlFileName, sqlFileNames, sqlOrder, sqlTable, sqlValues, sqlWhere |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numInputSets
protected int numInputSets
delimiter
protected String delimiter
PreparedBatchUpdate
public PreparedBatchUpdate()
run
public void run()
throws IEAdapterException
- Overrides:
run
in class DoSql
- Throws:
IEAdapterException
getStatement
protected Statement getStatement()
throws SQLException
- Overrides:
getStatement
in class DoSql
- Throws:
SQLException
checkUpdateCountsSize
protected void checkUpdateCountsSize(int size)
throws IEAdapterException
- Overrides:
checkUpdateCountsSize
in class DoSql
- Throws:
IEAdapterException
add_batch
protected void add_batch(Statement stmt)
throws IEAdapterException
- Overrides:
add_batch
in class DoSql
- Throws:
IEAdapterException
setNull
protected void setNull(PreparedStatement pstmt,
int index,
String param_type,
int param_sql_type)
throws SQLException,
IEAdapterException
- Throws:
SQLException
IEAdapterException
processStruct
protected void processStruct(PreparedStatement pstmt,
int index,
String value,
String param_type)
throws SQLException,
IEAdapterException
- Throws:
SQLException
IEAdapterException
get_oracle_struct
protected oracle.sql.STRUCT get_oracle_struct(String type_name,
String value)
throws SQLException,
IEAdapterException
- Throws:
SQLException
IEAdapterException
processArray
protected void processArray(PreparedStatement pstmt,
int index,
String value,
String param_type)
throws SQLException,
IEAdapterException
- Throws:
SQLException
IEAdapterException
get_oracle_array
protected oracle.sql.ARRAY get_oracle_array(String type_name,
String value)
throws SQLException,
IEAdapterException
- Throws:
SQLException
IEAdapterException
get_time_array
public Object get_time_array(Vector elem_tokens)
throws IEAdapterException
- Throws:
IEAdapterException
get_date_array
public Object get_date_array(Vector elem_tokens)
throws IEAdapterException
- Throws:
IEAdapterException
get_struct_array
public Object get_struct_array(Vector elem_tokens)
throws SQLException,
IEAdapterException
- Throws:
SQLException
IEAdapterException
set_parameter
protected void set_parameter(PreparedStatement pstmt,
int index,
String trimmed_value,
String param_type,
int param_sql_type)
throws SQLException,
IEAdapterException
- Throws:
SQLException
IEAdapterException
getParamTypes
public String[] getParamTypes()
throws IEAdapterException
- Throws:
IEAdapterException
getParamSqlTypes
public int[] getParamSqlTypes(String[] paramTypes)