@Override public void setAutoCommit(final boolean autoCommit) { try { con.setAutoCommit(autoCommit); } catch (SQLException ex) { throw new DataAccessException(ex); } }
public boolean isHasEditIssuePermission(final Issue issue) { if (issue == null) { throw new IssueNotFoundException("Issue unexpectedly null"); } return hasIssuePermission(ProjectPermissions.EDIT_ISSUES, issue); }
void removeGroup(final Group group) throws PermissionException { try { crowdService.removeGroup(group); } catch (OperationNotPermittedException e) { throw new PermissionException(e); } }
private void validateCommentBodyLength(final String body) { if (textFieldCharacterLengthValidator.isTextTooLong(body)) { throw new CommentBodyCharacterLimitExceededException(textFieldCharacterLengthValidator.getMaximumNumberOfCharacters()); } }
@Override public void commit() { try { con.commit(); } catch (SQLException ex) { throw new DataAccessException(ex); } }
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); } }
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); } }
@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); } }
public void storeAll(final List genericValues) throws DataAccessException { try { delegatorInterface.storeAll(genericValues); } catch (final GenericEntityException e) { throw new DataAccessException(e); } }
private String forwardEmailParam() { try { return getProperty(FORWARD_EMAIL); } catch (ObjectConfigurationException e) { throw new DataAccessException(addHandlerInfo("Error retrieving Forward Email flag."), e); } }