public class BindUtils extends Object
This class provides methods to convert data of the java.sql.Blob type into a byte array and convert data
of the java.sql.Clob type into a string.
SystemCapability.Data#DATA_APPDATAMGR| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static byte[] |
bindBlob(Blob blob) |
Converts data of the
java.sql.Blob type into a byte array. |
static String |
clobToString(Clob clob) |
Converts data of the
java.sql.Clob type into a string. |
static Calendar |
getCalendar(long time) |
Translates time in long format into time in calendar format.
|
public static byte[] bindBlob(Blob blob)
java.sql.Blob type into a byte array.
java.sql.Blob stores binary large objects. This method converts the binary large objects into
a byte array.
blob - Indicates the binary large objects.public static String clobToString(Clob clob)
java.sql.Clob type into a string.
java.sql.Clob stores character large objects. This method converts the character large objects
into a string.
clob - Indicates the character large objects.public static Calendar getCalendar(long time)
time - Indicates the time in long format (accurate to milliseconds).