Top Description Fields Constructors Methods
org.h2.value

public final Class ValueJavaObject

extends ValueBytesBase
Class Inheritance
Imports
org.h2.api.ErrorCode, org.h2.engine.SysProperties, org.h2.message.DbException, org.h2.util.Utils

Implementation of the JAVA_OBJECT data type.

Field Summary

Modifier and TypeField and Description
private static final ValueJavaObject
Inherited from org.h2.value.ValueBytesBase:
hashvalue

Constructor Summary

AccessConstructor and Description
private
ValueJavaObject(byte[] v)

Method Summary

Modifier and TypeMethod and Description
public static ValueJavaObject

Returns:

the value
getNoCopy
(byte[]
the byte array
b
)

Get or create a java object value for the given byte array.

public StringBuilder
getSQL(StringBuilder
string builder
builder
,
int
formatting flags
sqlFlags
)

Overrides org.h2.value.ValueBytesBase.getSQL.

Implements org.h2.util.HasSQL.getSQL.

Appends the SQL statement of this object to the specified builder.

public String
getString()

Implements abstract org.h2.value.Value.getString.

Get the value as a string.

public TypeInfo
getType()

Implements abstract org.h2.value.Value.getType.

Implements org.h2.value.Typed.getType.

Returns the data type.

public int
getValueType()

Implements abstract org.h2.value.Value.getValueType.

Get the value type.

Inherited from org.h2.value.ValueBytesBase:
compareTypeSafeequalsgetBytesgetBytesNoCopygetMemoryhashCode

Field Detail

EMPTYback to summary
private static final ValueJavaObject EMPTY

Constructor Detail

ValueJavaObjectback to summary
private ValueJavaObject(byte[] v)

Method Detail

getNoCopyback to summary
public static ValueJavaObject getNoCopy(byte[] b)

Get or create a java object value for the given byte array. Do not clone the data.

Parameters
b:byte[]

the byte array

Returns:ValueJavaObject

the value

getSQLback to summary
public StringBuilder getSQL(StringBuilder builder, int sqlFlags)

Overrides org.h2.value.ValueBytesBase.getSQL.

Implements org.h2.util.HasSQL.getSQL.

Doc from org.h2.util.HasSQL.getSQL.

Appends the SQL statement of this object to the specified builder.

Parameters
builder:StringBuilder

string builder

sqlFlags:int

formatting flags

Returns:StringBuilder

the specified string builder

Annotations
@Override
getStringback to summary
public String getString()

Implements abstract org.h2.value.Value.getString.

Doc from org.h2.value.Value.getString.

Get the value as a string.

Returns:String

the string

Annotations
@Override
getTypeback to summary
public TypeInfo getType()

Implements abstract org.h2.value.Value.getType.

Implements org.h2.value.Typed.getType.

Doc from org.h2.value.Typed.getType.

Returns the data type.

Returns:TypeInfo

the data type

Annotations
@Override
getValueTypeback to summary
public int getValueType()

Implements abstract org.h2.value.Value.getValueType.

Doc from org.h2.value.Value.getValueType.

Get the value type.

Returns:int

the value type

Annotations
@Override