butler.sql.metadata
Class MoneyDatatype

java.lang.Object
  extended by butler.sql.metadata.DefaultDatatype
      extended by butler.sql.metadata.StringDatatype
          extended by butler.sql.metadata.NumericDatatype
              extended by butler.sql.metadata.MoneyDatatype
All Implemented Interfaces:
Datatype

public class MoneyDatatype
extends NumericDatatype

Author:
Fredrik Bertilsson

Nested Class Summary
 
Nested classes/interfaces inherited from class butler.sql.metadata.StringDatatype
StringDatatype.StringLikeDatatype
 
Field Summary
 
Fields inherited from class butler.sql.metadata.StringDatatype
_maxLength, _minLength, _partialRegex, _regex
 
Constructor Summary
MoneyDatatype()
           
 
Method Summary
 java.text.Format getFormat()
          Returns Format instance.
 java.lang.Object xml2obj(java.lang.String str)
          Converts from xml string format to java object format.
 
Methods inherited from class butler.sql.metadata.NumericDatatype
db2obj, getDecimalDigits, getJavaClass, getMaxLength, getPartialRegex, getRegex, getSize, getType, validate
 
Methods inherited from class butler.sql.metadata.StringDatatype
format, getDatatype, getLikeDatatype, getMinLength, isTrim, isTruncate, obj2db, parseStringDatatype, setTrim, setTruncate, toXML
 
Methods inherited from class butler.sql.metadata.DefaultDatatype
getInstance, getMaskFormatter, getOperators, obj2xml, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoneyDatatype

public MoneyDatatype()
              throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getFormat

public java.text.Format getFormat()
                           throws java.lang.Exception
Description copied from interface: Datatype
Returns Format instance.

Specified by:
getFormat in interface Datatype
Overrides:
getFormat in class NumericDatatype
Throws:
java.lang.Exception

xml2obj

public java.lang.Object xml2obj(java.lang.String str)
                         throws java.lang.Exception
Description copied from interface: Datatype
Converts from xml string format to java object format.

Specified by:
xml2obj in interface Datatype
Overrides:
xml2obj in class NumericDatatype
Throws:
java.lang.Exception