com.atlassian.confluence.core.persistence.hibernate
Class PropertiesType
java.lang.Object
net.sf.hibernate.type.AbstractType
net.sf.hibernate.type.NullableType
net.sf.hibernate.type.MutableType
com.atlassian.confluence.core.persistence.hibernate.PropertiesType
- All Implemented Interfaces:
- java.io.Serializable, net.sf.hibernate.type.Type
public class PropertiesType
- extends net.sf.hibernate.type.MutableType
Handle the persistence of a properties object by converting the contents of the properties object to and
from a string.
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
deepCopyNotNull(java.lang.Object value)
|
boolean |
equals(java.lang.Object a,
java.lang.Object b)
|
java.lang.Object |
fromStringValue(java.lang.String xml)
|
java.lang.Object |
get(java.sql.ResultSet rs,
java.lang.String name)
|
java.lang.String |
getName()
|
java.lang.Class |
getReturnedClass()
|
boolean |
hasNiceEquals()
Deprecated. |
void |
set(java.sql.PreparedStatement st,
java.lang.Object value,
int index)
|
int |
sqlType()
|
java.lang.String |
toString(java.lang.Object value)
|
Methods inherited from class net.sf.hibernate.type.MutableType |
copy, isMutable |
Methods inherited from class net.sf.hibernate.type.NullableType |
deepCopy, fromString, getColumnSpan, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, sqlTypes, toString |
Methods inherited from class net.sf.hibernate.type.AbstractType |
assemble, disassemble, equals, hashCode, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isObjectType, isPersistentCollectionType, resolveIdentifier |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
PropertiesType
public PropertiesType()
get
public java.lang.Object get(java.sql.ResultSet rs,
java.lang.String name)
throws java.sql.SQLException
- Specified by:
get
in class net.sf.hibernate.type.NullableType
- Throws:
java.sql.SQLException
getReturnedClass
public java.lang.Class getReturnedClass()
set
public void set(java.sql.PreparedStatement st,
java.lang.Object value,
int index)
throws java.sql.SQLException
- Specified by:
set
in class net.sf.hibernate.type.NullableType
- Throws:
java.sql.SQLException
sqlType
public int sqlType()
- Specified by:
sqlType
in class net.sf.hibernate.type.NullableType
getName
public java.lang.String getName()
toString
public java.lang.String toString(java.lang.Object value)
- Specified by:
toString
in class net.sf.hibernate.type.NullableType
fromStringValue
public java.lang.Object fromStringValue(java.lang.String xml)
- Specified by:
fromStringValue
in class net.sf.hibernate.type.NullableType
equals
public boolean equals(java.lang.Object a,
java.lang.Object b)
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
hasNiceEquals
public boolean hasNiceEquals()
- Deprecated.
- (Suppress compiler error)
- Specified by:
hasNiceEquals
in interface net.sf.hibernate.type.Type
- Overrides:
hasNiceEquals
in class net.sf.hibernate.type.MutableType
deepCopyNotNull
public java.lang.Object deepCopyNotNull(java.lang.Object value)
throws net.sf.hibernate.HibernateException
- Specified by:
deepCopyNotNull
in class net.sf.hibernate.type.NullableType
- Throws:
net.sf.hibernate.HibernateException
Copyright © 2003-2010 Atlassian. All Rights Reserved.