Package io.ebeaninternal.server.type
Class ScalarTypeUUIDNative
- java.lang.Object
-
- io.ebeaninternal.server.type.ScalarTypeBase<UUID>
-
- io.ebeaninternal.server.type.ScalarTypeUUIDBase
-
- io.ebeaninternal.server.type.ScalarTypeUUIDNative
-
- All Implemented Interfaces:
StringFormatter
,StringParser
,ScalarDataReader<UUID>
,ScalarType<UUID>
,ScalarTypeLogicalType
public class ScalarTypeUUIDNative extends ScalarTypeUUIDBase
Postgres Hstore type which maps Mapto a single 'HStore column' in the DB.
-
-
Constructor Summary
Constructors Constructor Description ScalarTypeUUIDNative()
-
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.UUID
read(DataReader dataReader)
Read the value from the resultSet and convert if necessary to the logical bean property value.Object
toJdbcType(Object value)
Convert the value as necessary to the JDBC type.-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeUUIDBase
convertFromMillis, formatValue, getDocType, getLogicalType, isDateTimeCapable, isDirty, isMutable, jsonRead, jsonWrite, parse, readData, toBeanType, writeData
-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeBase
asVersion, format, getJdbcType, getLength, getType, isBinaryType, isJdbcNative, loadIgnore
-
-
-
-
Constructor Detail
-
ScalarTypeUUIDNative
public ScalarTypeUUIDNative()
-
-
Method Detail
-
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
-
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
-
toJdbcType
public Object toJdbcType(Object value)
Description copied from interface:ScalarType
Convert the value as necessary to the JDBC type.Note that this should also match the type as per the getJdbcType() method.
This is typically used when the matching type is used in a where clause and we use this to ensure it is an appropriate jdbc type.
- Specified by:
toJdbcType
in interfaceScalarType<UUID>
- Overrides:
toJdbcType
in classScalarTypeUUIDBase
-
-