|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbutler.sql.metadata.DefaultDatatype
butler.sql.metadata.DateDatatype
public class DateDatatype
Implementation of Datatype for dates.
| Constructor Summary | |
|---|---|
DateDatatype(boolean timestamp)
|
|
DateDatatype(boolean timestamp,
boolean timeOfDay)
|
|
DateDatatype(boolean timestamp,
boolean timeOfDay,
java.text.Format format)
|
|
DateDatatype(boolean timestamp,
java.text.Format format)
|
|
DateDatatype(int type)
|
|
DateDatatype(int type,
boolean timeOfDay)
|
|
DateDatatype(int type,
boolean timeOfDay,
java.text.Format format)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
db2obj(java.lang.Object obj)
Converts from database format to java object format. |
java.text.Format |
getFormat()
Returns Format instance. |
java.lang.Class |
getJavaClass()
Returns the java class that is used for this datatype. |
int |
getSize()
|
int |
getType()
|
boolean |
isTimeOfDay()
|
boolean |
isTimestamp()
|
java.lang.Object |
obj2db(java.lang.Object obj)
Converts from java object format to database format. |
java.lang.Object |
xml2obj(java.lang.String xml)
Converts from xml string format to java object format. |
| Methods inherited from class butler.sql.metadata.DefaultDatatype |
|---|
getDatatype, getDecimalDigits, getInstance, getMaskFormatter, getOperators, obj2xml, parse, toXML, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateDatatype(boolean timestamp)
public DateDatatype(boolean timestamp,
java.text.Format format)
public DateDatatype(boolean timestamp,
boolean timeOfDay)
public DateDatatype(int type)
public DateDatatype(int type,
boolean timeOfDay)
public DateDatatype(int type,
boolean timeOfDay,
java.text.Format format)
public DateDatatype(boolean timestamp,
boolean timeOfDay,
java.text.Format format)
| Method Detail |
|---|
public java.text.Format getFormat()
throws java.lang.Exception
Datatype
getFormat in interface DatatypegetFormat in class DefaultDatatypejava.lang.Exception
public java.lang.Object xml2obj(java.lang.String xml)
throws java.lang.Exception
Datatype
xml2obj in interface Datatypexml2obj in class DefaultDatatypejava.lang.Exception
public java.lang.Object obj2db(java.lang.Object obj)
throws java.lang.Exception
Datatype
obj2db in interface Datatypeobj2db in class DefaultDatatypejava.lang.Exception
public java.lang.Object db2obj(java.lang.Object obj)
throws java.lang.Exception
Datatype
db2obj in interface Datatypedb2obj in class DefaultDatatypejava.lang.Exceptionpublic boolean isTimestamp()
public boolean isTimeOfDay()
public java.lang.Class getJavaClass()
throws java.lang.Exception
Datatype
getJavaClass in interface DatatypegetJavaClass in class DefaultDatatypejava.lang.Exception
public int getType()
throws java.lang.Exception
getType in interface DatatypegetType in class DefaultDatatypejava.lang.Exceptionpublic int getSize()
getSize in interface DatatypegetSize in class DefaultDatatype
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||