Package org.compiere.db
Class StatementProxy
- java.lang.Object
-
- org.compiere.db.StatementProxy
-
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
PreparedStatementProxy
public class StatementProxy extends Object implements InvocationHandler
Dynamic proxy for the CStatement interface- Author:
- Low Heng Sin
-
-
Field Summary
Fields Modifier and Type Field Description protected CLogger
log
Loggerprotected Connection
m_conn
protected Statement
p_stmt
Used if localprotected CStatementVO
p_vo
Value Object
-
Constructor Summary
Constructors Modifier Constructor Description protected
StatementProxy()
StatementProxy(int resultSetType, int resultSetConcurrency, String trxName)
StatementProxy(CStatementVO vo)
-
-
-
Field Detail
-
m_conn
protected Connection m_conn
-
log
protected transient CLogger log
Logger
-
p_stmt
protected transient Statement p_stmt
Used if local
-
p_vo
protected CStatementVO p_vo
Value Object
-
-
Constructor Detail
-
StatementProxy
public StatementProxy(int resultSetType, int resultSetConcurrency, String trxName)
-
StatementProxy
public StatementProxy(CStatementVO vo)
-
StatementProxy
protected StatementProxy()
-
-
Method Detail
-
invoke
public Object invoke(Object obj, Method method, Object[] args) throws Throwable
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
init
protected void init()
Initialise the statement wrapper object
-
getRowSet
protected RowSet getRowSet()
Execute Query- Returns:
- ResultSet or RowSet
- Throws:
SQLException
- See Also:
PreparedStatement.executeQuery()
-
getSql
public String getSql()
Get Sql- Returns:
- sql
-
-