com.atlassian.confluence.core.persistence.hibernate
Class PropertiesType

java.lang.Object
  extended by net.sf.hibernate.type.AbstractType
      extended by net.sf.hibernate.type.NullableType
          extended by net.sf.hibernate.type.MutableType
              extended by com.atlassian.confluence.core.persistence.hibernate.PropertiesType
All Implemented Interfaces:
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

Constructor Summary
PropertiesType()
           
 
Method Summary
 Object deepCopyNotNull(Object value)
           
 boolean equals(Object a, Object b)
           
 Object fromStringValue(String xml)
           
 Object get(ResultSet rs, String name)
           
 String getName()
           
 Class getReturnedClass()
           
 boolean hasNiceEquals()
          Deprecated.  
 void set(PreparedStatement st, Object value, int index)
           
 int sqlType()
           
 String toString(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
 

Constructor Detail

PropertiesType

public PropertiesType()
Method Detail

get

public Object get(ResultSet rs,
                  String name)
           throws SQLException
Specified by:
get in class net.sf.hibernate.type.NullableType
Throws:
SQLException

getReturnedClass

public Class getReturnedClass()

set

public void set(PreparedStatement st,
                Object value,
                int index)
         throws SQLException
Specified by:
set in class net.sf.hibernate.type.NullableType
Throws:
SQLException

sqlType

public int sqlType()
Specified by:
sqlType in class net.sf.hibernate.type.NullableType

getName

public String getName()

toString

public String toString(Object value)
Specified by:
toString in class net.sf.hibernate.type.NullableType

fromStringValue

public Object fromStringValue(String xml)
Specified by:
fromStringValue in class net.sf.hibernate.type.NullableType

equals

public boolean equals(Object a,
                      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 Object deepCopyNotNull(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.