public class StringValueFactory extends java.lang.Object implements ValueFactory<java.lang.String>
ValueFactory
implementation to create strings.Modifier and Type | Field and Description |
---|---|
protected PropertySet |
pset |
Constructor and Description |
---|
StringValueFactory(PropertySet pset) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createFromBigDecimal(java.math.BigDecimal d) |
java.lang.String |
createFromBigInteger(java.math.BigInteger i) |
java.lang.String |
createFromBit(byte[] bytes,
int offset,
int length) |
java.lang.String |
createFromBytes(byte[] bytes,
int offset,
int length,
Field f)
Interpret the given byte array as a string.
|
java.lang.String |
createFromDate(InternalDate idate)
Create a string from InternalDate.
|
java.lang.String |
createFromDatetime(InternalTimestamp its)
Create a string from time fields.
|
java.lang.String |
createFromDouble(double d) |
java.lang.String |
createFromLong(long l) |
java.lang.String |
createFromNull()
Create result value from intermediate null value.
|
java.lang.String |
createFromTime(InternalTime it)
Create a string from InternalTime.
|
java.lang.String |
createFromTimestamp(InternalTimestamp its)
Create a string from time fields.
|
java.lang.String |
createFromYear(long l) |
java.lang.String |
getTargetTypeName()
Get the actual class name of T parameter.
|
void |
setPropertySet(PropertySet pset) |
protected PropertySet pset
public StringValueFactory(PropertySet pset)
public void setPropertySet(PropertySet pset)
setPropertySet
in interface ValueFactory<java.lang.String>
public java.lang.String createFromDate(InternalDate idate)
createFromDate
in interface ValueFactory<java.lang.String>
idate
- InternalDate
public java.lang.String createFromTime(InternalTime it)
createFromTime
in interface ValueFactory<java.lang.String>
it
- InternalTime
public java.lang.String createFromTimestamp(InternalTimestamp its)
createFromDate(InternalDate)
and createFromTime(InternalTime)
.createFromTimestamp
in interface ValueFactory<java.lang.String>
its
- InternalTimestamp
public java.lang.String createFromDatetime(InternalTimestamp its)
createFromDate(InternalDate)
and createFromTime(InternalTime)
.createFromDatetime
in interface ValueFactory<java.lang.String>
its
- InternalTimestamp
public java.lang.String createFromLong(long l)
createFromLong
in interface ValueFactory<java.lang.String>
public java.lang.String createFromBigInteger(java.math.BigInteger i)
createFromBigInteger
in interface ValueFactory<java.lang.String>
public java.lang.String createFromDouble(double d)
createFromDouble
in interface ValueFactory<java.lang.String>
public java.lang.String createFromBigDecimal(java.math.BigDecimal d)
createFromBigDecimal
in interface ValueFactory<java.lang.String>
public java.lang.String createFromBytes(byte[] bytes, int offset, int length, Field f)
createFromBytes
in interface ValueFactory<java.lang.String>
bytes
- byte arrayoffset
- offsetlength
- data length in bytesf
- fieldpublic java.lang.String createFromBit(byte[] bytes, int offset, int length)
createFromBit
in interface ValueFactory<java.lang.String>
public java.lang.String createFromYear(long l)
createFromYear
in interface ValueFactory<java.lang.String>
public java.lang.String createFromNull()
ValueFactory
createFromNull
in interface ValueFactory<java.lang.String>
public java.lang.String getTargetTypeName()
ValueFactory
getTargetTypeName
in interface ValueFactory<java.lang.String>