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

java.lang.Object
  extended bynet.sf.hibernate.type.AbstractType
      extended bynet.sf.hibernate.type.NullableType
          extended bynet.sf.hibernate.type.MutableType
              extended bycom.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
Throws:
SQLException

getReturnedClass

public Class getReturnedClass()

set

public void set(PreparedStatement st,
                Object value,
                int index)
         throws SQLException
Throws:
SQLException

sqlType

public int sqlType()

getName

public String getName()

toString

public String toString(Object value)

fromStringValue

public Object fromStringValue(String xml)

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)


deepCopyNotNull

public Object deepCopyNotNull(Object value)
                       throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException


Confluence is developed by Atlassian.