Exemplo n.º 1
0
 /**
  * Get all objects as a list.
  *
  * @return list of all objects or an empty list if none exist.
  * @see #findByKey(Object)
  * @see #getAllAsMap()
  */
 public List getAllAsList() {
   AbstractDomain domain = getDomain(searchDomainClassName);
   try {
     return domain.findAll();
   } finally {
     releaseDomain(domain);
   }
 }
Exemplo n.º 2
0
 /**
  * Get all objects as a map.
  *
  * @return list of all objects or an empty list if none exist.
  * @see #findByKey(Object)
  * @see #getAllAsList()
  */
 public Map getAllAsMap() {
   AbstractDomain domain = getDomain(searchDomainClassName);
   try {
     ApplicationRowHandlerHashMap map = new ApplicationRowHandlerHashMap();
     domain.findAll(map);
     return (Map) map.getResult();
   } finally {
     releaseDomain(domain);
   }
 }