public class UrlType extends AbstractSingleColumnStandardBasicType<java.net.URL> implements DiscriminatorType<java.net.URL>
VARCHAR
and URL
Constructor and Description |
---|
UrlType() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the abbreviated name of the type.
|
java.lang.String |
objectToSQLString(java.net.URL value,
Dialect dialect)
Convert the value into a string representation, suitable for embedding in an SQL statement as a
literal.
|
protected boolean |
registerUnderJavaType() |
java.net.URL |
stringToObject(java.lang.String xml)
Convert the value from the mapping file to a Java object.
|
java.lang.String |
toString(java.net.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, semiResolve, sqlTypes, toColumnNullness, toLoggableString
fromStringValue, get, nullSafeGet, set
public static final UrlType INSTANCE
public java.lang.String getName()
Type
protected boolean registerUnderJavaType()
registerUnderJavaType
in class AbstractStandardBasicType<java.net.URL>
public java.lang.String toString(java.net.URL value)
StringRepresentableType
toString
in interface SingleColumnType<java.net.URL>
toString
in interface StringRepresentableType<java.net.URL>
toString
in class AbstractStandardBasicType<java.net.URL>
value
- The value to render to string.public java.lang.String objectToSQLString(java.net.URL value, Dialect dialect) throws java.lang.Exception
LiteralType
objectToSQLString
in interface LiteralType<java.net.URL>
value
- The value to convertdialect
- The SQL dialectjava.lang.Exception
- Indicates an issue converting the value to literal string.public java.net.URL stringToObject(java.lang.String xml) throws java.lang.Exception
IdentifierType
stringToObject
in interface IdentifierType<java.net.URL>
xml
- the value of discriminator-value or unsaved-value attributejava.lang.Exception
- Indicates a problem converting from the stringCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.