|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.BasicStatementBuilder
This class implements common methods.
Supported API: false
Extendable: false
Field Summary | |
private boolean |
chunkingEnabled
|
private static String |
CLASSNAME
|
protected static DMLGenerator |
DMLGENERATOR
|
static long |
EXTERNALIZATION_VERSION_UID
|
private int |
fetchSize
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private String[] |
sqlStatements
|
Fields inherited from interface wt.pds.StatementBuilder |
CHUNKING_ENABLED, FETCH_SIZE, SQL_STATEMENTS, STATEMENT_COUNT |
Constructor Summary | |
BasicStatementBuilder()
|
Method Summary | |
static void |
appendBindParameter(Object a_parameter,
Vector a_parameterList)
Deprecated. as of R8.0, use wt.pds.BindParameterUtil.appendBindParameter(Object, List) |
String[] |
buildSQL(ResultBuilder a_resultBuilder,
WTConnection a_connection,
boolean a_isComponent)
Returns an array of SQL statements to execute. |
protected void |
clone(BasicStatementBuilder clone)
|
int |
getFetchSize()
Gets the value of the attribute: fetchSize. |
String[] |
getSqlStatements()
Gets the value of the attribute: sqlStatements; Array of SQL statements. |
PreparedStatement |
getStatement(WTConnection a_connection,
int a_sqlIndex)
Returns an array of JDBC statements to execute. |
abstract Vector |
getStatementBindParameters(int a_sqlIndex)
Returns a Vector of bind parameters for the specified statement. |
int |
getStatementCount()
Gets the value of the attribute: statementCount; Number of SQL statements. |
static int |
insertBindParameterAt(Object a_parameter,
int a_index,
Vector a_parameterList)
Inserts a bind parameter to the internal list of bind parameters for all statements. |
boolean |
isChunkingEnabled()
Gets the value of the attribute: chunkingEnabled; Indicates if chunking is enabled. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(BasicStatementBuilder thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setChunkingEnabled(boolean a_ChunkingEnabled)
Sets the value of the attribute: chunkingEnabled; Indicates if chunking is enabled. |
void |
setFetchSize(int a_FetchSize)
Sets the value of the attribute: fetchSize. |
protected void |
setSqlStatements(String[] a_SqlStatements)
Sets the value of the attribute: sqlStatements; Array of SQL statements. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface wt.pds.StatementBuilder |
buildSQL |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String[] sqlStatements
private int fetchSize
private boolean chunkingEnabled
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected static final DMLGenerator DMLGENERATOR
Constructor Detail |
public BasicStatementBuilder()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(BasicStatementBuilder thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public PreparedStatement getStatement(WTConnection a_connection, int a_sqlIndex) throws PersistenceException
getStatement
in interface StatementBuilder
a_connection
- a_sqlIndex
-
PersistenceException
public static void appendBindParameter(Object a_parameter, Vector a_parameterList)
a_parameter
- Bind parameter to append.a_parameterList
- Bind parameter list to append to.public static int insertBindParameterAt(Object a_parameter, int a_index, Vector a_parameterList)
a_parameter
- Bind paremeter to insert.a_index
- Index to insert at.a_parameterList
- Bind parameter list to insert to.
public abstract Vector getStatementBindParameters(int a_sqlIndex) throws PersistenceException
getStatementBindParameters
in interface StatementBuilder
a_sqlIndex
-
PersistenceException
public String[] buildSQL(ResultBuilder a_resultBuilder, WTConnection a_connection, boolean a_isComponent) throws PersistenceException
buildSQL
in interface StatementBuilder
a_resultBuilder
- a_connection
- a_isComponent
- Indicates that these SQL statements will be used as nested components of another SQL statement.
PersistenceException
public String[] getSqlStatements()
getSqlStatements
in interface StatementBuilder
protected void setSqlStatements(String[] a_SqlStatements) throws WTPropertyVetoException
a_SqlStatements
-
WTPropertyVetoException
public int getStatementCount()
getStatementCount
in interface StatementBuilder
public int getFetchSize()
getFetchSize
in interface StatementBuilder
public void setFetchSize(int a_FetchSize)
setFetchSize
in interface StatementBuilder
a_FetchSize
- public boolean isChunkingEnabled()
isChunkingEnabled
in interface StatementBuilder
public void setChunkingEnabled(boolean a_ChunkingEnabled) throws WTPropertyVetoException
setChunkingEnabled
in interface StatementBuilder
a_ChunkingEnabled
-
WTPropertyVetoException
protected void clone(BasicStatementBuilder clone)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |