Package io.ultreia.java4all.util.sql
Class SqlScript
- java.lang.Object
-
- io.ultreia.java4all.util.sql.SqlScript
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<BlobsContainer>blobsContainersprotected Supplier<SqlScriptReader>location
-
Constructor Summary
Constructors Modifier Constructor Description protectedSqlScript(Supplier<SqlScriptReader> location)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlScriptaddBlobsContainer(BlobsContainer blobsContainer)SqlScriptaddBlobsContainers(Collection<BlobsContainer> blobsContainers)Stringcontent()voidcopy(SqlScriptWriter scriptWriter)voidcopy(OutputStream target)voidcopy(Path target)Set<BlobsContainer>getBlobsContainers()SqlScriptReadergetLocation()static SqlScriptof(byte... location)static SqlScriptof(String location)static SqlScriptof(URI location)static SqlScriptof(URL location)static SqlScriptof(Path location)voidsetLocation(Supplier<SqlScriptReader> location)byte[]toByteArray()booleanwithBlobs()
-
-
-
Field Detail
-
location
protected Supplier<SqlScriptReader> location
-
blobsContainers
protected Set<BlobsContainer> blobsContainers
-
-
Constructor Detail
-
SqlScript
protected SqlScript(Supplier<SqlScriptReader> location)
-
-
Method Detail
-
of
public static SqlScript of(byte... location)
-
addBlobsContainer
public SqlScript addBlobsContainer(BlobsContainer blobsContainer)
-
addBlobsContainers
public SqlScript addBlobsContainers(Collection<BlobsContainer> blobsContainers)
-
getBlobsContainers
public Set<BlobsContainer> getBlobsContainers()
-
getLocation
public SqlScriptReader getLocation()
-
setLocation
public void setLocation(Supplier<SqlScriptReader> location)
-
copy
public void copy(Path target) throws IOException
- Throws:
IOException
-
copy
public void copy(OutputStream target) throws IOException
- Throws:
IOException
-
copy
public void copy(SqlScriptWriter scriptWriter) throws IOException
- Throws:
IOException
-
content
public String content()
-
toByteArray
public byte[] toByteArray()
-
withBlobs
public boolean withBlobs()
-
-