public class UrlType extends AbstractSingleColumnStandardBasicType<URL> implements DiscriminatorType<URL>
Constructor and Description |
---|
UrlType() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the abbreviated name of the type.
|
String |
objectToSQLString(URL value,
Dialect dialect)
Convert the value into a string representation, suitable for embedding in an SQL statement as a
literal.
|
protected boolean |
registerUnderJavaType() |
URL |
stringToObject(String xml)
Convert the value from the mapping file to a Java object.
|
String |
toString(URL value)
Render the value to the string representation.
|
nullSafeSet, sqlType
assemble, 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, toLoggableString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assemble, 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, toLoggableString
fromStringValue, get, nullSafeGet, set
public static final UrlType INSTANCE
public String getName()
Type
protected boolean registerUnderJavaType()
registerUnderJavaType
in class AbstractStandardBasicType<URL>
public String toString(URL value)
StringRepresentableType
toString
in interface SingleColumnType<URL>
toString
in interface StringRepresentableType<URL>
toString
in class AbstractStandardBasicType<URL>
value
- The value to render to string.public String objectToSQLString(URL value, Dialect dialect) throws Exception
LiteralType
objectToSQLString
in interface LiteralType<URL>
value
- The value to convertdialect
- The SQL dialectException
- Indicates an issue converting the value to literal string.public URL stringToObject(String xml) throws Exception
IdentifierType
stringToObject
in interface IdentifierType<URL>
xml
- the value of discriminator-value or unsaved-value attributeException
- Indicates a problem converting from the stringCopyright © 2021 JBoss by Red Hat. All rights reserved.