类 AbstractInsertSql<C extends AbstractInsertSql<C>>
java.lang.Object
org.elsfs.tool.sql.abs.CompositeSqlFragment
org.elsfs.tool.sql.abs.AbstractInsertSql<C>
- 类型参数:
C- 子类具体类型
- 所有已实现的接口:
InsertSql<C>,SqlFragment,SqlParameterManagerAware
- 直接已知子类:
GenericInsertSql,StandardInsertSql
public abstract class AbstractInsertSql<C extends AbstractInsertSql<C>>
extends CompositeSqlFragment
implements InsertSql<C>, SqlParameterManagerAware
抽象插入SQL实现
- 从以下版本开始:
- 0.0.4
- 作者:
- zeng
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 org.elsfs.tool.sql.interfaces.inset.InsertSql
InsertSql.ConflictUpdateSql<C> -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void构建SQL之前处理冲突时啥也不干doUpdate()冲突时执行更新语句插入的字段插入的字段fields(Collection<String> fields) 插入的字段fieldsEnum(Collection<Enum<?>> fields) 插入的字段protected abstract StringgetTableName(Class<?> entityClass) insertInto(Class<?> entityClass) 插入的表insertInto(String table) 插入的表onConflict(String constraintName) 插入冲突时values(Collection<Map<String, Object>> values) 批量插入的值集合插入的值从类继承的方法 org.elsfs.tool.sql.abs.CompositeSqlFragment
addSqlFragment, buildSqlFragment从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.elsfs.tool.sql.interfaces.SqlFragment
buildSqlFragment从接口继承的方法 org.elsfs.tool.sql.interfaces.SqlParameterManagerAware
getSqlParameterManager
-
字段详细资料
-
childThis
具体子类实现引用
-
-
构造器详细资料
-
AbstractInsertSql
public AbstractInsertSql()
-
-
方法详细资料
-
getTableName
-
insertInto
插入的表- 指定者:
insertInto在接口中InsertSql<C extends AbstractInsertSql<C>>- 参数:
entityClass- 实体类- 返回:
- 具体实现
-
insertInto
插入的表- 指定者:
insertInto在接口中InsertSql<C extends AbstractInsertSql<C>>- 参数:
table- 表名- 返回:
- 具体实现
-
fields
插入的字段- 指定者:
fields在接口中InsertSql<C extends AbstractInsertSql<C>>- 参数:
fields- 字段名称- 返回:
- 具体实现
-
fields
插入的字段- 指定者:
fields在接口中InsertSql<C extends AbstractInsertSql<C>>- 参数:
fields- 字段名称枚举列表- 返回:
- 具体实现
-
fields
插入的字段- 指定者:
fields在接口中InsertSql<C extends AbstractInsertSql<C>>- 参数:
fields- 字段名称- 返回:
- 具体实现
-
fieldsEnum
插入的字段- 指定者:
fieldsEnum在接口中InsertSql<C extends AbstractInsertSql<C>>- 参数:
fields- 字段名称枚举集合- 返回:
- 具体实现
-
values
插入的值- 指定者:
values在接口中InsertSql<C extends AbstractInsertSql<C>>- 参数:
value- 值Map- 返回:
- 具体实现
-
values
批量插入的值集合- 指定者:
values在接口中InsertSql<C extends AbstractInsertSql<C>>- 参数:
values- 值集合- 返回:
- 具体实现
-
onConflict
插入冲突时- 指定者:
onConflict在接口中InsertSql<C extends AbstractInsertSql<C>>- 参数:
constraintName- 冲突的约束名称- 返回:
- 具体实现
-
doNothing
冲突时啥也不干- 指定者:
doNothing在接口中InsertSql<C extends AbstractInsertSql<C>>- 返回:
- 具体实现
-
doUpdate
冲突时执行更新语句- 指定者:
doUpdate在接口中InsertSql<C extends AbstractInsertSql<C>>- 返回:
- 冲突更新SQl
-
beforeBuild
protected void beforeBuild()构建SQL之前处理- 覆盖:
beforeBuild在类中CompositeSqlFragment
-