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 booleanisAppend()Should an existing file be appended to when opened.booleanisCreateIfNeeded()If true, create the resource if it does not exist.booleanisTruncate()Should an existing file be truncated when opened.OpenOptionssetAppend(boolean append)OpenOptionssetCreateIfNeeded(boolean createIfNeeded)OpenOptionssetTruncate(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)
-
-