Package org.jasypt.hibernate5.type
Class AbstractEncryptedAsStringType
Object
org.jasypt.hibernate5.type.AbstractEncryptedAsStringType
- All Implemented Interfaces:
org.hibernate.usertype.ParameterizedType,org.hibernate.usertype.UserType
- Direct Known Subclasses:
EncryptedBigDecimalAsStringType,EncryptedBigIntegerAsStringType,EncryptedBooleanAsStringType,EncryptedByteAsStringType,EncryptedCalendarAsStringType,EncryptedDateAsStringType,EncryptedDoubleAsStringType,EncryptedFloatAsStringType,EncryptedIntegerAsStringType,EncryptedLongAsStringType,EncryptedShortAsStringType,EncryptedStringType
public abstract class AbstractEncryptedAsStringType
extends Object
implements org.hibernate.usertype.UserType, org.hibernate.usertype.ParameterizedType
Base class for Hibernate UserTypes to store
values as encrypted strings.
- Since:
- 1.9.0
- Author:
- Chus Picos
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jasypt.encryption.pbe.PBEStringEncryptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Objectassemble(Serializable cached, Object owner) protected final voidprotected abstract ObjectconvertToObject(String string) Converts given String to its Object form.protected StringconvertToString(Object object) Converts given Object to its String form.final Objectfinal Serializabledisassemble(Object value) final booleanfinal intfinal booleannullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) voidnullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) final Objectabstract ClassvoidsetParameterValues(Properties parameters) final int[]sqlTypes()
-
Field Details
-
encryptor
protected org.jasypt.encryption.pbe.PBEStringEncryptor encryptor
-
-
Constructor Details
-
AbstractEncryptedAsStringType
public AbstractEncryptedAsStringType()
-
-
Method Details
-
convertToObject
-
convertToString
-
sqlTypes
public final int[] sqlTypes()- Specified by:
sqlTypesin interfaceorg.hibernate.usertype.UserType
-
returnedClass
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.UserType
-
equals
-
deepCopy
-
assemble
public final Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException - Specified by:
assemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
disassemble
- Specified by:
disassemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
isMutable
public final boolean isMutable()- Specified by:
isMutablein interfaceorg.hibernate.usertype.UserType
-
hashCode
- Specified by:
hashCodein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
replace
-
setParameterValues
- Specified by:
setParameterValuesin interfaceorg.hibernate.usertype.ParameterizedType
-
checkInitialization
protected final void checkInitialization()
-