Package io.ebeaninternal.server.type
Class ScalarTypeURL
- java.lang.Object
-
- io.ebeaninternal.server.type.ScalarTypeBase<T>
-
- io.ebeaninternal.server.type.ScalarTypeBaseVarchar<URL>
-
- io.ebeaninternal.server.type.ScalarTypeURL
-
- All Implemented Interfaces:
StringFormatter
,StringParser
,ScalarDataReader<URL>
,ScalarType<URL>
public class ScalarTypeURL extends ScalarTypeBaseVarchar<URL>
ScalarType for java.net.URL which converts to and from a VARCHAR database column.
-
-
Constructor Summary
Constructors Constructor Description ScalarTypeURL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
convertFromDbString(String dbValue)
Convert from DB string value to the target type.String
convertToDbString(URL beanValue)
Convert to DB string from the target type.String
formatValue(URL v)
Format the target type to a string.URL
parse(String value)
Parse from a formatted string value.-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeBaseVarchar
bind, convertFromMillis, format, getDocType, isDateTimeCapable, jsonRead, jsonWrite, read, readData, toBeanType, toJdbcType, writeData
-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeBase
asVersion, getJdbcType, getLength, getType, isBinaryType, isDirty, isJdbcNative, isMutable, loadIgnore
-
-
-
-
Constructor Detail
-
ScalarTypeURL
public ScalarTypeURL()
-
-
Method Detail
-
convertFromDbString
public URL convertFromDbString(String dbValue)
Description copied from class:ScalarTypeBaseVarchar
Convert from DB string value to the target type.- Specified by:
convertFromDbString
in classScalarTypeBaseVarchar<URL>
-
convertToDbString
public String convertToDbString(URL beanValue)
Description copied from class:ScalarTypeBaseVarchar
Convert to DB string from the target type.- Specified by:
convertToDbString
in classScalarTypeBaseVarchar<URL>
-
formatValue
public String formatValue(URL v)
Description copied from class:ScalarTypeBaseVarchar
Format the target type to a string.- Specified by:
formatValue
in interfaceScalarType<URL>
- Specified by:
formatValue
in classScalarTypeBaseVarchar<URL>
-
parse
public URL parse(String value)
Description copied from class:ScalarTypeBaseVarchar
Parse from a formatted string value.- Specified by:
parse
in interfaceScalarType<URL>
- Specified by:
parse
in interfaceStringParser
- Specified by:
parse
in classScalarTypeBaseVarchar<URL>
-
-