Package org.compiere.db
Class PreparedStatementProxy
java.lang.Object
org.compiere.db.StatementProxy
org.compiere.db.PreparedStatementProxy
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
CallableStatementProxy
Dynamic proxy for the CPreparedStatement interface
- Author:
- Low Heng Sin
-
Field Summary
Fields inherited from class org.compiere.db.StatementProxy
log, m_conn, p_stmt, p_vo -
Constructor Summary
ConstructorsConstructorDescriptionPreparedStatementProxy(int resultSetType, int resultSetConcurrency, String sql0, String trxName) PreparedStatementProxy(int resultSetType, int resultSetConcurrency, String sql0, Connection connection) -
Method Summary
Modifier and TypeMethodDescriptionprotected RowSetExecute the wrapped statement and return row setprotected voidinit()Initialize the prepared statement wrapper objectprotected voidinit(Connection connection) Initialize the prepared statement wrapper objectMethods inherited from class org.compiere.db.StatementProxy
close, getSql, invoke
-
Constructor Details
-
PreparedStatementProxy
public PreparedStatementProxy(int resultSetType, int resultSetConcurrency, String sql0, String trxName) - Parameters:
resultSetType-resultSetConcurrency-sql0-trxName-
-
PreparedStatementProxy
public PreparedStatementProxy(int resultSetType, int resultSetConcurrency, String sql0, Connection connection) - Parameters:
resultSetType-resultSetConcurrency-sql0-connection-
-
PreparedStatementProxy
- Parameters:
vo-
-
-
Method Details
-
init
protected void init()Initialize the prepared statement wrapper object- Overrides:
initin classStatementProxy
-
init
Initialize the prepared statement wrapper object -
getRowSet
Description copied from class:StatementProxyExecute the wrapped statement and return row set- Overrides:
getRowSetin classStatementProxy- Returns:
- RowSet
- See Also:
-