Package org.tamacat.pool

Examples of org.tamacat.pool.ObjectActivateException


        }
    }
   
    @Override
    public void activate(Connection con) throws ObjectActivateException {
      if (con == null) throw new ObjectActivateException();
      try {
        con.setAutoCommit(true);
        if (activateSQL != null) {
          Statement stmt = con.createStatement();
          try {
            stmt.executeQuery(activateSQL);
            if (LOG.isDebugEnabled()) {
              LOG.debug(activateSQL);
            }
          } finally {
            DBUtils.close(stmt);
          }
        }
      } catch (SQLException e) {
        LOG.warn("activate error. " + e.getMessage());
        throw new ObjectActivateException(e);
      }
    }
View Full Code Here


import org.tamacat.pool.PoolableObjectFactory;

public class ConnectionFactory implements PoolableObjectFactory<Connection> {

    public void activate(Connection object) {
        if (object == null) throw new ObjectActivateException();
    }
View Full Code Here

        }
    }
   
    @Override
    public void activate(Connection con) throws ObjectActivateException {
      if (con == null) throw new ObjectActivateException();
      try {
        con.setAutoCommit(true);
        if (activateSQL != null) {
          Statement stmt = con.createStatement();
          try {
            stmt.executeQuery(activateSQL);
            if (LOG.isDebugEnabled()) {
              LOG.debug(activateSQL);
            }
          } finally {
            DBUtils.close(stmt);
          }
        }
      } catch (SQLException e) {
        throw new ObjectActivateException(e);
      }
    }
View Full Code Here

TOP

Related Classes of org.tamacat.pool.ObjectActivateException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.