|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jtri.base.BaseDTO
The Data Transfer Object is the base class for each row of information in a form. This class holds paging information reference, holds reference to paged subset of data, and implements default conversion from string to java datatypes based on the converter data. This also has state information for inclusion,changed state.
| Constructor Summary | |
BaseDTO()
|
|
| Method Summary | |
static void |
buildPageInfos(PageStructure psf,
IPagedInfoForm form,
Row parent)
|
java.lang.Object |
convertProperty(java.lang.String prop)
convert a property to the the business object object |
void |
fromValueObject(java.lang.Object vo)
|
static void |
fromValueObjects(PageStructure ps,
java.util.List forms,
java.util.Collection vos)
|
java.lang.String |
get_status()
|
abstract java.util.Map |
getConverter()
Return a map of property->FieldMapping. |
PageInfo |
getPageInfo(java.lang.String colName)
|
java.util.Map |
getPageInfos()
|
boolean |
hasChanged()
|
boolean |
is_removed()
|
static boolean |
isReadable(java.lang.Object vo,
java.lang.String prop)
|
static void |
processPageInfo(PageStructure psf,
java.lang.Object form)
|
PageStructure |
readPageStructure()
|
static boolean |
removeNew(java.util.List infos,
IPagedInfoForm iform)
|
void |
set_removed(boolean stat)
|
void |
set_status(java.lang.String stat)
|
void |
setPageInfo(java.lang.String colName,
PageInfo info)
|
void |
setPageInfos(java.util.HashMap map)
|
java.util.Map |
toMap()
|
java.lang.String |
toString()
|
static java.util.List |
toValueObjects(PageStructure ps,
java.lang.Class pclass,
java.util.List forms)
|
void |
unconvertProperty(java.lang.String prop,
java.lang.Object value)
|
void |
writePageStructure(PageStructure structure)
secure this method against instrospection attack |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BaseDTO()
| Method Detail |
public void set_status(java.lang.String stat)
public java.lang.String get_status()
public void set_removed(boolean stat)
public boolean is_removed()
public java.lang.Object convertProperty(java.lang.String prop)
throws java.lang.Exception
IMapped
convertProperty in interface IMappedprop -
java.lang.Exception
public void unconvertProperty(java.lang.String prop,
java.lang.Object value)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map toMap()
public void fromValueObject(java.lang.Object vo)
public abstract java.util.Map getConverter()
IMapped
getConverter in interface IMapped
public static void processPageInfo(PageStructure psf,
java.lang.Object form)
throws java.lang.Exception
java.lang.Exception
public static boolean removeNew(java.util.List infos,
IPagedInfoForm iform)
throws java.lang.Exception
java.lang.Exception
public static void buildPageInfos(PageStructure psf,
IPagedInfoForm form,
Row parent)
throws java.lang.Exception
java.lang.Exception
public static java.util.List toValueObjects(PageStructure ps,
java.lang.Class pclass,
java.util.List forms)
throws java.lang.Exception
java.lang.Exception
public boolean hasChanged()
throws java.lang.Exception
java.lang.Exception
public static void fromValueObjects(PageStructure ps,
java.util.List forms,
java.util.Collection vos)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map getPageInfos()
public void setPageInfos(java.util.HashMap map)
map -
public void setPageInfo(java.lang.String colName,
PageInfo info)
setPageInfo in interface IPagedInfoFormpublic PageInfo getPageInfo(java.lang.String colName)
getPageInfo in interface IPagedInfoFormpublic PageStructure readPageStructure()
public void writePageStructure(PageStructure structure)
structure - public java.lang.String toString()
public static boolean isReadable(java.lang.Object vo,
java.lang.String prop)
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||