public class MergeStatement<S extends MergeStatement<S>> extends BaseStatement<S> implements TableAccessible
| 构造器和说明 |
|---|
MergeStatement(Class<?> entityClass,
String alias) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <T extends AndSegment<S,T>> |
buildWhere() |
TableSegment<?> |
getTable(int tableIndex) |
TableSegment<?> |
getTable(String tableAlias) |
S |
insert(String field,
Object value) |
S |
insertRaw(String rawColumn,
Object value) |
S |
insertRawWith(String rawColumn,
String usingColumn) |
S |
insertWhenNotMatched() |
S |
insertWhenNotMatched(boolean enabled) |
S |
insertWith(String field,
String usingField) |
static MergeStatement<?> |
of(Class<?> entityClass,
String alias) |
<T extends AndSegment<S,T>> |
on() |
SqlNode |
toSqlNode() |
S |
update(String field,
Object value) |
S |
updateRaw(String rawColumn,
Object value) |
S |
updateRawWith(String rawColumn,
String usingColumn) |
S |
updateWhenMatched() |
S |
updateWhenMatched(boolean enabled) |
S |
updateWith(String field,
String usingField) |
S |
using(Class<?> entityClass,
String alias) |
S |
using(SelectStatement<?> select,
String alias) |
S |
withEntity(Object entity) |
S |
withEntity(Object entity,
boolean updateWhenMatched,
boolean insertWhenNotMatched) |
S |
withEntity(Object entity,
boolean updateWhenMatched,
boolean insertWhenNotMatched,
ColumnPredicate columnPredicate) |
S |
withEntity(Object entity,
boolean updateWhenMatched,
boolean insertWhenNotMatched,
Predicate<String> isIncludeEmptyColumns) |
S |
withEntity(Object entity,
boolean updateWhenMatched,
boolean insertWhenNotMatched,
Predicate<String> isIncludeColumns,
Predicate<String> isExcludeColumns,
Predicate<String> isIncludeEmptyColumns,
boolean includeAllEmpty) |
S |
withEntity(Object entity,
ColumnPredicate columnPredicate) |
S |
withEntity(Object entity,
Predicate<String> isIncludeEmptyColumns) |
S |
withEntity(Object entity,
Predicate<String> isIncludeColumns,
Predicate<String> isExcludeColumns,
Predicate<String> isIncludeEmptyColumns,
boolean includeAllEmpty) |
getThisclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTableAccessible, ofpublic static MergeStatement<?> of(Class<?> entityClass, String alias)
protected <T extends AndSegment<S,T>> T buildWhere()
public SqlNode toSqlNode()
toSqlNode 在接口中 SqlNodeBuilderpublic S withEntity(Object entity, boolean updateWhenMatched, boolean insertWhenNotMatched)
public S withEntity(Object entity, ColumnPredicate columnPredicate)
public S withEntity(Object entity, Predicate<String> isIncludeColumns, Predicate<String> isExcludeColumns, Predicate<String> isIncludeEmptyColumns, boolean includeAllEmpty)
public S withEntity(Object entity, boolean updateWhenMatched, boolean insertWhenNotMatched, Predicate<String> isIncludeEmptyColumns)
public S withEntity(Object entity, boolean updateWhenMatched, boolean insertWhenNotMatched, Predicate<String> isIncludeColumns, Predicate<String> isExcludeColumns, Predicate<String> isIncludeEmptyColumns, boolean includeAllEmpty)
public S withEntity(Object entity, boolean updateWhenMatched, boolean insertWhenNotMatched, ColumnPredicate columnPredicate)
public S using(SelectStatement<?> select, String alias)
public <T extends AndSegment<S,T>> T on()
public S updateWhenMatched()
public S insertWhenNotMatched()
public S updateWhenMatched(boolean enabled)
public S insertWhenNotMatched(boolean enabled)
public TableSegment<?> getTable(String tableAlias)
getTable 在接口中 TableAccessiblepublic TableSegment<?> getTable(int tableIndex)
getTable 在接口中 TableAccessibleCopyright © 2024 fossc. All rights reserved.