Package liquibase.resource
Class OpenOptions
- java.lang.Object
-
- liquibase.resource.OpenOptions
-
-
Constructor Summary
Constructors Constructor Description OpenOptions()
Use default options of truncate = true, createIfNeeded = true;
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAppend()
Should an existing file be appended to when opened.boolean
isCreateIfNeeded()
If true, create the resource if it does not exist.boolean
isTruncate()
Should an existing file be truncated when opened.OpenOptions
setAppend(boolean append)
OpenOptions
setCreateIfNeeded(boolean createIfNeeded)
OpenOptions
setTruncate(boolean truncate)
-
-
-
Method Detail
-
isTruncate
public boolean isTruncate()
Should an existing file be truncated when opened. Both this andisAppend()
are automatically kept in sync with each other.
-
setTruncate
public OpenOptions setTruncate(boolean truncate)
-
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
public OpenOptions setAppend(boolean append)
-
isCreateIfNeeded
public boolean isCreateIfNeeded()
If true, create the resource if it does not exist. If false, do not create the resource.
-
setCreateIfNeeded
public OpenOptions setCreateIfNeeded(boolean createIfNeeded)
-
-