Package org.sqlproc.engine.jdbc

The adapters and proxies for the JDBC stack.

See:
          Description

Class Summary
JdbcEngineFactory The implementation of the SqlEngineFactory 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.
JdbcSimpleSession The JDBC stack implementation of the SQL Engine session contract.
 

Package org.sqlproc.engine.jdbc Description

The adapters and proxies for the JDBC stack. The simple usage can be the next one:

 // by default it loads "queries.properties" file
 SqlEngineFactory sqlFactory = new JdbcEngineFactory();
 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", "");
 SqlSession session = new JdbcSimpleSession(connection);
 
 List<Person> list = sqlEngine.query(session, Person.class, null, SqlQueryEngine.ASC_ORDER);
 

For more info please see the Reference Guide or the tutorials.

Author:
Vladimir Hudec


Copyright © 2011. All Rights Reserved.