Top Description Fields Constructors Methods
org.h2.value

public final Class ValueChar

extends ValueStringBase
Class Inheritance
Imports
org.h2.engine.CastDataProvider, .SysProperties, org.h2.util.StringUtils

Implementation of the CHARACTER data type.

Field Summary

Inherited from org.h2.value.ValueStringBase:
value

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
compareTypeSafe(Value
the other value
v
,
CompareMode
the compare mode
mode
,
CastDataProvider
the cast information provider
provider
)

Overrides org.h2.value.ValueStringBase.compareTypeSafe.

Compare this value against another value given that the values are of the same data type.

public static ValueChar

Returns:

the value
get
(String
the string
s
)

Get or create a CHAR value for the given string.

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

Implements org.h2.util.HasSQL.getSQL.

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

public int
getValueType()

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

Get the value type.

Inherited from org.h2.value.ValueStringBase:
equalsgetBigDecimalgetBooleangetBytegetBytesgetDoublegetFloatgetIntgetLonggetMemorygetShortgetStringgetTypehashCode

Constructor Detail

ValueCharback to summary
private ValueChar(String value)

Method Detail

compareTypeSafeback to summary
public int compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)

Overrides org.h2.value.ValueStringBase.compareTypeSafe.

Doc from org.h2.value.Value.compareTypeSafe.

Compare this value against another value given that the values are of the same data type.

Parameters
v:Value

the other value

mode:CompareMode

the compare mode

provider:CastDataProvider

the cast information provider

Returns:int

0 if both values are equal, -1 if the other value is smaller, and 1 otherwise

Annotations
@Override
getback to summary
public static ValueChar get(String s)

Get or create a CHAR value for the given string.

Parameters
s:String

the string

Returns:ValueChar

the value

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

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
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