dsql.value
Class ConstructedResults
java.lang.Object
dsql.DMExecuted
dsql.value.Value
dsql.value.NonScalarValue
dsql.value.TableResult
dsql.value.AbstractResults
dsql.value.ConstructedResults
- All Implemented Interfaces:
- ColumnHolder, Cursor, RecordHolder
- public class ConstructedResults
- extends AbstractResults
A ConstructedResults value
Methods inherited from class dsql.value.TableResult |
equalsRecord, getBoolean, getField, getPrimaryKeys, getRecord, getRecord, getString, getTableName, printRecord, setPrimaryKeys, setPrimaryKeys, setRecord |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstructedResults
public ConstructedResults(DSQL _caller)
hasResult
public boolean hasResult()
- Specified by:
hasResult
in class AbstractResults
nextResult
public boolean nextResult()
- Specified by:
nextResult
in class AbstractResults
allreset
public void allreset()
throws ExecuteException
- Specified by:
allreset
in class AbstractResults
- Throws:
ExecuteException
reset
public void reset()
throws ExecuteException
- Throws:
ExecuteException
nextRecord
public boolean nextRecord()
throws ExecuteException
- Throws:
ExecuteException
currentRecord
public int currentRecord()
throws ExecuteException
- Throws:
ExecuteException
getRecordCount
public int getRecordCount()
throws ExecuteException
- Description copied from interface:
RecordHolder
- this function should be called with care as it can be computationaly
expensive for SQL Cursors!
- Returns:
- number of records
- Throws:
ExecuteException
gotoRecord
public void gotoRecord(int pos)
throws ExecuteException
- Parameters:
pos
- is the record position: 1 is the first record,
0 is the record before first, -1 is after the last record
- Throws:
ExecuteException
getColumn
public java.lang.Object getColumn(int i)
throws ExecuteException
- Parameters:
i
- column number (first column is 1)
- Returns:
- column value; usually a String, but can also be
a complex object, such as
XmlDataValue
.
- Throws:
ExecuteException
getColumn
public java.lang.Object getColumn(java.lang.String s)
throws ExecuteException
- Parameters:
s
- column name
- Returns:
- column value; usually a String, but can also be
a complex object, such as
XmlDataValue
.
- Throws:
ExecuteException
getColumnString
public java.lang.String getColumnString(int i)
throws ExecuteException
- Throws:
ExecuteException
getColumnString
public java.lang.String getColumnString(java.lang.String s)
throws ExecuteException
- Throws:
ExecuteException
getColumnCount
public int getColumnCount()
throws ExecuteException
- Throws:
ExecuteException
getColumnLabel
public java.lang.String getColumnLabel(int i)
throws ExecuteException
- Throws:
ExecuteException
getColumnDisplaySize
public int getColumnDisplaySize(int i)
throws ExecuteException
- Specified by:
getColumnDisplaySize
in interface ColumnHolder
- Overrides:
getColumnDisplaySize
in class TableResult
- Throws:
ExecuteException
readCurrentRecord
public java.lang.String[] readCurrentRecord()
throws ExecuteException
- Specified by:
readCurrentRecord
in class TableResult
- Throws:
ExecuteException
addTable
public void addTable(java.lang.String[] labels)
throws ExecuteException
- Throws:
ExecuteException
addRecord
public void addRecord(java.lang.String[] record)
throws ExecuteException
- Throws:
ExecuteException
getMeta
public ConstructedResults getMeta(boolean all)
throws ExecuteException
- Specified by:
getMeta
in class AbstractResults
- Parameters:
all
- if true, iterates through all results
- Throws:
ExecuteException
addCurrentResultMeta
public void addCurrentResultMeta(ConstructedResults r)
throws ExecuteException
- Specified by:
addCurrentResultMeta
in class AbstractResults
- Throws:
ExecuteException
insert
public void insert(ColumnHolder rec)
throws ExecuteException
- Specified by:
insert
in class TableResult
- Throws:
ExecuteException
deleteRecord
public void deleteRecord()
throws ExecuteException
- Specified by:
deleteRecord
in class TableResult
- Throws:
ExecuteException
update
public void update(ColumnHolder rec)
throws ExecuteException
- Specified by:
update
in class TableResult
- Throws:
ExecuteException
findColumn
protected int findColumn(java.lang.String label)
throws ExecuteException
- PROTECTED
- Specified by:
findColumn
in class TableResult
- Throws:
ExecuteException
lastTable
protected int lastTable()
getTable
protected ConstructedTable getTable(int i)
throws ExecuteException
- Throws:
ExecuteException