Package liquibase.resource
Class OpenOptions
java.lang.Object
liquibase.resource.OpenOptions
Defines the options for opening
Resource
s in Liquibase.-
Constructor Summary
ConstructorDescriptionUse default options of truncate = true, createIfNeeded = true; -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAppend()
Should an existing file be appended to when opened.boolean
If true, create the resource if it does not exist.boolean
Should an existing file be truncated when opened.setAppend
(boolean append) setCreateIfNeeded
(boolean createIfNeeded) setTruncate
(boolean truncate)
-
Constructor Details
-
OpenOptions
public OpenOptions()Use default options of truncate = true, createIfNeeded = true;
-
-
Method Details
-
isTruncate
public boolean isTruncate()Should an existing file be truncated when opened. Both this andisAppend()
are automatically kept in sync with each other. -
setTruncate
-
isAppend
public boolean isAppend()Should an existing file be appended to when opened. Both this andisTruncate()
are automatically kept in sync with each other. -
setAppend
-
isCreateIfNeeded
public boolean isCreateIfNeeded()If true, create the resource if it does not exist. If false, do not create the resource. -
setCreateIfNeeded
-