Top Description Fields Constructors Methods
org.h2.value

public final Class ValueVarchar

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

Implementation of the CHARACTER VARYING data type.

Field Summary

Modifier and TypeField and Description
public static final ValueVarchar
EMPTY

Empty string.

Inherited from org.h2.value.ValueStringBase:
value

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Value

Returns:

the value
get
(String
the string
s
)

Get or create a VARCHAR value for the given string.

public static Value

Returns:

the value
get
(String
the string
s
,
CastDataProvider
the cast information provider, or null
provider
)

Get or create a VARCHAR 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:
compareTypeSafeequalsgetBigDecimalgetBooleangetBytegetBytesgetDoublegetFloatgetIntgetLonggetMemorygetShortgetStringgetTypehashCode

Field Detail

EMPTYback to summary
public static final ValueVarchar EMPTY

Empty string. Should not be used in places where empty string can be treated as NULL depending on database mode.

Constructor Detail

ValueVarcharback to summary
private ValueVarchar(String value)

Method Detail

getback to summary
public static Value get(String s)

Get or create a VARCHAR value for the given string.

Parameters
s:String

the string

Returns:Value

the value

getback to summary
public static Value get(String s, CastDataProvider provider)

Get or create a VARCHAR value for the given string.

Parameters
s:String

the string

provider:CastDataProvider

the cast information provider, or null

Returns:Value

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