public class StringType extends AbstractSingleColumnStandardBasicType<java.lang.String> implements DiscriminatorType<java.lang.String>
VARCHAR and String| Modifier and Type | Field and Description |
|---|---|
static StringType |
INSTANCE |
| Constructor and Description |
|---|
StringType() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the abbreviated name of the type.
|
java.lang.String |
objectToSQLString(java.lang.String value,
Dialect dialect)
Convert the value into a string representation, suitable for embedding in an SQL statement as a
literal.
|
protected boolean |
registerUnderJavaType() |
java.lang.String |
stringToObject(java.lang.String xml)
Convert the value from the mapping file to a Java object.
|
java.lang.String |
toString(java.lang.String value)
Render the value to the string representation.
|
nullSafeSet, sqlTypeassemble, beforeAssemble, canDoExtraction, canDoSetting, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, extract, extract, fromString, fromStringValue, 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, nullSafeSet, nullSafeSet, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, sqlTypes, toColumnNullness, toLoggableStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableStringfromStringValue, get, nullSafeGet, setpublic static final StringType INSTANCE
public java.lang.String getName()
Typeprotected boolean registerUnderJavaType()
registerUnderJavaType in class AbstractStandardBasicType<java.lang.String>public java.lang.String objectToSQLString(java.lang.String value,
Dialect dialect)
throws java.lang.Exception
LiteralTypeobjectToSQLString in interface LiteralType<java.lang.String>value - The value to convertdialect - The SQL dialectjava.lang.Exception - Indicates an issue converting the value to literal string.public java.lang.String stringToObject(java.lang.String xml)
throws java.lang.Exception
IdentifierTypestringToObject in interface IdentifierType<java.lang.String>xml - the value of discriminator-value or unsaved-value attributejava.lang.Exception - Indicates a problem converting from the stringpublic java.lang.String toString(java.lang.String value)
StringRepresentableTypetoString in interface SingleColumnType<java.lang.String>toString in interface StringRepresentableType<java.lang.String>toString in class AbstractStandardBasicType<java.lang.String>value - The value to render to string.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.