All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bixuebihui.algorithm.RemoveActionImpl Maven / Gradle / Ivy

Go to download

a fast small database connection pool and a active record flavor mini framework

There is a newer version: 1.15.3.3
Show newest version
package com.bixuebihui.algorithm;

import com.bixuebihui.sql.PooledPreparedStatement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.sql.SQLException;

/**
 * 

RemoveActionImpl class.

* * @author xingwx * @version $Id: $Id */ public class RemoveActionImpl implements IRemoveAction { private static final Logger LOG = LoggerFactory.getLogger(RemoveActionImpl.class); /** * {@inheritDoc} */ @Override public boolean actionAfterRemove(Object val) { if(val instanceof PooledPreparedStatement){ try { ((PooledPreparedStatement)val).getStatement().close(); LOG.debug("Debug-RemoveActionImpl-PooledPreparedStatement.close()"); } catch (SQLException e) { LOG.warn("",e); } }else{ LOG.debug("Debug-RemoveActionImpl.actionAfterRemove.close()"); } return false; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy