@Override public void setAutoCommit(final boolean autoCommit) { try { con.setAutoCommit(autoCommit); } catch (SQLException ex) { throw new DataAccessException(ex); } }
@RequiresXsrfCheck protected String doExecute() throws Exception { try { getSchemeManager().copyScheme(getSchemeObject()); } catch (DataAccessException e) { addErrorMessage(e.getMessage()); } return getRedirect(getRedirectURL()); } }
@Override public void commit() { try { con.commit(); } catch (SQLException ex) { throw new DataAccessException(ex); } }
@Override public void commit() { try { con.commit(); } catch (SQLException ex) { throw new DataAccessException(ex); } }
@Override public void rollback() { try { con.rollback(); } catch (SQLException ex) { throw new DataAccessException(ex); } }
@Override public void setAutoCommit(final boolean autoCommit) { try { con.setAutoCommit(autoCommit); } catch (SQLException ex) { throw new DataAccessException(ex); } }
@Override public void rollback() { try { con.rollback(); } catch (SQLException ex) { throw new DataAccessException(ex); } } }
private Connection borrowConnection() { try { return ofBizConnectionFactory.getConnection(); } catch (SQLException ex) { throw new DataAccessException(ex); } }
public boolean isCaseSensitive(final String fieldName) { try { return iterator.isCaseSensitive(fieldName); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
public GenericValue currentGenericValue() { try { return iterator.currentGenericValue(); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
public List<GenericValue> findByAnd(final String entityName, final List<EntityCondition> expressions) throws DataAccessException { // cannot check EntityCondition instances as they don't give us a where condition try { return delegatorInterface.findByAnd(entityName, expressions); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
public void removeAll(final List<GenericValue> genericValues) throws DataAccessException { try { delegatorInterface.removeAll(genericValues, false); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
public int removeByAnd(final String entityName, final Map map) throws DataAccessException { try { return delegatorInterface.removeByAnd(entityName, map); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
public int removeValue(final GenericValue value) throws DataAccessException { try { return delegatorInterface.removeValue(value); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
public boolean last() { try { return iterator.last(); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
@Override public int removeByCondition(String entityName, EntityCondition condition) throws DataAccessException { try { return delegatorInterface.removeByCondition(entityName, condition, false); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
public void store(final GenericValue gv) throws DataAccessException { try { delegatorInterface.store(gv); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
public List<GenericValue> getRelated(final String relationName, final GenericValue gv) { try { return delegatorInterface.getRelated(relationName, gv); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
public void beforeFirst() { try { iterator.beforeFirst(); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
private Connection borrowConnection() { try { return ofBizConnectionFactory.getConnection(); } catch (SQLException ex) { throw new DataAccessException(ex); } }