@SuppressWarnings("unchecked") public boolean selectBoolean(String statement, Object parameter) { List<String> result = (List<String>) persistenceSession.selectList(statement, parameter); if(result != null) { return result.contains(1); } return false; }
@SuppressWarnings("unchecked") public boolean selectBoolean(String statement, Object parameter) { List<String> result = (List<String>) persistenceSession.selectList(statement, parameter); if(result != null) { return result.contains(1); } return false; }
@SuppressWarnings("unchecked") public List selectListWithRawParameter(String statement, Object parameter, int firstResult, int maxResults) { if(firstResult == -1 || maxResults==-1) { return Collections.EMPTY_LIST; } List loadedObjects = persistenceSession.selectList(statement, parameter); return filterLoadedObjects(loadedObjects); }
@SuppressWarnings("unchecked") public List selectListWithRawParameter(String statement, Object parameter, int firstResult, int maxResults) { if(firstResult == -1 || maxResults==-1) { return Collections.EMPTY_LIST; } List loadedObjects = persistenceSession.selectList(statement, parameter); return filterLoadedObjects(loadedObjects); }
@SuppressWarnings("unchecked") public boolean selectBoolean(String statement, Object parameter) { List<String> result = (List<String>) persistenceSession.selectList(statement, parameter); if(result != null) { return result.contains(1); } return false; }
@SuppressWarnings("unchecked") public List selectListWithRawParameter(String statement, Object parameter, int firstResult, int maxResults) { if(firstResult == -1 || maxResults==-1) { return Collections.EMPTY_LIST; } List loadedObjects = persistenceSession.selectList(statement, parameter); return filterLoadedObjects(loadedObjects); }