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 Details

    • ProxyFactory

      public ProxyFactory()
  • Method Details

    • newCStatement

      public static CStatement newCStatement(int resultSetType, int resultSetConcurrency, String trxName)
      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

      public static CStatement newCStatement(CStatementVO info)
      Parameters:
      info -
      Returns:
      new CStatement proxy instance
    • newCPreparedStatement

      public static CPreparedStatement newCPreparedStatement(CStatementVO info)
      Parameters:
      info -
      Returns:
      new CPreparedStatement proxy instance
    • newCCallableStatement

      public static CCallableStatement newCCallableStatement(CStatementVO info)
      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