|
Interface Summary |
| CustomizedSqlItem |
Sql Operation Type |
| DbProLogger |
For logger output, to avoid logger jar version conflict, default use JDK log,
if found commons log, use it, if found Log4j use it..., by this way this
project has no dependency to any logger jar. |
| IocTool |
IocTool have a method getBean(Class> configClass) to create a bean instance
from configClass class, note: result object type may different to configClass
itself, that's why here called "configClass", an example can see
testGuessAnnotationHasParam() unit test in HandlersTest.java
IocTool here is not used for transaction control, but usually can share use
the same transaction control IOC tool. |
| NormalJdbcTool |
Interface of Normal JDBC methods, this interface is used for other projects
to eliminate jar dependency, other projects need copy this interface into
there source code folder but always use name
"com.github.drinkjava2.jdbpro.NormalJdbcTool" |
| SqlHandler |
SqlHandler is the Interceptor to do some intercept operation instead of
direct access database |
|
Class Summary |
| DbPro |
DbPro is the enhanced version of Apache Commons DbUtils's QueryRunner, add
below improvements: |
| DbProConfig |
DbProConfig class is used to store constructor parameters for build DbPro
instance, this is a transient object, never try to re-use it, re-use it will
break thread safe of jDbPro |
| DbProLogger.DefaultDbProLogger |
|
| DefaultOrderSqlHandler |
SqlHandler is the Interceptor to do some intercept operation instead of
direct access database |
| ImprovedQueryRunner |
ImprovedQueryRunner made below improvements compare DbUtils's QueryRunner:
1) Override close() and prepareConnection() method of QueryRunner, use a
ConnectionManager to manage connection, ConnectionManager can get connection
from DataSource or ThreadLocal or some other 3rd party tools like Spring. |
| JDBPRO |
JDBPRO store some public static methods, usually used for static import to
simplify programming |
| LinkStyleArrayList<T> |
AppendableArrayList make ArrayList support link style |
| PackageInfo |
jDbPro is a separate project has its own Maven central releases. |
| PreparedSQL |
PreparedSQL is a temporary object used for store SQL, parameter,
ResultSetHandlers, SqlHandlers, Connection and templateEngine..., it's not
thread-safe |
| SingleTonHandlers |
Here store some singleTon thread safe ResultSetHandlers |
| SqlItem |
SqlItem store SQL SqlItemType type and value array |