public class PostgreSQLInetType extends ImmutableType<Inet>
Inet
object type to a PostgreSQL INET column type.
For more details about how to use it, check out this article on vladmihalcea.com.
Modifier and Type | Field and Description |
---|---|
static PostgreSQLInetType |
INSTANCE |
Constructor and Description |
---|
PostgreSQLInetType() |
Modifier and Type | Method and Description |
---|---|
Inet |
get(ResultSet rs,
String[] names,
org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object owner)
Get the column value from the JDBC
ResultSet . |
void |
set(PreparedStatement st,
Inet value,
int index,
org.hibernate.engine.spi.SharedSessionContractImplementor session)
Set the column value on the provided JDBC
PreparedStatement . |
int[] |
sqlTypes() |
assemble, assemble, beforeAssemble, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, disassemble, equals, getColumnSpan, getConfiguration, getHashCode, getHashCode, getName, getRegistrationKeys, getReturnedClass, getSemiResolvedType, hashCode, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, replace, resolve, returnedClass, semiResolve, sqlTypes, toColumnNullness, toLoggableString
public static final PostgreSQLInetType INSTANCE
public int[] sqlTypes()
public Inet get(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws SQLException
ImmutableType
ResultSet
.get
in class ImmutableType<Inet>
rs
- JDBC ResultSet
names
- database column namesession
- current Hibernate Session
owner
- current Hibernate SessionFactoryImplementor
SQLException
- in case of failurepublic void set(PreparedStatement st, Inet value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws SQLException
ImmutableType
PreparedStatement
.set
in class ImmutableType<Inet>
st
- JDBC PreparedStatement
value
- database column valueindex
- database column indexsession
- current Hibernate Session
SQLException
- in case of failureCopyright © 2022. All rights reserved.