|
SilverStream Application Server 3.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface describes the columns provided by a particular named band for an AgiRowCursor object or an AgiDataSource object.
Implement this interface when writing a custom AgiRowCursor intended to be available for data binding in the SilverStream designer interfaces. An AgiBandDesciptor interface will also need to be implemented when writing a data source that implements the AgiDataSource interface.
| Method Summary | |
boolean |
canQueryColumn(int index)
Return true if the specified column's value can be used in queries. |
String |
getBandName()
Get the name of the band. |
int |
getColumnCount()
Get the number of columns provided by this band. |
String |
getColumnName(int index)
Get the name of the specified column. |
char |
getColumnType(int index)
Get the type of the specified column. |
String |
getPrimaryTableName()
Return the name of the primary table for this band. |
| Method Detail |
public String getBandName()
public String getBandName()
{
return null;
}
public String getPrimaryTableName()
public String getPrimaryTableName()
{
return "Names";
}
public int getColumnCount()
public int getColumnCount()
{
return 2;
}
public String getColumnName(int index)
index - the index of the column. Column numnbers are zero-based.Column names must begin with a letter and can contain only letters, numbers, and underscores.
public String getColumnName(int index)
{
if (index == 0)
return "ID";
else if (index == 1)
return "Name";
else
throw new IllegalArgumentException();
}
public char getColumnType(int index)
index - the column index. Columns numbers are zero-based.DatatypeCodes
public Char getColumnType(int index)
{
if (index == 0)
return DatatypeCodes.TYPE_INT;
else if (index == 1)
return DatatypeCodes.TYPE_STRING;
else
throw new IllegalArgumentException();
}
public boolean canQueryColumn(int index)
index - the column index. Columns numbers are zero-based.Certain column types, such as LONGVARCHAR, are not allowed in queries. Data binding support does not require this method.
public boolean canQueryColumn(int index)
{
if (index == 0)
return true;
else if (index == 1)
return true;
else
throw new IllegalArgumentException();
}
|
SilverStream Application Server 3.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||