Package org.compiere.db
Class ProxyFactory
- java.lang.Object
-
- org.compiere.db.ProxyFactory
-
public class ProxyFactory extends Object
Factory class to instantiate dynamic proxy for CStatement, CPreparedStatement and CCallableStatement- Author:
- Low Heng Sin
-
-
Constructor Summary
Constructors Constructor Description ProxyFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CCallableStatementnewCCallableStatement(int resultSetType, int resultSetConcurrency, String sql, String trxName)static CCallableStatementnewCCallableStatement(CStatementVO info)static CPreparedStatementnewCPreparedStatement(int resultSetType, int resultSetConcurrency, String sql, String trxName)static CPreparedStatementnewCPreparedStatement(CStatementVO info)static CStatementnewCStatement(int resultSetType, int resultSetConcurrency, String trxName)static CStatementnewCStatement(CStatementVO info)static CPreparedStatementnewReadReplicaPreparedStatement(int resultSetType, int resultSetConcurrency, String sql)new proxy instance for read replica prepared statement
-
-
-
Method Detail
-
newCStatement
public static CStatement newCStatement(int resultSetType, int resultSetConcurrency, String trxName)
- Parameters:
resultSetType-resultSetConcurrency-trxName-- Returns:
- CStatement proxy
-
newCPreparedStatement
public static CPreparedStatement newCPreparedStatement(int resultSetType, int resultSetConcurrency, String sql, String trxName)
- Parameters:
resultSetType-resultSetConcurrency-sql-trxName-- Returns:
- CPreparedStatement proxy
-
newCCallableStatement
public static CCallableStatement newCCallableStatement(int resultSetType, int resultSetConcurrency, String sql, String trxName)
- Parameters:
resultSetType-resultSetConcurrency-sql-trxName-- Returns:
- CCallableStatement proxy
-
newCStatement
public static CStatement newCStatement(CStatementVO info)
- Parameters:
info-- Returns:
- CStatement proxy
-
newCPreparedStatement
public static CPreparedStatement newCPreparedStatement(CStatementVO info)
- Parameters:
info-- Returns:
- CPreparedStatement proxy
-
newCCallableStatement
public static CCallableStatement newCCallableStatement(CStatementVO info)
- Parameters:
info-- Returns:
- CCallableStatement proxy
-
newReadReplicaPreparedStatement
public static CPreparedStatement newReadReplicaPreparedStatement(int resultSetType, int resultSetConcurrency, String sql)
new proxy instance for read replica prepared statement- Parameters:
resultSetType-resultSetConcurrency-sql-- Returns:
CPreparedStatement
-
-