Package de.xima.fc.security.encryption
Class FCEncryptedIntegerType
- java.lang.Object
-
- de.xima.fc.security.encryption.FCEncryptedIntegerType
-
- All Implemented Interfaces:
IFcEncryptedType,org.hibernate.usertype.ParameterizedType,org.hibernate.usertype.UserType
public class FCEncryptedIntegerType extends Object implements IFcEncryptedType, org.hibernate.usertype.ParameterizedType
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOGstatic StringNAMEstatic StringPARAM_DEFAULT_VALUE
-
Constructor Summary
Constructors Constructor Description FCEncryptedIntegerType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectassemble(Serializable cached, Object owner)IntegerconvertToObject(String value)StringconvertToString(Object object)ObjectdeepCopy(Object value)Serializabledisassemble(Object value)booleanequals(Object x, Object y)EFcEncryptionScopegetEncryptionScope()protected IDBStringEncryptorgetEncryptor()inthashCode(Object x)booleanisMutable()ObjectnullSafeGet(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)Objectreplace(Object original, Object target, Object owner)ClassreturnedClass()voidsetParameterValues(Properties parameters)int[]sqlTypes()
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
PARAM_DEFAULT_VALUE
public static final String PARAM_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Method Detail
-
assemble
public Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
- Specified by:
assemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
deepCopy
public Object deepCopy(Object value) throws org.hibernate.HibernateException
- Specified by:
deepCopyin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
disassemble
public Serializable disassemble(Object value) throws org.hibernate.HibernateException
- Specified by:
disassemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
equals
public boolean equals(Object x, Object y) throws org.hibernate.HibernateException
- Specified by:
equalsin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
getEncryptionScope
public EFcEncryptionScope getEncryptionScope()
- Specified by:
getEncryptionScopein interfaceIFcEncryptedType
-
hashCode
public int hashCode(Object x) throws org.hibernate.HibernateException
- Specified by:
hashCodein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfaceorg.hibernate.usertype.UserType
-
nullSafeGet
public Object nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeGetin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateExceptionSQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeSetin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateExceptionSQLException
-
replace
public Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException
- Specified by:
replacein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
returnedClass
public Class returnedClass()
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.UserType
-
setParameterValues
public void setParameterValues(Properties parameters)
- Specified by:
setParameterValuesin interfaceorg.hibernate.usertype.ParameterizedType
-
sqlTypes
public int[] sqlTypes()
- Specified by:
sqlTypesin interfaceorg.hibernate.usertype.UserType
-
getEncryptor
protected IDBStringEncryptor getEncryptor()
-
-