Package io.ebeaninternal.server.type
Class ScalarTypeInetAddressPostgres
- java.lang.Object
-
- io.ebeaninternal.server.type.ScalarTypeBase<T>
-
- io.ebeaninternal.server.type.ScalarTypeBaseVarchar<InetAddress>
-
- io.ebeaninternal.server.type.ScalarTypeInetAddressPostgres
-
- All Implemented Interfaces:
StringFormatter
,StringParser
,ScalarDataReader<InetAddress>
,ScalarType<InetAddress>
public class ScalarTypeInetAddressPostgres extends ScalarTypeBaseVarchar<InetAddress>
ScalarType for InetAddress to Postgres INET.
-
-
Constructor Summary
Constructors Constructor Description ScalarTypeInetAddressPostgres()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(DataBind b, InetAddress value)
Convert (if necessary) and bind the value to the preparedStatement.InetAddress
convertFromDbString(String dbValue)
Convert from DB string value to the target type.String
convertToDbString(InetAddress beanValue)
Convert to DB string from the target type.String
formatValue(InetAddress v)
Format the target type to a string.InetAddress
parse(String value)
Parse from a formatted string value.-
Methods inherited from class io.ebeaninternal.server.type.ScalarTypeBaseVarchar
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
-
ScalarTypeInetAddressPostgres
public ScalarTypeInetAddressPostgres()
-
-
Method Detail
-
bind
public void bind(DataBind b, InetAddress 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.
- Specified by:
bind
in interfaceScalarType<InetAddress>
- Overrides:
bind
in classScalarTypeBaseVarchar<InetAddress>
- Throws:
SQLException
-
convertFromDbString
public InetAddress convertFromDbString(String dbValue)
Description copied from class:ScalarTypeBaseVarchar
Convert from DB string value to the target type.- Specified by:
convertFromDbString
in classScalarTypeBaseVarchar<InetAddress>
-
convertToDbString
public String convertToDbString(InetAddress beanValue)
Description copied from class:ScalarTypeBaseVarchar
Convert to DB string from the target type.- Specified by:
convertToDbString
in classScalarTypeBaseVarchar<InetAddress>
-
formatValue
public String formatValue(InetAddress v)
Description copied from class:ScalarTypeBaseVarchar
Format the target type to a string.- Specified by:
formatValue
in interfaceScalarType<InetAddress>
- Specified by:
formatValue
in classScalarTypeBaseVarchar<InetAddress>
-
parse
public InetAddress parse(String value)
Description copied from class:ScalarTypeBaseVarchar
Parse from a formatted string value.- Specified by:
parse
in interfaceScalarType<InetAddress>
- Specified by:
parse
in interfaceStringParser
- Specified by:
parse
in classScalarTypeBaseVarchar<InetAddress>
-
-