|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.letsparty.driver.BasicPreparedStatement
Base class for Let's Party! statements. It collects jdbc parameters values and provides some helper methods.
| Field Summary | |
protected Connection |
connection
|
protected JdbcParsHandler |
jdbcParsHandler
|
| Fields inherited from interface java.sql.Statement |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
| Constructor Summary | |
BasicPreparedStatement()
|
|
| Method Summary | |
void |
clearParameters()
|
protected PartitionedTableSuffixList |
constructPartitionedTableSuffixList(PartitionedTable partTable,
PartitionedExpression partitionedExpression)
If partitionedExpression is null returns a list of all the partition; otherwise
it returns the list of suffixes this partitionedExpression requires. |
protected java.util.List[] |
constructTableListOfTables(PartTableVisitor partTableVisitor,
PartExpressionVisitor partExpressionVisitor)
For each partitioned table in the statement (from partTableVisitor) find a list of tables that matches
a certain where clause (from partExpressionVisitor) |
boolean |
execute(java.lang.String arg0)
|
boolean |
execute(java.lang.String arg0,
int arg1)
|
boolean |
execute(java.lang.String arg0,
int[] arg1)
|
boolean |
execute(java.lang.String arg0,
java.lang.String[] arg1)
|
protected int |
executeChangingName(java.util.List tableStringList,
java.lang.String partitionedTableName,
java.lang.String origSqlQuery,
Connection connection)
Execute the origSqlQuery for every table name in tableStringList, each time replacing
partitionedTableName with a name from tableStringList |
int |
executeUpdate(java.lang.String arg0)
|
int |
executeUpdate(java.lang.String arg0,
int arg1)
|
int |
executeUpdate(java.lang.String arg0,
int[] arg1)
|
int |
executeUpdate(java.lang.String arg0,
java.lang.String[] arg1)
|
java.sql.Connection |
getConnection()
|
int |
getFetchDirection()
|
int |
getFetchSize()
|
int |
getMaxFieldSize()
|
int |
getMaxRows()
|
int |
getQueryTimeout()
|
void |
setArray(int arg0,
java.sql.Array arg1)
|
void |
setAsciiStream(int arg0,
java.io.InputStream arg1,
int arg2)
|
void |
setBigDecimal(int arg0,
java.math.BigDecimal arg1)
|
void |
setBinaryStream(int arg0,
java.io.InputStream arg1,
int arg2)
|
void |
setBlob(int arg0,
java.sql.Blob arg1)
|
void |
setBoolean(int arg0,
boolean arg1)
|
void |
setByte(int arg0,
byte arg1)
|
void |
setBytes(int arg0,
byte[] arg1)
|
void |
setCharacterStream(int arg0,
java.io.Reader arg1,
int arg2)
|
void |
setClob(int arg0,
java.sql.Clob arg1)
|
void |
setCursorName(java.lang.String arg0)
|
void |
setDate(int arg0,
java.sql.Date arg1)
|
void |
setDate(int arg0,
java.sql.Date arg1,
java.util.Calendar arg2)
|
void |
setDouble(int arg0,
double arg1)
|
void |
setEscapeProcessing(boolean arg0)
|
void |
setFetchDirection(int arg0)
|
void |
setFetchSize(int arg0)
|
void |
setFloat(int arg0,
float arg1)
|
void |
setInt(int arg0,
int arg1)
|
void |
setLong(int arg0,
long arg1)
|
void |
setMaxFieldSize(int arg0)
|
void |
setMaxRows(int arg0)
|
void |
setNull(int arg0,
int arg1)
|
void |
setNull(int arg0,
int arg1,
java.lang.String arg2)
|
void |
setObject(int arg0,
java.lang.Object arg1)
|
void |
setObject(int arg0,
java.lang.Object arg1,
int arg2)
|
void |
setObject(int arg0,
java.lang.Object arg1,
int arg2,
int arg3)
|
protected void |
setParameters(java.sql.PreparedStatement preparedStatement)
Set the jdbc values collected in the preparedStatement |
protected void |
setParameters(java.sql.PreparedStatement preparedStatement,
int startFrom)
Set the jdbc values collected in the preparedStatement, starting from index startFrom |
protected void |
setParameters(java.sql.PreparedStatement preparedStatement,
int startFrom,
int upTo)
Set the jdbc values collected in the preparedStatement, starting from index startFrom
up to upTo |
void |
setQueryTimeout(int arg0)
|
void |
setRef(int arg0,
java.sql.Ref arg1)
|
void |
setShort(int arg0,
short arg1)
|
void |
setString(int arg0,
java.lang.String arg1)
|
void |
setTime(int arg0,
java.sql.Time arg1)
|
void |
setTime(int arg0,
java.sql.Time arg1,
java.util.Calendar arg2)
|
void |
setTimestamp(int arg0,
java.sql.Timestamp arg1)
|
void |
setTimestamp(int arg0,
java.sql.Timestamp arg1,
java.util.Calendar arg2)
|
void |
setUnicodeStream(int arg0,
java.io.InputStream arg1,
int arg2)
|
void |
setURL(int arg0,
java.net.URL arg1)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.PreparedStatement |
addBatch, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData |
| Methods inherited from interface java.sql.Statement |
addBatch, cancel, clearBatch, clearWarnings, close, executeBatch, executeQuery, getGeneratedKeys, getMoreResults, getMoreResults, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings |
| Field Detail |
protected JdbcParsHandler jdbcParsHandler
protected Connection connection
| Constructor Detail |
public BasicPreparedStatement()
| Method Detail |
protected java.util.List[] constructTableListOfTables(PartTableVisitor partTableVisitor,
PartExpressionVisitor partExpressionVisitor)
throws LetsPartyException
partTableVisitor) find a list of tables that matches
a certain where clause (from partExpressionVisitor)
partTableVisitor - partExpressionVisitor -
LetsPartyException
protected void setParameters(java.sql.PreparedStatement preparedStatement)
throws java.sql.SQLException
preparedStatement
preparedStatement -
java.sql.SQLException
protected void setParameters(java.sql.PreparedStatement preparedStatement,
int startFrom)
throws java.sql.SQLException
preparedStatement, starting from index startFrom
preparedStatement - startFrom -
java.sql.SQLException
protected void setParameters(java.sql.PreparedStatement preparedStatement,
int startFrom,
int upTo)
throws java.sql.SQLException
preparedStatement, starting from index startFrom
up to upTo
preparedStatement - startFrom - upTo -
java.sql.SQLException
protected int executeChangingName(java.util.List tableStringList,
java.lang.String partitionedTableName,
java.lang.String origSqlQuery,
Connection connection)
throws java.sql.SQLException
origSqlQuery for every table name in tableStringList, each time replacing
partitionedTableName with a name from tableStringList
tableStringList - partitionedTableName - origSqlQuery - connection -
java.sql.SQLException
protected PartitionedTableSuffixList constructPartitionedTableSuffixList(PartitionedTable partTable,
PartitionedExpression partitionedExpression)
throws LetsPartyException
partitionedExpression is null returns a list of all the partition; otherwise
it returns the list of suffixes this partitionedExpression requires.
partTable - partitionedExpression -
LetsPartyException
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface java.sql.Statementjava.sql.SQLException
public void clearParameters()
throws java.sql.SQLException
clearParameters in interface java.sql.PreparedStatementjava.sql.SQLException
public int getFetchDirection()
throws java.sql.SQLException
getFetchDirection in interface java.sql.Statementjava.sql.SQLException
public int getFetchSize()
throws java.sql.SQLException
getFetchSize in interface java.sql.Statementjava.sql.SQLException
public int getMaxFieldSize()
throws java.sql.SQLException
getMaxFieldSize in interface java.sql.Statementjava.sql.SQLException
public int getMaxRows()
throws java.sql.SQLException
getMaxRows in interface java.sql.Statementjava.sql.SQLException
public int getQueryTimeout()
throws java.sql.SQLException
getQueryTimeout in interface java.sql.Statementjava.sql.SQLException
public void setArray(int arg0,
java.sql.Array arg1)
throws java.sql.SQLException
setArray in interface java.sql.PreparedStatementjava.sql.SQLException
public void setAsciiStream(int arg0,
java.io.InputStream arg1,
int arg2)
throws java.sql.SQLException
setAsciiStream in interface java.sql.PreparedStatementjava.sql.SQLException
public void setBigDecimal(int arg0,
java.math.BigDecimal arg1)
throws java.sql.SQLException
setBigDecimal in interface java.sql.PreparedStatementjava.sql.SQLException
public void setBinaryStream(int arg0,
java.io.InputStream arg1,
int arg2)
throws java.sql.SQLException
setBinaryStream in interface java.sql.PreparedStatementjava.sql.SQLException
public void setBlob(int arg0,
java.sql.Blob arg1)
throws java.sql.SQLException
setBlob in interface java.sql.PreparedStatementjava.sql.SQLException
public void setBoolean(int arg0,
boolean arg1)
throws java.sql.SQLException
setBoolean in interface java.sql.PreparedStatementjava.sql.SQLException
public void setByte(int arg0,
byte arg1)
throws java.sql.SQLException
setByte in interface java.sql.PreparedStatementjava.sql.SQLException
public void setBytes(int arg0,
byte[] arg1)
throws java.sql.SQLException
setBytes in interface java.sql.PreparedStatementjava.sql.SQLException
public void setCharacterStream(int arg0,
java.io.Reader arg1,
int arg2)
throws java.sql.SQLException
setCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLException
public void setClob(int arg0,
java.sql.Clob arg1)
throws java.sql.SQLException
setClob in interface java.sql.PreparedStatementjava.sql.SQLException
public void setCursorName(java.lang.String arg0)
throws java.sql.SQLException
setCursorName in interface java.sql.Statementjava.sql.SQLException
public void setDate(int arg0,
java.sql.Date arg1)
throws java.sql.SQLException
setDate in interface java.sql.PreparedStatementjava.sql.SQLException
public void setDate(int arg0,
java.sql.Date arg1,
java.util.Calendar arg2)
throws java.sql.SQLException
setDate in interface java.sql.PreparedStatementjava.sql.SQLException
public void setDouble(int arg0,
double arg1)
throws java.sql.SQLException
setDouble in interface java.sql.PreparedStatementjava.sql.SQLException
public void setEscapeProcessing(boolean arg0)
throws java.sql.SQLException
setEscapeProcessing in interface java.sql.Statementjava.sql.SQLException
public void setFetchDirection(int arg0)
throws java.sql.SQLException
setFetchDirection in interface java.sql.Statementjava.sql.SQLException
public void setFetchSize(int arg0)
throws java.sql.SQLException
setFetchSize in interface java.sql.Statementjava.sql.SQLException
public void setFloat(int arg0,
float arg1)
throws java.sql.SQLException
setFloat in interface java.sql.PreparedStatementjava.sql.SQLException
public void setInt(int arg0,
int arg1)
throws java.sql.SQLException
setInt in interface java.sql.PreparedStatementjava.sql.SQLException
public void setLong(int arg0,
long arg1)
throws java.sql.SQLException
setLong in interface java.sql.PreparedStatementjava.sql.SQLException
public void setMaxFieldSize(int arg0)
throws java.sql.SQLException
setMaxFieldSize in interface java.sql.Statementjava.sql.SQLException
public void setMaxRows(int arg0)
throws java.sql.SQLException
setMaxRows in interface java.sql.Statementjava.sql.SQLException
public void setNull(int arg0,
int arg1)
throws java.sql.SQLException
setNull in interface java.sql.PreparedStatementjava.sql.SQLException
public void setNull(int arg0,
int arg1,
java.lang.String arg2)
throws java.sql.SQLException
setNull in interface java.sql.PreparedStatementjava.sql.SQLException
public void setObject(int arg0,
java.lang.Object arg1)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLException
public void setObject(int arg0,
java.lang.Object arg1,
int arg2)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLException
public void setObject(int arg0,
java.lang.Object arg1,
int arg2,
int arg3)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLException
public void setQueryTimeout(int arg0)
throws java.sql.SQLException
setQueryTimeout in interface java.sql.Statementjava.sql.SQLException
public void setRef(int arg0,
java.sql.Ref arg1)
throws java.sql.SQLException
setRef in interface java.sql.PreparedStatementjava.sql.SQLException
public void setShort(int arg0,
short arg1)
throws java.sql.SQLException
setShort in interface java.sql.PreparedStatementjava.sql.SQLException
public void setString(int arg0,
java.lang.String arg1)
throws java.sql.SQLException
setString in interface java.sql.PreparedStatementjava.sql.SQLException
public void setTime(int arg0,
java.sql.Time arg1)
throws java.sql.SQLException
setTime in interface java.sql.PreparedStatementjava.sql.SQLException
public void setTime(int arg0,
java.sql.Time arg1,
java.util.Calendar arg2)
throws java.sql.SQLException
setTime in interface java.sql.PreparedStatementjava.sql.SQLException
public void setTimestamp(int arg0,
java.sql.Timestamp arg1)
throws java.sql.SQLException
setTimestamp in interface java.sql.PreparedStatementjava.sql.SQLException
public void setTimestamp(int arg0,
java.sql.Timestamp arg1,
java.util.Calendar arg2)
throws java.sql.SQLException
setTimestamp in interface java.sql.PreparedStatementjava.sql.SQLException
public void setUnicodeStream(int arg0,
java.io.InputStream arg1,
int arg2)
throws java.sql.SQLException
setUnicodeStream in interface java.sql.PreparedStatementjava.sql.SQLException
public void setURL(int arg0,
java.net.URL arg1)
throws java.sql.SQLException
setURL in interface java.sql.PreparedStatementjava.sql.SQLException
public boolean execute(java.lang.String arg0,
int arg1)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException
public boolean execute(java.lang.String arg0,
int[] arg1)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException
public boolean execute(java.lang.String arg0,
java.lang.String[] arg1)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException
public boolean execute(java.lang.String arg0)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException
public int executeUpdate(java.lang.String arg0,
int arg1)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException
public int executeUpdate(java.lang.String arg0,
int[] arg1)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException
public int executeUpdate(java.lang.String arg0,
java.lang.String[] arg1)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException
public int executeUpdate(java.lang.String arg0)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||