public class BootstrapDevice extends Object implements Bootstrap, SimplePileline
DEFAULT_CACHE, Keywords, Keywords2, Keywords3| 构造器和说明 |
|---|
BootstrapDevice(Configuration configuration,
Object id) |
| 限定符和类型 | 方法和说明 |
|---|---|
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> entities) |
<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> entryCls,
Object primarykey)
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() |
void |
setTemplate(SqlTemplate template) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitformatSql, getPrimaryKey, getSql, initFetchSize, modifiedTableName, noticeAdd, noticeUpdate, translateParamerInSql, tryReadFromCachepublic BootstrapDevice(Configuration configuration, Object id)
public void setTemplate(SqlTemplate template)
public QuerySql createSQL(String sql, Object... paramers)
Bootstrappublic <T> QueryEntity query(T entry)
public QueryTable queryTable(String tableName)
BootstrapqueryTable 在接口中 BootstraptableName - - The name of the tablepublic <T> QueryPK<T> queryPk(Class<T> entryCls, Object primarykey)
Bootstrappublic <T> QueryEntity query(Collection<T> entities)
public DataInformation dataInformation()
BootstrapDataInformation,Through this interface you can get some
connection information, such as database name, table name, and field detailsdataInformation 在接口中 Bootstrappublic QueryMap queryMap(String tableName, Map<String,Object> map)
BootstrapQueryMap provides Add and delete operations are
provided.public <T extends Map<String,Object>> QueryMap queryMap(String tableName, Collection<T> maps)
BootstrapQueryMap provides Add and delete
operations are provided.public <T> QueryTable queryTable(Class<T> cls)
BootstrapqueryTable 在接口中 Bootstrapcls - - Entity class typeQueryTableBootstrap.queryTable(String)public String getLastSql()
getLastSql 在接口中 Bootstrappublic Meta getLastMeta()
getLastMeta 在接口中 Bootstrappublic <T> T mapper(InputStream inputStream, Class<T> cls)
public void openSession()
openSession 在接口中 Bootstrappublic void commit()
throws SQLException
commit 在接口中 BootstrapSQLExceptionpublic void rollback()
throws SQLException
rollback 在接口中 BootstrapSQLExceptionpublic void close()
close 在接口中 AutoCloseableclose 在接口中 BootstrapCopyright © 2023. All rights reserved.