Class UserKeyUserType
- java.lang.Object
-
- com.atlassian.confluence.impl.hibernate.HibernateUserType
-
- com.atlassian.confluence.user.persistence.dao.hibernate.UserKeyUserType
-
- All Implemented Interfaces:
Serializable
,org.hibernate.usertype.UserType
public class UserKeyUserType extends HibernateUserType
A Hibernate 5UserType
which allowsUserKey
objects to be persisted as mapped properties.- Since:
- 5.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserKeyUserType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
deepCopy(Object value)
boolean
equals(Object x, Object y)
static String
getStringValue(com.atlassian.sal.api.user.UserKey userKey)
Returns the actual String value that will be used as the database value for the given keyboolean
isMutable()
Object
nullSafeGetImpl(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner)
void
nullSafeSetImpl(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Class
returnedClass()
int[]
sqlTypes()
-
Methods inherited from class com.atlassian.confluence.impl.hibernate.HibernateUserType
assemble, disassemble, hashCode, nullSafeGet, nullSafeSet, replace
-
-
-
-
Method Detail
-
sqlTypes
public int[] sqlTypes()
-
returnedClass
public Class returnedClass()
-
nullSafeGetImpl
public Object nullSafeGetImpl(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeGetImpl
in classHibernateUserType
- Throws:
org.hibernate.HibernateException
SQLException
-
nullSafeSetImpl
public void nullSafeSetImpl(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeSetImpl
in classHibernateUserType
- Throws:
org.hibernate.HibernateException
SQLException
-
getStringValue
public static String getStringValue(com.atlassian.sal.api.user.UserKey userKey)
Returns the actual String value that will be used as the database value for the given key
-
isMutable
public boolean isMutable()
-
-