Class ScalarTypeWrapper<B,S>
java.lang.Object
io.ebeaninternal.server.type.ScalarTypeWrapper<B,S>
- Type Parameters:
B- the logical typeS- the underlying scalar type this is converted to
- All Implemented Interfaces:
io.ebean.core.type.ScalarDataReader<B>, io.ebean.core.type.ScalarType<B>, io.ebean.text.StringFormatter, io.ebean.text.StringParser
A ScalarType that uses a ScalarTypeConverter to convert to and from another underlying
ScalarType.
Enables the use of a simple interface to add additional scalarTypes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanbinary()voidio.ebean.core.type.DocPropertyTypedocType()formatValue(B v) io.ebean.core.type.ScalarType<?> booleanbooleanintjdbcType()jsonRead(com.fasterxml.jackson.core.JsonParser parser) voidintlength()booleanmutable()read(io.ebean.core.type.DataReader reader) toBeanType(Object value) toJdbcType(Object value) toString()type()voidwriteData(DataOutput dataOutput, B value) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.ebean.core.type.ScalarType
format, jsonMapper
-
Constructor Details
-
ScalarTypeWrapper
-
-
Method Details
-
toString
-
asVersion
-
binary
public boolean binary()- Specified by:
binaryin interfaceio.ebean.core.type.ScalarType<B>
-
mutable
public boolean mutable()- Specified by:
mutablein interfaceio.ebean.core.type.ScalarType<B>
-
isDirty
-
readData
- Specified by:
readDatain interfaceio.ebean.core.type.ScalarType<B>- Throws:
IOException
-
writeData
- Specified by:
writeDatain interfaceio.ebean.core.type.ScalarType<B>- Throws:
IOException
-
bind
- Specified by:
bindin interfaceio.ebean.core.type.ScalarType<B>- Throws:
SQLException
-
jdbcType
public int jdbcType()- Specified by:
jdbcTypein interfaceio.ebean.core.type.ScalarType<B>
-
length
public int length()- Specified by:
lengthin interfaceio.ebean.core.type.ScalarType<B>
-
type
-
jdbcNative
public boolean jdbcNative()- Specified by:
jdbcNativein interfaceio.ebean.core.type.ScalarType<B>
-
formatValue
-
parse
-
read
- Specified by:
readin interfaceio.ebean.core.type.ScalarDataReader<B>- Specified by:
readin interfaceio.ebean.core.type.ScalarType<B>- Throws:
SQLException
-
toBeanType
-
toJdbcType
-
getScalarType
public io.ebean.core.type.ScalarType<?> getScalarType() -
jsonRead
- Specified by:
jsonReadin interfaceio.ebean.core.type.ScalarType<B>- Throws:
IOException
-
jsonWrite
public void jsonWrite(com.fasterxml.jackson.core.JsonGenerator writer, B beanValue) throws IOException - Specified by:
jsonWritein interfaceio.ebean.core.type.ScalarType<B>- Throws:
IOException
-
docType
public io.ebean.core.type.DocPropertyType docType()- Specified by:
docTypein interfaceio.ebean.core.type.ScalarType<B>
-