public abstract class AbstractEncryptedAsStringType extends Object implements org.hibernate.usertype.UserType, org.hibernate.usertype.ParameterizedType
Modifier and Type | Field and Description |
---|---|
protected org.jasypt.encryption.pbe.PBEStringEncryptor |
encryptor |
Constructor and Description |
---|
AbstractEncryptedAsStringType() |
Modifier and Type | Method and Description |
---|---|
Object |
assemble(Serializable cached,
Object owner) |
protected void |
checkInitialization() |
protected abstract Object |
convertToObject(String string)
Converts given String to its Object form.
|
protected String |
convertToString(Object object)
Converts given Object to its String form.
|
Object |
deepCopy(Object value) |
Serializable |
disassemble(Object value) |
boolean |
equals(Object x,
Object y) |
int |
hashCode(Object x) |
boolean |
isMutable() |
Object |
nullSafeGet(ResultSet rs,
String[] names,
Object owner) |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index) |
Object |
replace(Object original,
Object target,
Object owner) |
abstract Class |
returnedClass() |
void |
setParameterValues(Properties parameters) |
int[] |
sqlTypes() |
protected abstract Object convertToObject(String string)
string
- the string valueprotected String convertToString(Object object)
object
- the object valuepublic final int[] sqlTypes()
sqlTypes
in interface org.hibernate.usertype.UserType
public abstract Class returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
public final boolean equals(Object x, Object y) throws org.hibernate.HibernateException
equals
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public final Object deepCopy(Object value) throws org.hibernate.HibernateException
deepCopy
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public final Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
assemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public final Serializable disassemble(Object value) throws org.hibernate.HibernateException
disassemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public final boolean isMutable()
isMutable
in interface org.hibernate.usertype.UserType
public final int hashCode(Object x) throws org.hibernate.HibernateException
hashCode
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public final Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException
replace
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public final Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws org.hibernate.HibernateException, SQLException
nullSafeGet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
SQLException
public final void nullSafeSet(PreparedStatement st, Object value, int index) throws org.hibernate.HibernateException, SQLException
nullSafeSet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
SQLException
public void setParameterValues(Properties parameters)
setParameterValues
in interface org.hibernate.usertype.ParameterizedType
protected final void checkInitialization()
Copyright © 2019 The JASYPT team. All rights reserved.