public int update( final SqlSession sqlSession, final PersonLibrary personLibrary, SqlControl sqlControl) { if (logger.isTraceEnabled()) { logger.trace("sql update personLibrary: " + personLibrary + " " + sqlControl); } org.sqlproc.engine.SqlCrudEngine sqlUpdateEnginePersonLibrary = sqlEngineFactory.getCheckedCrudEngine("UPDATE_PERSON_LIBRARY"); int count = sqlUpdateEnginePersonLibrary.update(sqlSession, personLibrary, sqlControl); if (logger.isTraceEnabled()) { logger.trace("sql update personLibrary result count: " + count); } return count; }
public PersonLibrary insert( final SqlSession sqlSession, final PersonLibrary personLibrary, SqlControl sqlControl) { if (logger.isTraceEnabled()) { logger.trace("sql insert personLibrary: " + personLibrary + " " + sqlControl); } org.sqlproc.engine.SqlCrudEngine sqlInsertPersonLibrary = sqlEngineFactory.getCheckedCrudEngine("INSERT_PERSON_LIBRARY"); int count = sqlInsertPersonLibrary.insert(sqlSession, personLibrary, sqlControl); if (logger.isTraceEnabled()) { logger.trace("sql insert personLibrary result: " + count + " " + personLibrary); } return (count > 0) ? personLibrary : null; }
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; }
public PersonLibrary get( final SqlSession sqlSession, final PersonLibrary personLibrary, SqlControl sqlControl) { if (logger.isTraceEnabled()) { logger.trace("sql get: " + personLibrary + " " + sqlControl); } org.sqlproc.engine.SqlCrudEngine sqlGetEnginePersonLibrary = sqlEngineFactory.getCheckedCrudEngine("GET_PERSON_LIBRARY"); // sqlControl = getMoreResultClasses(personLibrary, sqlControl); PersonLibrary personLibraryGot = sqlGetEnginePersonLibrary.get(sqlSession, PersonLibrary.class, personLibrary, sqlControl); if (logger.isTraceEnabled()) { logger.trace("sql get personLibrary result: " + personLibraryGot); } return personLibraryGot; }
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; }
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; }
SqlProcedureEngine getProcedureEngine(String name) { SqlEngineFactory factory = getEngineFactory(name); SqlProcedureEngine sqlEngine = factory.getProcedureEngine(name); assertNotNull(sqlEngine); return sqlEngine; }
SqlCrudEngine getCrudEngine(String name) { SqlEngineFactory factory = getEngineFactory(name); SqlCrudEngine sqlEngine = factory.getCrudEngine(name); assertNotNull(sqlEngine); return sqlEngine; }
protected SqlCrudEngine getCrudEngine(String name, String filter) { SqlEngineFactory factory = getEngineFactory(name, filter); SqlCrudEngine sqlEngine = factory.getCrudEngine(name); assertNotNull(sqlEngine); return sqlEngine; }
protected SqlQueryEngine getQueryEngine(String name, SqlPluginFactory sqlPluginFactory) { SqlEngineFactory factory = getEngineFactory(name, sqlPluginFactory); SqlQueryEngine sqlEngine = factory.getQueryEngine(name); assertNotNull(sqlEngine); return sqlEngine; }