}
}
@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);
}
}