Top Description Fields Constructors Methods
liquibase.resource

public Class OpenOptions

extends Object
Class Inheritance

Defines the options for opening Resources in Liquibase.

Field Summary

Modifier and TypeField and Description
private boolean
private boolean

Constructor Summary

AccessConstructor and Description
public
OpenOptions()

Use default options of truncate = true, createIfNeeded = true;

Method Summary

Modifier and TypeMethod and Description
public boolean
isAppend()

Should an existing file be appended to when opened.

public boolean
isCreateIfNeeded()

If true, create the resource if it does not exist.

public boolean
isTruncate()

Should an existing file be truncated when opened.

public OpenOptions
setAppend(boolean append)

public OpenOptions
setCreateIfNeeded(boolean createIfNeeded)

public OpenOptions
setTruncate(boolean truncate)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

createIfNeededback to summary
private boolean createIfNeeded
truncateback to summary
private boolean truncate

Constructor Detail

OpenOptionsback to summary
public OpenOptions()

Use default options of truncate = true, createIfNeeded = true;

Method Detail

isAppendback to summary
public boolean isAppend()

Should an existing file be appended to when opened. Both this and isTruncate() are automatically kept in sync with each other.

isCreateIfNeededback to summary
public boolean isCreateIfNeeded()

If true, create the resource if it does not exist. If false, do not create the resource.

isTruncateback to summary
public boolean isTruncate()

Should an existing file be truncated when opened. Both this and isAppend() are automatically kept in sync with each other.

setAppendback to summary
public OpenOptions setAppend(boolean append)
setCreateIfNeededback to summary
public OpenOptions setCreateIfNeeded(boolean createIfNeeded)
setTruncateback to summary
public OpenOptions setTruncate(boolean truncate)