|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object butler.sql.metadata.DefaultDatatype
public class DefaultDatatype
Constructor Summary | |
---|---|
DefaultDatatype()
|
|
DefaultDatatype(Column col)
Deprecated. Not in use |
|
DefaultDatatype(int type,
int size,
int decimals)
|
Method Summary | |
---|---|
java.lang.Object |
db2obj(java.lang.Object obj)
Converts from database format to java object format. |
Datatype |
getDatatype(Operator op)
Returns a specific datatype that should be used with the given operator. |
int |
getDecimalDigits()
|
java.text.Format |
getFormat()
Returns Format instance. |
static Datatype |
getInstance()
|
java.lang.Class |
getJavaClass()
Returns the java class that is used for this datatype. |
javax.swing.text.MaskFormatter |
getMaskFormatter()
Deprecated. Not in use |
java.util.List |
getOperators()
Returns the operators that have meaning on this datatype. |
int |
getSize()
|
int |
getType()
|
java.lang.Object |
obj2db(java.lang.Object obj)
Converts from java object format to database format. |
java.lang.String |
obj2xml(java.lang.Object obj)
Converts from java object format to xml string format. |
static Datatype |
parse(org.dom4j.Element element)
|
void |
toXML(org.xml.sax.ContentHandler handler)
Builds an xml representation of this object. |
void |
validate(java.lang.Object value)
Validated column value. |
java.lang.Object |
xml2obj(java.lang.String xml)
Converts from xml string format to java object format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDatatype()
public DefaultDatatype(Column col)
public DefaultDatatype(int type, int size, int decimals)
Method Detail |
---|
public static Datatype getInstance()
public java.text.Format getFormat() throws java.lang.Exception
Datatype
getFormat
in interface Datatype
java.lang.Exception
public java.util.List getOperators() throws java.lang.Exception
Datatype
getOperators
in interface Datatype
java.lang.Exception
public javax.swing.text.MaskFormatter getMaskFormatter() throws java.lang.Exception
java.lang.Exception
public void validate(java.lang.Object value) throws java.lang.Exception
Datatype
validate
in interface Datatype
java.lang.Exception
public java.lang.Object xml2obj(java.lang.String xml) throws java.lang.Exception
Datatype
xml2obj
in interface Datatype
java.lang.Exception
public java.lang.String obj2xml(java.lang.Object obj) throws java.lang.Exception
Datatype
obj2xml
in interface Datatype
java.lang.Exception
public java.lang.Object obj2db(java.lang.Object obj) throws java.lang.Exception
Datatype
obj2db
in interface Datatype
java.lang.Exception
public java.lang.Object db2obj(java.lang.Object obj) throws java.lang.Exception
Datatype
db2obj
in interface Datatype
java.lang.Exception
public java.lang.Class getJavaClass() throws java.lang.Exception
Datatype
getJavaClass
in interface Datatype
java.lang.Exception
public static Datatype parse(org.dom4j.Element element) throws java.lang.Exception
java.lang.Exception
public void toXML(org.xml.sax.ContentHandler handler) throws java.lang.Exception
Datatype
toXML
in interface Datatype
java.lang.Exception
public int getType() throws java.lang.Exception
getType
in interface Datatype
java.lang.Exception
public int getSize() throws java.lang.Exception
getSize
in interface Datatype
java.lang.Exception
public int getDecimalDigits() throws java.lang.Exception
getDecimalDigits
in interface Datatype
java.lang.Exception
public Datatype getDatatype(Operator op)
Datatype
getDatatype
in interface Datatype
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |