Package ru.curs.celesta.dbutils
Class BLOB
- java.lang.Object
-
- ru.curs.celesta.dbutils.BLOB
-
-
Constructor Summary
Constructors Constructor Description BLOB()Empty (NULL) BLOB.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BLOBclone()Returns a BLOB clone pointing at the same data page.InputStreamgetInStream()Returns a stream for data reading.OutputStreamgetOutStream()Returns a stream for data writing, at the same time dropping off current data from BLOB.booleanisModified()Whether BLOB data has been changed.booleanisNull()Whether current field accepts a value ofNULL.voidsetNull()Resets BLOB toNULL.intsize()Returns data size.
-
-
-
Method Detail
-
clone
public BLOB clone()
Returns a BLOB clone pointing at the same data page.- Returns:
-
isModified
public boolean isModified()
Whether BLOB data has been changed.- Returns:
-
getInStream
public InputStream getInStream()
Returns a stream for data reading.- Returns:
-
getOutStream
public OutputStream getOutStream()
Returns a stream for data writing, at the same time dropping off current data from BLOB.- Returns:
-
isNull
public boolean isNull()
Whether current field accepts a value ofNULL.- Returns:
-
setNull
public void setNull()
Resets BLOB toNULL.
-
size
public int size()
Returns data size.- Returns:
-
-