Class ProxyFactory


  • public class ProxyFactory
    extends Object
    Factory class to instantiate dynamic proxy for CStatement, CPreparedStatement and CCallableStatement
    Author:
    Low Heng Sin
    • Constructor Detail

      • ProxyFactory

        public ProxyFactory()
    • 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