Package de.xima.fc.security.encryption
Class FCEncryptedStringType
java.lang.Object
de.xima.fc.security.encryption.FCEncryptedStringType
- All Implemented Interfaces:
org.hibernate.usertype.ParameterizedType
,org.hibernate.usertype.UserType
- Direct Known Subclasses:
FormDataEncryptedStringType
public class FCEncryptedStringType
extends Object
implements org.hibernate.usertype.UserType, org.hibernate.usertype.ParameterizedType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble
(Serializable cached, Object owner) convertToString
(Object object) disassemble
(Object value) boolean
protected IDBStringEncryptor
int
boolean
nullSafeGet
(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) void
nullSafeSet
(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) void
setParameterValues
(Properties parameters) int[]
sqlTypes()
-
Field Details
-
NAME
- See Also:
-
PARAM_DEFAULT_VALUE
- See Also:
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
FCEncryptedStringType
public FCEncryptedStringType()
-
-
Method Details
-
returnedClass
- Specified by:
returnedClass
in interfaceorg.hibernate.usertype.UserType
-
sqlTypes
public int[] sqlTypes()- Specified by:
sqlTypes
in interfaceorg.hibernate.usertype.UserType
-
equals
- Specified by:
equals
in interfaceorg.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
-
deepCopy
- Specified by:
deepCopy
in interfaceorg.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
-
assemble
- Specified by:
assemble
in interfaceorg.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
-
disassemble
- Specified by:
disassemble
in interfaceorg.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
-
isMutable
public boolean isMutable()- Specified by:
isMutable
in interfaceorg.hibernate.usertype.UserType
-
hashCode
- Specified by:
hashCode
in interfaceorg.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
-
replace
public Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException - Specified by:
replace
in interfaceorg.hibernate.usertype.UserType
- Throws:
org.hibernate.HibernateException
-
convertToString
-
getEncryptor
-
setParameterValues
- Specified by:
setParameterValues
in interfaceorg.hibernate.usertype.ParameterizedType
-