public class DB_JSelect extends Object
┌─┐ ┌─┐
┌──┘ ┴───────┘ ┴──┐
│ │
│ ─── │
│ ─┬┘ └┬─ │
│ │
│ ─┴─ │
│ │
└───┐ ┌───┘
│ │
│ │
│ │
│ └──────────────┐
│ │
│ ├─┐
│ author:lelouch ┌─┘
│ │
└─┐ ┐ ┌───────┬──┐ ┌──┘
│ ─┤ ─┤ │ ─┤ ─┤
└──┴──┘ └──┴──┘
神兽保佑
代码无BUG!
| 限定符和类型 | 字段和说明 |
|---|---|
static boolean |
debug
是否显示日志
|
| 构造器和说明 |
|---|
DB_JSelect(Connection conn) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected ResultSet |
_find(String tableName,
String where,
Object... param)
find
|
static ResultSet |
executeQuery_(Connection conn,
String sql,
Object[] param)
executeQuery
|
static ResultSet |
executeQuery(Connection conn,
String sql)
executeQuery
|
static ResultSet |
executeQuery(Connection conn,
String sql,
Object... param)
executeQuery
|
DB_JResult |
executeQuery(String sql)
executeQuery
|
DB_JResult |
executeQuery(String sql,
Object... param)
executeQuery
|
protected static ResultSet |
find_(Connection conn,
String tableName,
String where,
Object[] param)
find_
|
DB_JResult |
find(String tableName,
String where,
Object... param)
find
|
static ResultSet |
findById_(Connection conn,
String tableName,
String id)
findById_
|
static ResultSet |
findById_(Connection conn,
String tableName,
String id,
String idName)
findById_
|
DB_JResult |
findById(String tableName,
String id)
findById
|
DB_JResult |
findById(String tableName,
String id,
String idName)
findById
|
public DB_JSelect(Connection conn)
public DB_JResult executeQuery(String sql)
sql - sql语句public DB_JResult executeQuery(String sql, Object... param)
sql - sql语句param - 参数对象public DB_JResult findById(String tableName, String id, String idName)
tableName - 表名id - ididName - id列名public DB_JResult findById(String tableName, String id)
tableName - 表名id - idpublic DB_JResult find(String tableName, String where, Object... param)
tableName - 表名where - where条件param - 参数对象protected ResultSet _find(String tableName, String where, Object... param)
tableName - 表名where - where条件param - 参数对象public static ResultSet executeQuery(Connection conn, String sql)
conn - 连接对象sql - sql语句public static ResultSet executeQuery_(Connection conn, String sql, Object[] param)
conn - 连接对象sql - sql语句param - 参数对象protected static ResultSet find_(Connection conn, String tableName, String where, Object[] param)
conn - 连接对象tableName - 表名where - where条件param - 参数对象public static ResultSet findById_(Connection conn, String tableName, String id, String idName)
conn - 连接对象tableName - 表名id - ididName - id列名public static ResultSet findById_(Connection conn, String tableName, String id)
conn - 连接对象tableName - 表名id - idpublic static ResultSet executeQuery(Connection conn, String sql, Object... param)
conn - 连接对象sql - sql语句param - 参数对象Copyright © 2020. All rights reserved.