com.pmease.quickbuild.plugin.report.engine.datatype
Class AbstractCollectionType

java.lang.Object
  extended by com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType
      extended by com.pmease.quickbuild.plugin.report.engine.datatype.AbstractCollectionType
All Implemented Interfaces:
DataType, TypedObject, java.io.Serializable
Direct Known Subclasses:
HashSetType, ListType

public abstract class AbstractCollectionType
extends AbstractDataType

See Also:
Serialized Form

Field Summary
protected  char delimiter
           
protected  DataType itemType
           
 
Fields inherited from class com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType
CSV_FORMAT, nodeType, XML_FORMAT
 
Constructor Summary
AbstractCollectionType()
           
AbstractCollectionType(DataType itemType)
           
 
Method Summary
 java.lang.Object asDbObject(java.lang.Object original)
           
 java.lang.String asString(java.lang.Object value, java.lang.String pattern, java.util.Locale locale)
           
abstract  java.lang.String asString(java.lang.Object value, java.lang.String pattern, java.lang.String itemPattern, java.util.Locale locale)
           
 int compare(java.lang.Object x, java.lang.Object y)
           
 boolean equals(java.lang.Object other)
           
 java.lang.Object fromDbObject(java.sql.ResultSet rs, java.lang.String columnName)
           
 java.lang.Object fromString(java.lang.String str, java.lang.String pattern, java.util.Locale locale)
           
abstract  java.lang.Object fromString(java.lang.String str, java.lang.String pattern, java.lang.String itemPattern, java.util.Locale locale)
           
 void fromXML(org.dom4j.Element node)
           
 DataType getItemType()
           
 java.lang.String getSqlType()
           
 int hashCode()
           
 boolean isCollectionType()
           
 java.lang.Object readFromNode(org.dom4j.Element node, java.lang.String nodeName, java.util.Locale locale)
           
 void setItemType(DataType itemType)
           
 void toXML(org.dom4j.Element parent)
           
 void writeToNode(org.dom4j.Element parentNode, java.lang.String nodeName, java.lang.Object value, java.util.Locale locale)
           
 
Methods inherited from class com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType
asString, asString, fromString, fromString, getDefaultValue, getNodeType, getReadFormat, getWriteFormat, isEqual, isIdType, isNumericType, isPrimitiveType, newInstance, setNodeType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.pmease.quickbuild.plugin.report.engine.extensionpoint.DataType
getDefaultPattern, getReturnedClass, typeCast
 
Methods inherited from interface com.pmease.quickbuild.plugin.report.engine.extensionpoint.TypedObject
getType
 

Field Detail

itemType

protected DataType itemType

delimiter

protected char delimiter
Constructor Detail

AbstractCollectionType

public AbstractCollectionType()

AbstractCollectionType

public AbstractCollectionType(DataType itemType)
Method Detail

asString

public abstract java.lang.String asString(java.lang.Object value,
                                          java.lang.String pattern,
                                          java.lang.String itemPattern,
                                          java.util.Locale locale)

fromString

public abstract java.lang.Object fromString(java.lang.String str,
                                            java.lang.String pattern,
                                            java.lang.String itemPattern,
                                            java.util.Locale locale)

readFromNode

public java.lang.Object readFromNode(org.dom4j.Element node,
                                     java.lang.String nodeName,
                                     java.util.Locale locale)
Specified by:
readFromNode in interface DataType
Overrides:
readFromNode in class AbstractDataType

writeToNode

public void writeToNode(org.dom4j.Element parentNode,
                        java.lang.String nodeName,
                        java.lang.Object value,
                        java.util.Locale locale)
Specified by:
writeToNode in interface DataType
Overrides:
writeToNode in class AbstractDataType

fromXML

public void fromXML(org.dom4j.Element node)
Specified by:
fromXML in interface DataType
Overrides:
fromXML in class AbstractDataType

compare

public int compare(java.lang.Object x,
                   java.lang.Object y)
Specified by:
compare in interface DataType
Overrides:
compare in class AbstractDataType

toXML

public void toXML(org.dom4j.Element parent)
Specified by:
toXML in interface DataType
Overrides:
toXML in class AbstractDataType

fromString

public java.lang.Object fromString(java.lang.String str,
                                   java.lang.String pattern,
                                   java.util.Locale locale)

asString

public java.lang.String asString(java.lang.Object value,
                                 java.lang.String pattern,
                                 java.util.Locale locale)

isCollectionType

public boolean isCollectionType()
Specified by:
isCollectionType in interface DataType
Overrides:
isCollectionType in class AbstractDataType

getSqlType

public java.lang.String getSqlType()

asDbObject

public java.lang.Object asDbObject(java.lang.Object original)

fromDbObject

public java.lang.Object fromDbObject(java.sql.ResultSet rs,
                                     java.lang.String columnName)

getItemType

public DataType getItemType()

setItemType

public void setItemType(DataType itemType)

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class AbstractDataType

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractDataType


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.