Top Fields Constructors Methods
liquibase.statement.core

public Class InsertOrUpdateStatement

extends InsertStatement
Class Inheritance
Imports
liquibase.change.DatabaseChangeProperty, java.util.HashMap, .Map

Field Summary

Modifier and TypeField and Description
private final Map<String, Boolean>
private Boolean
private final String

Constructor Summary

AccessConstructor and Description
public
InsertOrUpdateStatement(String catalogName, String schemaName, String tableName, String primaryKey)

public
InsertOrUpdateStatement(String catalogName, String schemaName, String tableName, String primaryKey, boolean onlyUpdate)

Method Summary

Modifier and TypeMethod and Description
public boolean
public Boolean
public String
public void
setAllowColumnUpdate(String columnName, boolean allowUpdate)

public void
setOnlyUpdate(Boolean onlyUpdate)

Inherited from liquibase.statement.core.InsertStatement:
addColumnaddColumnValuegetCatalogNamegetColumnValuegetColumnValuesgetSchemaNamegetTableName

Field Detail

allowUpdatesback to summary
private final Map<String, Boolean> allowUpdates
onlyUpdateback to summary
private Boolean onlyUpdate
primaryKeyback to summary
private final String primaryKey

Constructor Detail

InsertOrUpdateStatementback to summary
public InsertOrUpdateStatement(String catalogName, String schemaName, String tableName, String primaryKey)
InsertOrUpdateStatementback to summary
public InsertOrUpdateStatement(String catalogName, String schemaName, String tableName, String primaryKey, boolean onlyUpdate)

Method Detail

getAllowColumnUpdateback to summary
public boolean getAllowColumnUpdate(String columnName)
getOnlyUpdateback to summary
public Boolean getOnlyUpdate()
Annotations
@DatabaseChangeProperty
description:Whether records with no matching database record should be ignored
getPrimaryKeyback to summary
public String getPrimaryKey()
setAllowColumnUpdateback to summary
public void setAllowColumnUpdate(String columnName, boolean allowUpdate)
setOnlyUpdateback to summary
public void setOnlyUpdate(Boolean onlyUpdate)