|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class describes the methods available from java class when accessing an IPS query or list object. It also defines the methods that must be implemented by a 3rd parting attempting to construct and register a list object for using within an IPS xml page.
Field Summary | |
static int |
first
|
static int |
gotorow
|
static int |
last
|
static int |
next
************************************************************ Navigator method that must be implemented by developers creating their own CS compatable IList objects; these methods are used internally by CS for navigation and data interogation ************************************************************* |
static int |
prev
|
Method Summary | |
boolean |
atEnd()
Return whether this list is at the last row (at the end) of the rows of data. |
IList |
clone(java.lang.String newname)
Normally used internally by CS server to shallow copy a list object; return null from a user defined list object if support isn't implemented or desired. |
int |
currentRow()
Returns the number of the current row of this list. |
void |
flush()
Flushes a list object, destroying any backing data store. |
java.lang.String |
getColumnName(int i)
Retrieves the name of the column at an offset, counting from 0 (zero). |
byte[] |
getFileData(java.lang.String columname)
Returns the data contained in a referenced data file. |
java.lang.String |
getFileString(java.lang.String columname)
Returns the string data contained in a referenced data file. |
java.lang.String |
getIndirectColumnName(int index)
Supply the upload column by index; this is normally only used by internal IPS generates list objects for url columns ie upload datasource columns. |
java.lang.String |
getName()
Retrieves the corresponding XML name of this list. |
java.lang.Object |
getObject(java.lang.String colname)
Get an object from a column; similar to above but can return list-specific data. |
java.lang.String |
getValue(java.lang.String columname)
Retrieves the value of a named column for the current row. |
boolean |
hasData()
Checks if the list contains any data. |
boolean |
moveTo(int i)
Moves the list to a given row number. |
boolean |
moveToRow(int how,
int v)
Move to a new row given a specific command |
int |
numColumns()
Retrieves the number of columns in the list. |
int |
numIndirectColumns()
Return a count of columns which are meant to be indirect data pointers; normally only used by internal CS ilist objects so the default implementation for a user-defined ilist should return 0 |
int |
numRows()
Returns the number of rows in a list. |
void |
rename(java.lang.String newname)
Allow the renaming of a list - used internally by CS; unless renaming is UNDESIRED use an implementation similar to : public void rename(String newname) {mName=newname;} |
boolean |
stringInList(java.lang.String item)
Internal CS function; 1 column lists may choose to implement whether a given value is in any row. |
Field Detail |
public static final int next
public static final int prev
public static final int first
public static final int last
public static final int gotorow
Method Detail |
public java.lang.String getName()
public boolean hasData()
public int numColumns()
public int currentRow()
public java.lang.String getValue(java.lang.String columname) throws java.lang.NoSuchFieldException
columname
- The name of the column to
get the results for.
java.lang.NoSuchFieldException
public java.lang.Object getObject(java.lang.String colname) throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public byte[] getFileData(java.lang.String columname) throws java.lang.IllegalArgumentException, java.lang.NoSuchFieldException
columname
- The name of the column.
java.lang.IllegalArgumentException
java.lang.NoSuchFieldException
public java.lang.String getFileString(java.lang.String columname) throws java.lang.NoSuchFieldException
columname
- The name of the column.
java.lang.NoSuchFieldException
public void flush()
public java.lang.String getColumnName(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- The offset column number.
java.lang.ArrayIndexOutOfBoundsException
public int numRows()
public boolean moveTo(int i)
i
- The row number, numbered from one.
public boolean atEnd()
public boolean moveToRow(int how, int v)
how
- commandv
- value of the new row if how is gotorow
public int numIndirectColumns()
public java.lang.String getIndirectColumnName(int index)
public IList clone(java.lang.String newname)
public void rename(java.lang.String newname)
public boolean stringInList(java.lang.String item)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |