Package org.compiere.db
Class ReadReplicaPreparedStatementProxy
java.lang.Object
org.compiere.db.ReadReplicaPreparedStatementProxy
- All Implemented Interfaces:
InvocationHandler
Read replica proxy for prepared statement
- Author:
- Low Heng Sin
-
Field Summary
Modifier and TypeFieldDescriptionprotected CLogger
Loggerprotected PreparedStatement
Wrap prepared statementprotected CStatementVO
Value Object -
Constructor Summary
ConstructorDescriptionReadReplicaPreparedStatementProxy
(int resultSetType, int resultSetConcurrency, String sql) -
Method Summary
-
Field Details
-
log
Logger -
p_stmt
Wrap prepared statement -
p_vo
Value Object
-
-
Constructor Details
-
ReadReplicaPreparedStatementProxy
- Parameters:
resultSetType
-resultSetConcurrency
-sql
-
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
getSql
Get Sql- Returns:
- sql
-
isValid
public boolean isValid()- Returns:
- true if the wrapped prepared statement is valid
-