|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ds.fw.beans.FwBaseBean
The FwBaseBean class is the base (parent) class for all Beans. This class used for transfer information between servlets controler and jsp view part of MVC architecture. FwBaseBean implements the model. Authors: Boyan Bontchev, Slav Danev and Nikolay S.
| Field Summary | |
static boolean |
DEBUG_QUERY
|
protected com.ds.fw.types.FwHashVector |
result
This FwHashVector holds all information in the bean. |
| Constructor Summary | |
FwBaseBean()
The constructor of this bean. |
|
| Method Summary | |
void |
clear()
Clears the resultset FwHashVector |
int |
findIndexOf(java.lang.String key,
java.lang.Object elem)
Returns the index of an element in a column |
java.lang.Object |
get(long col,
long k)
|
java.lang.Object |
get(java.lang.String key)
Gets the object at position 0 (i.e the first Object) in the Vector corresponding to the column Key. |
java.lang.Object |
get(java.lang.String key,
long k)
Basic get() method. |
java.math.BigDecimal |
getBigDecimal(java.lang.String key,
long k)
Gets the k'th element in the column Key as an long. |
java.util.Vector |
getColumn(long col)
|
java.util.Vector |
getColumn(java.lang.String key)
Gets the column (as a Vector) corresponding to Key |
java.util.Vector |
getColumnNames()
|
java.util.Date |
getDate(java.lang.String key,
long k)
Gets the k'th element in the column Key as an Date. |
java.lang.Double |
getDouble(java.lang.String key,
long k)
Gets the k'th element in the column Key as an double. |
java.lang.Float |
getFloat(java.lang.String key,
long k)
Gets the k'th element in the column Key as an int. |
int |
getInt(java.lang.String key,
long k)
Gets the k'th element in the column Key as an int. |
long |
getLong(java.lang.String key,
long k)
Gets the k'th element in the column Key as an long. |
java.lang.Number |
getNumber(java.lang.String key,
long k)
Gets the k'th element in the column Key as an long. |
int |
getNumRows()
Returns the size of the dataset |
int |
getNumRows(java.lang.String key)
Returns the size of the dataset of a column corresponding to Key |
com.ds.fw.types.FwHashVector |
getResult()
Returns the resultset FwHashVector |
java.lang.String |
getString(java.lang.String key,
long k)
Gets the k'th element of the Vector pointed by this key and returns it as a String. |
int |
lastIndexOf(java.lang.String key,
java.lang.Object elem)
Returns the last index of an element in a column |
void |
set(long col,
java.lang.Object set,
long k)
|
void |
set(java.lang.String key,
java.lang.Object set)
Sets the first Object in the column Key |
void |
set(java.lang.String key,
java.lang.Object set,
long k)
Basic set method. |
void |
setBigDecimal(java.lang.String key,
java.math.BigDecimal bd,
long k)
Sets i as an BigDecimal object at position k corresponding to Key |
void |
setColumn(long col,
java.util.Vector column)
|
void |
setColumn(java.lang.String key,
java.util.Vector column)
Sets the column corresponding to Key to a given vector. |
void |
setDate(java.lang.String key,
java.util.Date date,
long k)
Sets date as an Date object at position k corresponding to Key |
void |
setDouble(java.lang.String key,
double i,
long k)
Sets i as an Double object at position k corresponding to Key |
void |
setFloat(java.lang.String key,
float i,
long k)
Sets i as an Float object at position k corresponding to Key |
void |
setInt(java.lang.String key,
int i,
long k)
Sets i as an Integer object at position k corresponding to Key |
void |
setLong(java.lang.String key,
long i,
long k)
Sets i as an Long object at position k corresponding to Key |
void |
setNumber(java.lang.String key,
java.lang.Number n,
long k)
Sets i as an Number object at position k corresponding to Key |
void |
setResult(com.ds.fw.types.FwHashVector r)
Sets the resultset FwHashVector to an appropriate value |
void |
setString(java.lang.String key,
java.lang.String value,
long k)
Sets i as an String object at position k corresponding to Key |
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean DEBUG_QUERY
protected com.ds.fw.types.FwHashVector result
| Constructor Detail |
public FwBaseBean()
| Method Detail |
public java.lang.Object get(java.lang.String key,
long k)
key - the column namek - the position of the Object in the column Vector
public java.lang.Object get(long col,
long k)
public void set(java.lang.String key,
java.lang.Object set,
long k)
key - the column nameset - the Object to be set in the column's Vectork - the position where the Object is to be set at.
public void set(long col,
java.lang.Object set,
long k)
public java.lang.Object get(java.lang.String key)
key - the column name
public void set(java.lang.String key,
java.lang.Object set)
key - the column nameset - the Object to be setpublic java.util.Vector getColumn(java.lang.String key)
public java.util.Vector getColumn(long col)
public void setColumn(java.lang.String key,
java.util.Vector column)
key - the column namecolumn - the column to insert at key
public void setColumn(long col,
java.util.Vector column)
public java.lang.String getString(java.lang.String key,
long k)
key - the column namek - the position in the Vector
public void setString(java.lang.String key,
java.lang.String value,
long k)
key - the column namek - the integer value
public int getInt(java.lang.String key,
long k)
throws java.lang.ClassCastException,
java.lang.NullPointerException
key - the column name
java.lang.ClassCastException - in case the corresponding Object is not of class Integer.
java.lang.NullPointerException - in case the corresponding Object is null.
public void setInt(java.lang.String key,
int i,
long k)
key - the column namei - the integer valuek - the integer value
public java.lang.Float getFloat(java.lang.String key,
long k)
throws java.lang.ClassCastException
key - the column name
java.lang.ClassCastException - in case the corresponding Object is not of class Float.
public void setFloat(java.lang.String key,
float i,
long k)
key - the column namei - the float valuek - the integer value
public java.lang.Double getDouble(java.lang.String key,
long k)
throws java.lang.ClassCastException
key - the column name
java.lang.ClassCastException - in case the corresponding Object is not of class Double.
public void setDouble(java.lang.String key,
double i,
long k)
key - the column namei - the double valuek - the integer value
public java.util.Date getDate(java.lang.String key,
long k)
throws java.lang.ClassCastException
key - the column name
java.lang.ClassCastException - in case the corresponding Object is not of class Date.
public void setDate(java.lang.String key,
java.util.Date date,
long k)
key - the column namedate - the Date valuek - the integer value
public long getLong(java.lang.String key,
long k)
throws java.lang.ClassCastException
key - the column name
java.lang.ClassCastException - in case the corresponding Object is not of class Long.
public void setLong(java.lang.String key,
long i,
long k)
key - the column namei - the long valuek - the integer value
public java.math.BigDecimal getBigDecimal(java.lang.String key,
long k)
throws java.lang.ClassCastException
key - the column name
java.lang.ClassCastException - in case the corresponding Object is not of class BigDecimal.
public void setBigDecimal(java.lang.String key,
java.math.BigDecimal bd,
long k)
key - the column namebd - the long valuek - the integer value
public java.lang.Number getNumber(java.lang.String key,
long k)
throws java.lang.ClassCastException
key - the column name
java.lang.ClassCastException - in case the corresponding Object is not of class Number.
public void setNumber(java.lang.String key,
java.lang.Number n,
long k)
key - the column namen - the long valuek - the integer valuepublic int getNumRows(java.lang.String key)
key - the column namepublic int getNumRows()
public int size()
public com.ds.fw.types.FwHashVector getResult()
public void setResult(com.ds.fw.types.FwHashVector r)
r - the FwHashVector to set
public int lastIndexOf(java.lang.String key,
java.lang.Object elem)
key - the column nameelem - the element to search for
public int findIndexOf(java.lang.String key,
java.lang.Object elem)
key - the column nameelem - the element to search forpublic void clear()
public java.util.Vector getColumnNames()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||