Package com.tsurugidb.iceaxe.sql.type
Class TgClobTempFile
- java.lang.Object
-
- com.tsurugidb.iceaxe.sql.type.TgClobTempFile
-
- All Implemented Interfaces:
TgClob,IceaxeTimeoutCloseable,java.lang.AutoCloseable
public class TgClobTempFile extends java.lang.Object implements TgClob
CLOB using temporary file.- Since:
- 1.8.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTgClobTempFile(java.nio.file.Path path, boolean deleteOnExecuteFinished)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcopyTo(java.nio.file.Path destination)Copy the large object to the file indicated by the given path.java.nio.file.PathgetPath()get path.booleanisDeleteOnExecuteFinished()Whether delete on execute finished.booleanisTempFile()Whether temporary file or not.java.io.ReaderopenReader()Returns a reader.java.lang.StringreadString()Reads string.java.lang.StringtoString()
-
-
-
Method Detail
-
getPath
public java.nio.file.Path getPath()
Description copied from interface:TgClobget path.
-
isTempFile
public boolean isTempFile()
Description copied from interface:TgClobWhether temporary file or not.- Specified by:
isTempFilein interfaceTgClob- Returns:
truewhen temporary file
-
isDeleteOnExecuteFinished
public boolean isDeleteOnExecuteFinished()
Description copied from interface:TgClobWhether delete on execute finished.- Specified by:
isDeleteOnExecuteFinishedin interfaceTgClob- Returns:
true: delete temporary file on execute finished
-
openReader
public java.io.Reader openReader() throws java.io.IOExceptionDescription copied from interface:TgClobReturns a reader.- Specified by:
openReaderin interfaceTgClob- Returns:
- reader
- Throws:
java.io.IOException- if an I/O error occurs
-
copyTo
public void copyTo(java.nio.file.Path destination) throws java.io.IOExceptionDescription copied from interface:TgClobCopy the large object to the file indicated by the given path.
-
readString
public java.lang.String readString() throws java.io.IOExceptionDescription copied from interface:TgClobReads string.- Specified by:
readStringin interfaceTgClob- Returns:
- value
- Throws:
java.io.IOException- if an I/O error occurs
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceIceaxeTimeoutCloseable- Specified by:
closein interfaceTgClob- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-