public interface SQLQueryFactory extends QueryFactory
| Modifier and Type | Method and Description |
|---|---|
Object |
directGet(Object key,
com.gemstone.gemfire.cache.Region region) |
ResultSet |
execute(String stmt,
Connection conn) |
ResultSet |
executeQuery(String stmt,
Connection conn) |
int |
executeUpdate(String stmt,
Connection conn) |
int |
fillAndExecutePreparedInsertStatements(List pstmts,
List stmts,
int i)
Given a list of prepared insert statements, will fill in parameters based on i, and then execute
|
ResultSet |
fillAndExecutePreparedQueryStatement(PreparedStatement pstmt,
String stmt,
int queryType,
int i)
Given a prepared statement, will fill in parameters based on i, and then execute
|
int |
fillAndExecuteUpdatePreparedQueryStatement(PreparedStatement pstmt,
String stmt,
int queryType,
int i)
Given a prepared statement, will fill in parameters based on i, and then execute
|
List |
getConstraintStatements()
Returns an List of index statements to execute
|
String |
getCreateSchemaStatement() |
String |
getDropSchemaStatement() |
List |
getDropTableStatements() |
List |
getIndexStatements()
Returns an List of index statements to execute
|
List |
getInsertStatements(int id)
Returns the list of statements needed to insert the tables.
|
List |
getPreparedInsertStatements()
Returns the list of statements formed for preparation needed to insert into the tables.
|
com.gemstone.gemfire.cache.Region |
getRegionForQuery(int queryType) |
List |
getTableStatements() |
int |
readResultSet(int queryType,
ResultSet rs)
This method will be used to pull data from the result set so we know we are actually
retrieving data and not just a cursor to data
|
getDeleteQueryType, getPreparedQuery, getQuery, getQueryType, getUpdateQueryType, initString getCreateSchemaStatement()
String getDropSchemaStatement()
List getTableStatements()
List getDropTableStatements()
List getIndexStatements()
QueryFactoryException - if the indexType is not found.List getConstraintStatements()
QueryFactoryException - if the constraints are not found.List getInsertStatements(int id)
List getPreparedInsertStatements()
int fillAndExecutePreparedInsertStatements(List pstmts, List stmts, int i) throws SQLException
SQLExceptionResultSet fillAndExecutePreparedQueryStatement(PreparedStatement pstmt, String stmt, int queryType, int i) throws SQLException
SQLExceptionint fillAndExecuteUpdatePreparedQueryStatement(PreparedStatement pstmt, String stmt, int queryType, int i) throws SQLException
SQLExceptionResultSet execute(String stmt, Connection conn) throws SQLException
SQLExceptionResultSet executeQuery(String stmt, Connection conn) throws SQLException
SQLExceptionint executeUpdate(String stmt, Connection conn) throws SQLException
SQLExceptionint readResultSet(int queryType,
ResultSet rs)
throws SQLException
SQLExceptioncom.gemstone.gemfire.cache.Region getRegionForQuery(int queryType)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.