|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.alphadisplaytag.util.BeanListDb
BeanListDb creates a Virtual Database for objects stored in a List.
Features:
1. Reflection is used to find all the accessor methods (getXXX) for the object stored in the list.
2. Using these found accessor methods, the virtual database can be keyed and accessed base on any of the
found columns.
A default column is automatically assigned if the key accessor
method, key column, is not defined.
| Constructor Summary | |
BeanListDb()
Default constructor. |
|
BeanListDb(java.util.List list)
From the bean object, get the accessor methods, set the list size, get the default key and create a list containing the object keys (accessor methods). |
|
| Method Summary | |
java.lang.String |
getDefaultColumn()
If no default column is provided the first string accessor method is retrieve. |
java.lang.String |
getKeyColumn()
Get the key column. |
java.util.List |
getList()
Get the list of bean object. |
java.util.List |
getListKeys()
Get the accessor methods in a list |
java.util.List |
getListKeys(java.lang.String column)
Create the accessor methods (key columns ) as a list. |
int |
getListSize()
Get the list size. |
java.lang.String |
getObjectAccessors()
Get the accessor methods as a string produced by reflections access formatted as [ column1, ..., columnx ]. |
boolean |
isValidColumn(java.lang.String column)
Is the column part of the bean object in the list. |
void |
setList(java.util.List list)
Set the list and create the accessor methods. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BeanListDb()
public BeanListDb(java.util.List list)
throws java.lang.Exception
| Method Detail |
public void setList(java.util.List list)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getObjectAccessors()
public java.util.List getListKeys()
public java.util.List getListKeys(java.lang.String column)
throws java.lang.Exception
column - The accessor method (key column) in the object.
java.lang.Exceptionpublic java.lang.String getKeyColumn()
public int getListSize()
public java.util.List getList()
public java.lang.String getDefaultColumn()
public boolean isValidColumn(java.lang.String column)
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
My Home Page. Contact me at: chauvetp@hotmail.com.
I am alway looking for Java/J2EE work and would appreciate the business.
Some of my design is inspired by the original display tag <display:*> code.
Please go to http://displaytag.sourceforge.net/ for details
on the <display:*> tag.
Copyright © 2004 Aiki Innovations Inc. Permission is granted to reuse and distribute for commercial or personal use if no extensive monetary gain is received. Java and the Java Standard Tag Library are programming languages owed by Sun Microsystems, Inc: http://java.sun.com/products/jsp/jstl/