public abstract class AbstractStatement extends Object implements Statement
MappedStatementCOMMA, COUNT_ALL, COUNT_BY_ID, DELETE_ALL, DELETE_BY_ID, DELETE_BY_IDS, DOT, FIND_ALL, FIND_BY_ID, FIND_BY_IDS, INSERT, READ_LOCK_BY_ID, SCRIPT_BEGIN, SCRIPT_END, UPDATE_BY_ID, WRITE_LOCK_BY_ID| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractStatement(String name,
org.apache.ibatis.mapping.SqlCommandType type) |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.ibatis.mapping.ResultMap |
basicTypeResultMap(org.apache.ibatis.session.Configuration config,
Class<?> basicType) |
org.apache.ibatis.mapping.MappedStatement |
configure(org.apache.ibatis.session.Configuration config,
String namespace,
org.springframework.data.relational.core.sql.render.RenderContext renderContext,
TableInfo tableInfo)
Configure a
MappedStatement, if it already exists, then just return it. |
protected void |
configureBuilder(org.apache.ibatis.session.Configuration config,
String namespace,
org.apache.ibatis.mapping.MappedStatement.Builder builder) |
protected org.apache.ibatis.mapping.SqlSource |
createSqlSource(org.apache.ibatis.session.Configuration config,
String sqlScript) |
protected org.springframework.data.relational.core.sql.BindMarker |
forEachIdsBindMarker() |
protected org.springframework.data.relational.core.sql.BindMarker |
getBindMarker(org.springframework.data.relational.core.sql.SqlIdentifier columnName) |
String |
getName()
Get the name of the statement
|
org.apache.ibatis.mapping.SqlCommandType |
getType()
Get the type of the statement
|
abstract String |
renderSql(org.springframework.data.relational.core.sql.render.RenderContext renderContext,
TableInfo tableInfo)
Create a sql statement.
|
protected String |
statementId(String namespace) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachCommaScript, forEachScript, marker, scriptTagprotected AbstractStatement(String name, org.apache.ibatis.mapping.SqlCommandType type)
public String getName()
public org.apache.ibatis.mapping.SqlCommandType getType()
public org.apache.ibatis.mapping.MappedStatement configure(org.apache.ibatis.session.Configuration config,
String namespace,
org.springframework.data.relational.core.sql.render.RenderContext renderContext,
TableInfo tableInfo)
MappedStatement, if it already exists, then just return it.config - mybatis configurationnamespace - namespace for repositoryrenderContext - sql render contenxttableInfo - table infoMappedStatementpublic abstract String renderSql(org.springframework.data.relational.core.sql.render.RenderContext renderContext, TableInfo tableInfo)
renderContext - sql render contenxttableInfo - table infoString. Guaranteed to be not null.protected org.apache.ibatis.mapping.SqlSource createSqlSource(org.apache.ibatis.session.Configuration config,
String sqlScript)
protected void configureBuilder(org.apache.ibatis.session.Configuration config,
String namespace,
org.apache.ibatis.mapping.MappedStatement.Builder builder)
protected org.springframework.data.relational.core.sql.BindMarker getBindMarker(org.springframework.data.relational.core.sql.SqlIdentifier columnName)
protected org.springframework.data.relational.core.sql.BindMarker forEachIdsBindMarker()
public static org.apache.ibatis.mapping.ResultMap basicTypeResultMap(org.apache.ibatis.session.Configuration config,
Class<?> basicType)
Copyright © 2022. All rights reserved.