Пример #1
0
 /** Finds by a specific prepared find statement with an array of  <code>Object</code> parameters,
  * returning the result as a <code>List</code>.
  * @param preparedStatementKey       key added in <code>addPreparedFindStatement()</code>.
  * @param params      <code>Object</code> array of search parameters.
  * @param useSearchDomain        If <code>true</code>, <code>searchClassDomainClassName</code> will be
  *                   used. Otherwise, <code>fullDomainClassName will be used.
  * @see #findByPreparedStatement(String,List,boolean)
  */
 protected List findByPreparedStatement(
     String preparedStatementKey, Object[] params, boolean useSearchDomain) {
   ArrayList a = new ArrayList();
   for (int i = 0; i < params.length; i++) a.add(params[i]);
   return findByPreparedStatement(preparedStatementKey, a, useSearchDomain);
 }
Пример #2
0
 /**
  * Finds by a specific prepared find statement with an array of <code>Object</code> parameters,
  * using the search domain and returning the result as a <code>List</code>.
  *
  * @param preparedStatementKey key added in <code>addPreparedFindStatement()</code>.
  * @param params <code>Object</code> array of search parameters.
  * @see #findByPreparedStatement(String,List,boolean)
  */
 protected List findByPreparedStatement(String preparedStatementKey, Object[] params) {
   ArrayList a = new ArrayList();
   for (int i = 0; i < params.length; i++) a.add(params[i]);
   return findByPreparedStatement(preparedStatementKey, a, true);
 }