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
ConstructorDescriptionPreparedStatementProxy
(int resultSetType, int resultSetConcurrency, String sql0, String trxName) PreparedStatementProxy
(int resultSetType, int resultSetConcurrency, String sql0, Connection connection) -
Method Summary
Modifier and TypeMethodDescriptionprotected RowSet
Execute the wrapped statement and return row setprotected void
init()
Initialize the prepared statement wrapper objectprotected void
init
(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:
init
in classStatementProxy
-
init
Initialize the prepared statement wrapper object -
getRowSet
Description copied from class:StatementProxy
Execute the wrapped statement and return row set- Overrides:
getRowSet
in classStatementProxy
- Returns:
- RowSet
- See Also:
-