Package io.ebeaninternal.server.type
Class ScalarTypePath
- java.lang.Object
-
- io.ebeaninternal.server.type.ScalarTypeBase<T>
-
- io.ebeaninternal.server.type.ScalarTypeBaseVarchar<Path>
-
- io.ebeaninternal.server.type.ScalarTypePath
-
- All Implemented Interfaces:
StringFormatter
,StringParser
,ScalarDataReader<Path>
,ScalarType<Path>
public class ScalarTypePath extends ScalarTypeBaseVarchar<Path>
ScalarType for java.nio.file.Path which converts to and from a VARCHAR database column.
-
-
Constructor Summary
Constructors Constructor Description ScalarTypePath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
convertFromDbString(String dbValue)
Convert from DB string value to the target type.String
convertToDbString(Path beanValue)
Convert to DB string from the target type.String
formatValue(Path path)
Format the target type to a string.Path
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
-
ScalarTypePath
public ScalarTypePath()
-
-
Method Detail
-
convertFromDbString
public Path convertFromDbString(String dbValue)
Description copied from class:ScalarTypeBaseVarchar
Convert from DB string value to the target type.- Specified by:
convertFromDbString
in classScalarTypeBaseVarchar<Path>
-
convertToDbString
public String convertToDbString(Path beanValue)
Description copied from class:ScalarTypeBaseVarchar
Convert to DB string from the target type.- Specified by:
convertToDbString
in classScalarTypeBaseVarchar<Path>
-
formatValue
public String formatValue(Path path)
Description copied from class:ScalarTypeBaseVarchar
Format the target type to a string.- Specified by:
formatValue
in interfaceScalarType<Path>
- Specified by:
formatValue
in classScalarTypeBaseVarchar<Path>
-
parse
public Path parse(String value)
Description copied from class:ScalarTypeBaseVarchar
Parse from a formatted string value.- Specified by:
parse
in interfaceScalarType<Path>
- Specified by:
parse
in interfaceStringParser
- Specified by:
parse
in classScalarTypeBaseVarchar<Path>
-
-