public List list ( Class clazz , String key , Object value ) { QueryCriteria criteria = new QueryCriteria ( key , QueryCriteriaOperator . EQUAL , value ) ; Query query = new Query ( clazz , criteria ) ; try { return persistenceManager . executeLazyQuery ( query ) ; } catch ( InitializationException ignore ) { } catch ( Exception e ) { e . printStackTrace ( ) ; } return null ; }
Execute query with criteria of key = key