public class ModifyOneToManyRelationStatementsBuilder extends AbstractStoreStatementsBuilder implements StatementsBuilder
AbstractStoreStatementsBuilder.ColumnPayloadTransformerinfoMap, persistResults| Modifier and Type | Method and Description |
|---|---|
protected void |
collectPersistResults(Iterable<PK> records,
CrudEnum operation) |
Set<StatementHolder> |
createStatements()
Creates bunch of
StatementHolder objects which keeps all required statements for item
creation/modification/deletion. |
static ModifyOneToManyRelationStatementsBuilder |
getInstance(DefaultRelationRecordVisitor.RelationRecordsContainer container,
Config.DatabaseName databaseName) |
protected String |
getPosColumn()
TODO: Hack! Change it to something more elegant.
|
protected <T> String |
getUpdateAllStatement(ColumnPayload columnPayload,
Iterable<T> toUpdate) |
protected void |
unlinkTargetsFromOrderedSource(ColumnPayload columnPayload,
Set<StatementHolder> result,
Set<PK> recordsToUnlink) |
protected void |
unlinkTargetsFromUnorderedSource(ColumnPayload columnPayload,
Set<StatementHolder> result,
Set<PK> recordsToUnlink) |
getPersistResultspublic static ModifyOneToManyRelationStatementsBuilder getInstance(DefaultRelationRecordVisitor.RelationRecordsContainer container, Config.DatabaseName databaseName)
public Set<StatementHolder> createStatements()
StatementsBuilderStatementHolder objects which keeps all required statements for item
creation/modification/deletion.createStatements in interface StatementsBuilderprotected void unlinkTargetsFromOrderedSource(ColumnPayload columnPayload, Set<StatementHolder> result, Set<PK> recordsToUnlink)
protected void unlinkTargetsFromUnorderedSource(ColumnPayload columnPayload, Set<StatementHolder> result, Set<PK> recordsToUnlink)
protected <T> String getUpdateAllStatement(ColumnPayload columnPayload, Iterable<T> toUpdate)
protected String getPosColumn()
Copyright © 2017 SAP SE. All Rights Reserved.