|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.pa.datatype.DsData
The DsData class is the abstract base class for all datatypes in this package. It defines the default behavior for all datatypes thus making the setting of the data polymorphic so that clients can dynamically create a datatype from the registry and set its data.
Field Summary | |
protected java.util.Locale |
locale
This is the locale that is associated with the data in this object. |
Constructor Summary | |
DsData()
DsData constructor. |
Method Summary | |
java.lang.Object |
clone()
This method will make a clone of this object. |
abstract void |
fetchResults(java.sql.ResultSet rs,
int col)
This method fetches the data for this object from an SQL result set. |
abstract java.lang.Object |
getData()
This method allows access to the raw data inside the object. |
java.util.Locale |
getLocale()
Get the locale associated with the data in this object. |
abstract java.lang.String |
getPresentationString()
This method returns the value of this Data object formatted for presentation. |
abstract java.lang.String |
getUnformattedData()
Get the string representation of the data before any formatting is applied. |
static DsData |
instantiate(java.lang.String className)
This method will instantiate a DsData object from it's class name. |
abstract void |
setData(java.lang.Object obj)
This method provides a polymorphic way to set the data in a DsData object. |
void |
setLocale(java.util.Locale newValue)
Set the locale to be associated with the data in this object. |
java.lang.String |
toString()
Return the presentation string for this object. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.Locale locale
Constructor Detail |
public DsData()
Method Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public abstract void fetchResults(java.sql.ResultSet rs, int col) throws java.sql.SQLException
rs
- The SQL result set.col
- The column index.public abstract java.lang.Object getData()
public java.util.Locale getLocale()
public abstract java.lang.String getPresentationString()
public abstract java.lang.String getUnformattedData()
public static DsData instantiate(java.lang.String className)
className
- The name of the derived DsData class you want to instantiate.public abstract void setData(java.lang.Object obj)
newValue
- The data to be set in the object.public void setLocale(java.util.Locale newValue)
newValue
- The locale.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |