Package org.compiere.db
Class StatementProxy
java.lang.Object
org.compiere.db.StatementProxy
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
PreparedStatementProxy
Dynamic proxy for the CStatement interface
- Author:
- Low Heng Sin
-
Field Summary
Modifier and TypeFieldDescriptionprotected CLogger
Loggerprotected Connection
protected Statement
Used if localprotected CStatementVO
Value Object -
Constructor Summary
ModifierConstructorDescriptionprotected
StatementProxy
(int resultSetType, int resultSetConcurrency, String trxName) -
Method Summary
-
Field Details
-
m_conn
-
log
Logger -
p_stmt
Used if local -
p_vo
Value Object
-
-
Constructor Details
-
StatementProxy
- Parameters:
resultSetType
-resultSetConcurrency
-trxName
-
-
StatementProxy
- Parameters:
vo
-
-
StatementProxy
protected StatementProxy()
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
init
protected void init()Initialise the statement wrapper object -
close
Close- Throws:
SQLException
- See Also:
-
getRowSet
Execute the wrapped statement and return row set- Returns:
- RowSet
- Throws:
SQLException
- See Also:
-
getSql
Get Sql- Returns:
- sql
-