Ejemplo n.º 1
0
 public int count(
     final SqlSession sqlSession, final PersonLibrary personLibrary, SqlControl sqlControl) {
   if (logger.isTraceEnabled()) {
     logger.trace("count personLibrary: " + personLibrary + " " + sqlControl);
   }
   org.sqlproc.engine.SqlQueryEngine sqlEnginePersonLibrary =
       sqlEngineFactory.getCheckedQueryEngine("SELECT_PERSON_LIBRARY");
   // sqlControl = getMoreResultClasses(personLibrary, sqlControl);
   int count = sqlEnginePersonLibrary.queryCount(sqlSession, personLibrary, sqlControl);
   if (logger.isTraceEnabled()) {
     logger.trace("count: " + count);
   }
   return count;
 }
Ejemplo n.º 2
0
 public List<PersonLibrary> list(
     final SqlSession sqlSession, final PersonLibrary personLibrary, SqlControl sqlControl) {
   if (logger.isTraceEnabled()) {
     logger.trace("sql list personLibrary: " + personLibrary + " " + sqlControl);
   }
   org.sqlproc.engine.SqlQueryEngine sqlEnginePersonLibrary =
       sqlEngineFactory.getCheckedQueryEngine("SELECT_PERSON_LIBRARY");
   // sqlControl = getMoreResultClasses(personLibrary, sqlControl);
   List<PersonLibrary> personLibraryList =
       sqlEnginePersonLibrary.query(sqlSession, PersonLibrary.class, personLibrary, sqlControl);
   if (logger.isTraceEnabled()) {
     logger.trace(
         "sql list personLibrary size: "
             + ((personLibraryList != null) ? personLibraryList.size() : "null"));
   }
   return personLibraryList;
 }
Ejemplo n.º 3
0
 public int query(
     final SqlSession sqlSession,
     final PersonLibrary personLibrary,
     SqlControl sqlControl,
     final SqlRowProcessor<PersonLibrary> sqlRowProcessor) {
   if (logger.isTraceEnabled()) {
     logger.trace("sql query personLibrary: " + personLibrary + " " + sqlControl);
   }
   org.sqlproc.engine.SqlQueryEngine sqlEnginePersonLibrary =
       sqlEngineFactory.getCheckedQueryEngine("SELECT_PERSON_LIBRARY");
   // sqlControl = getMoreResultClasses(personLibrary, sqlControl);
   int rownums =
       sqlEnginePersonLibrary.query(
           sqlSession, PersonLibrary.class, personLibrary, sqlControl, sqlRowProcessor);
   if (logger.isTraceEnabled()) {
     logger.trace("sql query personLibrary size: " + rownums);
   }
   return rownums;
 }