|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class encapsulates functionality for building SQL statements. It
contains an array of SQL statements and can provide a JDBC PreparedStatement
corresponding to one of these internal SQL statements.
Supported API: false
Extendable: false
Field Summary | |
static String |
CHUNKING_ENABLED
Label for the attribute; Indicates if chunking is enabled. |
static String |
FETCH_SIZE
Label for the attribute. |
static String |
SQL_STATEMENTS
Label for the attribute; Array of SQL statements. |
static String |
STATEMENT_COUNT
Label for the attribute; Number of SQL statements. |
Method Summary | |
String[] |
buildSQL(ResultBuilder a_resultBuilder,
WTConnection a_connection,
boolean a_isComponent)
Returns an array of SQL statements to execute. |
String[] |
buildSQL(ResultBuilder a_resultBuilder,
WTConnection a_connection,
boolean a_isComponent,
boolean a_isComponentChunkSupported)
Returns an array of SQL statements to execute. |
int |
getFetchSize()
Gets the value of the attribute: FETCH_SIZE. |
String[] |
getSqlStatements()
Gets the value of the attribute: SQL_STATEMENTS. |
PreparedStatement |
getStatement(WTConnection a_connection,
int a_sqlIndex)
Returns an array of JDBC statements to execute. |
Vector |
getStatementBindParameters(int a_sqlIndex)
Returns a Vector of bind parameters for the specified statement. |
int |
getStatementCount()
Gets the value of the attribute: STATEMENT_COUNT. |
boolean |
isChunkingEnabled()
Gets the value of the attribute: CHUNKING_ENABLED. |
void |
setChunkingEnabled(boolean a_ChunkingEnabled)
Sets the value of the attribute: CHUNKING_ENABLED. |
void |
setFetchSize(int a_FetchSize)
Sets the value of the attribute: FETCH_SIZE. |
Field Detail |
public static final String SQL_STATEMENTS
public static final String STATEMENT_COUNT
public static final String FETCH_SIZE
public static final String CHUNKING_ENABLED
Method Detail |
public String[] getSqlStatements()
public int getStatementCount()
public int getFetchSize()
public void setFetchSize(int a_FetchSize)
a_FetchSize
- public boolean isChunkingEnabled()
public void setChunkingEnabled(boolean a_ChunkingEnabled) throws WTPropertyVetoException
a_ChunkingEnabled
-
WTPropertyVetoException
public PreparedStatement getStatement(WTConnection a_connection, int a_sqlIndex) throws PersistenceException
a_connection
- a_sqlIndex
-
PersistenceException
public String[] buildSQL(ResultBuilder a_resultBuilder, WTConnection a_connection, boolean a_isComponent, boolean a_isComponentChunkSupported) throws PersistenceException
a_resultBuilder
- a_connection
- a_isComponent
- Indicates that these SQL statements will be used as nested components of another SQL statement.a_isComponentChunkSupported
- Indicates that these SQL statements will support chunk or not, and the value will be false when a_isComponent is false, and can be true or false when a_isComponents is true.
PersistenceException
public Vector getStatementBindParameters(int a_sqlIndex) throws PersistenceException
a_sqlIndex
-
PersistenceException
public String[] buildSQL(ResultBuilder a_resultBuilder, WTConnection a_connection, boolean a_isComponent) throws PersistenceException
a_resultBuilder
- a_connection
- a_isComponent
- Indicates that these SQL statements will be used as nested components of another SQL statement.
PersistenceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |