Package org.compiere.db
Class ProxyFactory
java.lang.Object
org.compiere.db.ProxyFactory
Factory class to instantiate dynamic proxy for CStatement, CPreparedStatement and CCallableStatement
- Author:
- Low Heng Sin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CCallableStatement
newCCallableStatement
(int resultSetType, int resultSetConcurrency, String sql, String trxName) static CCallableStatement
static CPreparedStatement
newCPreparedStatement
(int resultSetType, int resultSetConcurrency, String sql, String trxName) static CPreparedStatement
newCPreparedStatement
(int resultSetType, int resultSetConcurrency, String sql, Connection connection) static CPreparedStatement
static CStatement
newCStatement
(int resultSetType, int resultSetConcurrency, String trxName) static CStatement
newCStatement
(CStatementVO info) static CPreparedStatement
newReadReplicaPreparedStatement
(int resultSetType, int resultSetConcurrency, String sql) new proxy instance for read replica prepared statement
-
Constructor Details
-
ProxyFactory
public ProxyFactory()
-
-
Method Details
-
newCStatement
- Parameters:
resultSetType
-resultSetConcurrency
-trxName
-- Returns:
- new CStatement proxy instance
-
newCPreparedStatement
public static CPreparedStatement newCPreparedStatement(int resultSetType, int resultSetConcurrency, String sql, String trxName) - Parameters:
resultSetType
-resultSetConcurrency
-sql
-trxName
-- Returns:
- new CPreparedStatement proxy instance
-
newCPreparedStatement
public static CPreparedStatement newCPreparedStatement(int resultSetType, int resultSetConcurrency, String sql, Connection connection) - Parameters:
resultSetType
-resultSetConcurrency
-sql
-connection
-- Returns:
- new CPreparedStatement proxy instance
-
newCCallableStatement
public static CCallableStatement newCCallableStatement(int resultSetType, int resultSetConcurrency, String sql, String trxName) - Parameters:
resultSetType
-resultSetConcurrency
-sql
-trxName
-- Returns:
- new CCallableStatement proxy instance
-
newCStatement
- Parameters:
info
-- Returns:
- new CStatement proxy instance
-
newCPreparedStatement
- Parameters:
info
-- Returns:
- new CPreparedStatement proxy instance
-
newCCallableStatement
- Parameters:
info
-- Returns:
- new CCallableStatement proxy instance
-
newReadReplicaPreparedStatement
public static CPreparedStatement newReadReplicaPreparedStatement(int resultSetType, int resultSetConcurrency, String sql) new proxy instance for read replica prepared statement- Parameters:
resultSetType
-resultSetConcurrency
-sql
-- Returns:
- new
CPreparedStatement
proxy instance
-