public interface Bootstrap extends AutoCloseable
createSQL(String):Write the Sql statement directlyquery(Object):Operation object instance for addition/deletion/modification (batch operation)queryPk(Class, Object): Operation entity type for primary key operationqueryTable(String):Direct operation table for query/delete/modificationqueryMap(String, Map): Manipulate map modifications/inserts
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
commit() |
QuerySql |
createSQL(String sql)
Customize Sql operations
|
QuerySql |
createSQL(String sql,
Object... paramers)
Customize Sql operations
|
DataInformation |
dataInformation()
Get the
DataInformation,Through this interface you can get some
connection information, such as database name, table name, and field details |
Meta |
getLastMeta() |
String |
getLastSql() |
Manager |
manager()
Gets the current link information.
|
<T> T |
mapper(InputStream inputStream,
Class<T> cls) |
void |
openSession() |
<T> QueryEntity |
query(Collection<T> entrys) |
<T> QueryEntity |
query(T entry) |
<T extends Map<String,Object>> |
queryMap(String tableName,
Collection<T> maps)
* If you don't want to generate entity classes, another option is to
manipulate the map instance,
QueryMap provides Add and delete
operations are provided. |
QueryMap |
queryMap(String tableName,
Map<String,Object> map)
If you don't want to generate entity classes, another option is to manipulate
the map instance,
QueryMap provides Add and delete operations are
provided. |
<T> QueryPK<T> |
queryPk(Class<T> entry,
Object keyValue)
Primary key operation, Remove (Remove), query single case (find)
|
<T> QueryTable |
queryTable(Class<T> cls)
Replace the table name with the class name
|
QueryTable |
queryTable(String tableName)
Custom table operation, delete query (List, UniqResult)
|
void |
rollback() |
QuerySql createSQL(String sql, Object... paramers)
sql - - Usage of parameters in SQL ? Take the
place ofparamers - - Parameters (ordered) are not requiredQueryMap queryMap(String tableName, Map<String,Object> map)
QueryMap provides Add and delete operations are
provided.tableName - map - <T extends Map<String,Object>> QueryMap queryMap(String tableName, Collection<T> maps)
QueryMap provides Add and delete
operations are provided.tableName - maps - <T> QueryEntity query(Collection<T> entrys)
entrys - <T> QueryEntity query(T entry)
entry - <T> QueryPK<T> queryPk(Class<T> entry, Object keyValue)
entry - - Entity classkeyValue - - The primary key value can be an int or String typeQueryTable queryTable(String tableName)
tableName - - The name of the table<T> QueryTable queryTable(Class<T> cls)
cls - - Entity class typeQueryTablequeryTable(String)DataInformation dataInformation()
DataInformation,Through this interface you can get some
connection information, such as database name, table name, and field detailsManager manager()
String getLastSql()
Meta getLastMeta()
<T> T mapper(InputStream inputStream, Class<T> cls)
T - inputStream - cls - void openSession()
void commit()
throws SQLException
SQLExceptionvoid rollback()
throws SQLException
SQLExceptionvoid close()
close 在接口中 AutoCloseableCopyright © 2023. All rights reserved.