Package org.sqlproc.engine.jdbc
The adapters and proxies for the JDBC stack.
The simple usage can be the next one:
JdbcEngineFactory sqlFactory = new JdbcEngineFactory(); sqlFactory.setMetaFilesNames("statements.qry"); // the meta statements file SqlQueryEngine sqlEngine = sqlFactory.getQueryEngine("ALL_PEOPLE"); // for the case it runs on the top of the JDBC stack Connection connection = DriverManager.getConnection("jdbc:hsqldb:mem:sqlproc", "sa", ""); SqlSessionFactory sessionFactory = new JdbcSessionFactory(connection); SqlSession session = sessionFactory.getSqlSession(); List<Person> list = sqlEngine.query(session, Person.class, null, SqlQueryEngine.ASC_ORDER);
For more info please see the Tutorials.
- Author:
- Vladimir Hudec
-
Class Summary Class Description JdbcEngineFactory The implementation of theSqlEngineFactory
optimized for the JDBC stack.JdbcQuery The JDBC stack implementation of the SQL Engine query contract.JdbcSession The JDBC stack implementation of the SQL Engine session contract.JdbcSessionFactory The simple implementation of the factorySqlSessionFactory
for the JDBC stack.JdbcSimpleSession The JDBC stack implementation of the SQL Engine session contract.