Package io.ebeaninternal.server.type
Class ScalarTypeUUIDVarchar
- java.lang.Object
-
- io.ebeaninternal.server.type.ScalarTypeBase<UUID>
-
- io.ebeaninternal.server.type.ScalarTypeUUIDBase
-
- io.ebeaninternal.server.type.ScalarTypeUUIDVarchar
-
- All Implemented Interfaces:
StringFormatter
,StringParser
,ScalarDataReader<UUID>
,ScalarType<UUID>
,ScalarTypeLogicalType
public class ScalarTypeUUIDVarchar extends ScalarTypeUUIDBase
ScalarType for java.util.UUID which converts to and from a VARCHAR database column.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(DataBind b, UUID value)
Convert (if necessary) and bind the value to the preparedStatement.int
getLength()
Just return 0.UUID
read(DataReader dataReader)
Read the value from the resultSet and convert if necessary to the logical bean property value.-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeUUIDBase
convertFromMillis, formatValue, getDocType, getLogicalType, isDateTimeCapable, isDirty, isMutable, jsonRead, jsonWrite, parse, readData, toBeanType, toJdbcType, writeData
-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeBase
asVersion, format, getJdbcType, getType, isBinaryType, isJdbcNative, loadIgnore
-
-
-
-
Method Detail
-
getLength
public int getLength()
Description copied from class:ScalarTypeBase
Just return 0.- Specified by:
getLength
in interfaceScalarType<UUID>
- Overrides:
getLength
in classScalarTypeBase<UUID>
-
bind
public void bind(DataBind b, UUID value) throws SQLException
Description copied from interface:ScalarType
Convert (if necessary) and bind the value to the preparedStatement.value may need to be converted from the logical bean property type to the JDBC type.
- Throws:
SQLException
-
read
public UUID read(DataReader dataReader) throws SQLException
Description copied from interface:ScalarType
Read the value from the resultSet and convert if necessary to the logical bean property value.- Throws:
SQLException
-
-