public final class DMBP_Query extends DB_Query
┌─┐ ┌─┐
┌──┘ ┴───────┘ ┴──┐
│ │
│ ─── │
│ ─┬┘ └┬─ │
│ │
│ ─┴─ │
│ │
└───┐ ┌───┘
│ │
│ │
│ │
│ └──────────────┐
│ │
│ ├─┐
│ author:lelouch ┌─┘
│ │
└─┐ ┐ ┌───────┬──┐ ┌──┘
│ ─┤ ─┤ │ ─┤ ─┤
└──┴──┘ └──┴──┘
神兽保佑
代码无BUG!
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.ibatis.session.SqlSession |
sqlSession |
protected org.apache.ibatis.session.SqlSessionFactory |
sqlSessionFactory |
protected org.mybatis.spring.SqlSessionTemplate |
sqlSessionTemplate |
| 构造器和说明 |
|---|
DMBP_Query(Connection conn) |
DMBP_Query(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
closeSqlSession() |
DMBP_Result |
executeQuery(SqlQuery sqlQuery)
executeQuery
|
DMBP_Result |
executeQuery(String sql)
executeQuery
|
DMBP_Result |
executeQuery(String sql,
Object... param)
executeQuery
|
DMBP_Result |
find(Class table,
String where,
Object... param)
find
|
DMBP_Result |
find(String tableName,
String where,
Object... param)
find
|
DMBP_Result |
findAll(Class tableName)
findAll
|
DMBP_Result |
findAll(String tableName)
findAll
|
DMBP_Result |
findById(Class table,
String id)
findById
|
DMBP_Result |
findById(String tableName,
String id)
findById
|
DMBP_Result |
findById(String tableName,
String id,
String idName)
findById
|
protected org.apache.ibatis.session.SqlSession |
getSqlSession() |
List<TableColumn> |
getTabelColumns(String schema,
String tableName)
Gets tabel info.
|
String |
getTabelComment(String schema,
String tableName)
Get tabel comment string .
|
String[] |
getTabels(String schema)
Get tabels string [ ].
|
_executeQuery, _executeQuery, _find, _findById, executeQuery_, executeQuery_, executeQuery, find_, findAll_, findById_, findById_, getTabelColumns, getTabelComment, getTabelsprotected org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate
protected org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory
protected org.apache.ibatis.session.SqlSession sqlSession
public DMBP_Query(Connection conn)
public DMBP_Query(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
protected org.apache.ibatis.session.SqlSession getSqlSession()
protected void closeSqlSession()
public DMBP_Result executeQuery(String sql)
executeQuery 在类中 DB_Querysql - sql语句public DMBP_Result executeQuery(SqlQuery sqlQuery)
executeQuery 在类中 DB_QuerysqlQuery - public DMBP_Result executeQuery(String sql, Object... param)
executeQuery 在类中 DB_Querysql - sql语句param - 参数对象public DMBP_Result findById(String tableName, String id, String idName)
public DMBP_Result findById(String tableName, String id)
public DMBP_Result findAll(String tableName)
public DMBP_Result findAll(Class tableName)
tableName - 表名public DMBP_Result find(String tableName, String where, Object... param)
public String getTabelComment(String schema, String tableName)
getTabelComment 在类中 DB_Queryschema - the schematableName - the table namepublic List<TableColumn> getTabelColumns(String schema, String tableName)
getTabelColumns 在类中 DB_Queryconn - the connschema - the schematableName - the table namepublic DMBP_Result find(Class table, String where, Object... param)
table - 表where - where条件param - 参数对象public DMBP_Result findById(Class table, String id)
table - 表名id - idCopyright © 2020. All rights reserved.