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

java.lang.Object
  extended by com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType
      extended by com.pmease.quickbuild.plugin.report.engine.datatype.AbstractNumericType
          extended by com.pmease.quickbuild.plugin.report.engine.datatype.LongType
              extended by com.pmease.quickbuild.plugin.report.engine.datatype.DurationType
All Implemented Interfaces:
DataType, TypedObject, java.io.Serializable

public class DurationType
extends LongType

See Also:
Serialized Form

Field Summary
static java.lang.String FMT_ISO
           
static java.lang.String FMT_SHORT_WORD
           
static java.lang.String FMT_WORD
           
 
Fields inherited from class com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType
CSV_FORMAT, nodeType, XML_FORMAT
 
Constructor Summary
DurationType()
           
 
Method Summary
 java.lang.String asString(java.lang.Object value, java.lang.String pattern, java.util.Locale locale)
           
 java.lang.Object fromString(java.lang.String str, java.lang.String pattern, java.util.Locale locale)
           
 java.lang.String getDefaultPattern()
           
protected  org.joda.time.format.PeriodFormatter getFormatter(java.lang.String pattern, java.util.Locale locale)
           
 java.lang.String getType()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class com.pmease.quickbuild.plugin.report.engine.datatype.LongType
fromDbObject, getDefaultValue, getReturnedClass, getSqlType, typeCast
 
Methods inherited from class com.pmease.quickbuild.plugin.report.engine.datatype.AbstractNumericType
asDbObject, isNumericType, isPrimitiveType, readFromNode, toNumber, writeToNode
 
Methods inherited from class com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType
asString, asString, compare, equals, fromString, fromString, fromXML, getNodeType, getReadFormat, getWriteFormat, hashCode, isCollectionType, isEqual, isIdType, newInstance, setNodeType, toString, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FMT_WORD

public static final java.lang.String FMT_WORD
See Also:
Constant Field Values

FMT_ISO

public static final java.lang.String FMT_ISO
See Also:
Constant Field Values

FMT_SHORT_WORD

public static final java.lang.String FMT_SHORT_WORD
See Also:
Constant Field Values
Constructor Detail

DurationType

public DurationType()
Method Detail

getType

public java.lang.String getType()
Specified by:
getType in interface TypedObject
Overrides:
getType in class LongType

asString

public java.lang.String asString(java.lang.Object value,
                                 java.lang.String pattern,
                                 java.util.Locale locale)
Specified by:
asString in interface DataType
Overrides:
asString in class LongType

getFormatter

protected org.joda.time.format.PeriodFormatter getFormatter(java.lang.String pattern,
                                                            java.util.Locale locale)

getDefaultPattern

public java.lang.String getDefaultPattern()
Specified by:
getDefaultPattern in interface DataType
Overrides:
getDefaultPattern in class LongType

fromString

public java.lang.Object fromString(java.lang.String str,
                                   java.lang.String pattern,
                                   java.util.Locale locale)
Specified by:
fromString in interface DataType
Overrides:
fromString in class LongType

main

public static void main(java.lang.String[] args)


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