public class StringType extends AbstractSingleColumnStandardBasicType<String> implements DiscriminatorType<String>
Modifier and Type | Field and Description |
---|---|
static StringType |
INSTANCE |
Constructor and Description |
---|
StringType() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the abbreviated name of the type.
|
String |
objectToSQLString(String value,
Dialect dialect)
Convert the value into a string representation, suitable for embedding in an SQL statement as a
literal.
|
protected boolean |
registerUnderJavaType() |
String |
stringToObject(String xml)
Convert the value from the mapping file to a Java object.
|
String |
toString(String value)
Render the value to the string representation.
|
nullSafeSet, sqlType
assemble, beforeAssemble, canDoExtraction, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, extract, extract, fromString, fromStringValue, fromXMLNode, fromXMLString, get, getColumnSpan, getDefaultSize, getDictatedSize, getHashCode, getHashCode, getJavaTypeDescriptor, getMutabilityPlan, getRegistrationKeys, getReplacement, getReturnedClass, getSemiResolvedType, getSqlTypeDescriptor, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString, toXMLString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString
fromStringValue, get, nullSafeGet, set
public static final StringType INSTANCE
public String getName()
Type
protected boolean registerUnderJavaType()
registerUnderJavaType
in class AbstractStandardBasicType<String>
public String objectToSQLString(String value, Dialect dialect) throws Exception
LiteralType
objectToSQLString
in interface LiteralType<String>
value
- The value to convertdialect
- The SQL dialectException
- Indicates an issue converting the value to literal string.public String stringToObject(String xml) throws Exception
IdentifierType
stringToObject
in interface IdentifierType<String>
xml
- the value of discriminator-value or unsaved-value attributeException
- Indicates a problem converting from the stringpublic String toString(String value)
StringRepresentableType
toString
in interface SingleColumnType<String>
toString
in interface StringRepresentableType<String>
toString
in class AbstractStandardBasicType<String>
value
- The value to render to string.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.