DataSetIterator IteratorAggregate::getIterator ( ) |
Return iterator (for IteratorAggregate interface). This allows this class to be used in a foreach() loop.
Reimplemented in SQLiteResultSet. |
ResultSet IteratorAggregate::resultSet ( ) |
Gets the ResultSet for this DataSet
|
boolean IteratorAggregate::allRecordsRetrieved ( ) |
Check if all the records have been retrieve
|
void IteratorAggregate::setAllRecordsRetrieved ( $set ) |
Set all records retrieved
|
Record IteratorAggregate::removeRecord ( Record $rec ) |
Remove a record from the DataSet's internal storage
|
an IteratorAggregate::clearRecords ( ) |
Remove all records from the DataSet and nulls those records out and close() the DataSet.
|
an IteratorAggregate::releaseRecords ( ) |
Removes the records from the DataSet, but does not null the records out
|
void IteratorAggregate::close ( ) |
Releases the records, closes the ResultSet and the Statement, and nulls the Schema and Connection references.
Reimplemented in MSSQLResultSet, MySQLResultSet, OCI8ResultSet, PgSQLResultSet, SQLiteResultSet, and ResultSet. |
DataSet IteratorAggregate::reset ( ) |
Essentially the same as releaseRecords, but it won't work on a QueryDataSet that has been created with a ResultSet
|
Connection IteratorAggregate::connection ( ) |
Gets the current database connection
|
Schema IteratorAggregate::schema ( ) |
Gets the Schema for this DataSet
|
Record IteratorAggregate::getRecord ( $pos ) |
Get Record at 0 based index position
|
Record IteratorAggregate::findRecord ( $pos ) |
Find Record at 0 based index position. This is an internal alternative to getRecord which tries to be smart about the type of record it is.
|
true IteratorAggregate::containsRecord ( $pos ) |
Check to see if the DataSet contains a Record at 0 based position
|
DataSet IteratorAggregate::fetchRecords
(
$p1 = 0 ,
$p2 = null
)
|
Causes the DataSet to hit the database and fetch max records, starting at start. Record count begins at 0. This method supports two signatures:
fetchRecords(5, 10); // OFFSET = 5, LIMIT = 10
|
int IteratorAggregate::lastFetchSize ( ) |
The number of records that were fetched with the last fetchRecords.
|
KeyDef IteratorAggregate::keydef ( ) |
gets the KeyDef object for this DataSet
|
IteratorAggregate::__toString ( ) |
This returns a represention of this DataSet |
string IteratorAggregate::getSelectSql
(
)
[pure virtual]
|
Classes extending this class must implement this method.
|
the IteratorAggregate::getColumns ( ) |
Returns the columns attribute for the DataSet
|
int IteratorAggregate::size ( ) |
Gets the number of Records in this DataSet. It is 0 based.
|
const IteratorAggregate::ALL_RECORDS = 0 |
indicates that all records should be retrieved during a fetch |
IteratorAggregate::$records [protected]
|
this DataSet's collection of Record objects |
IteratorAggregate::$conn [protected]
|
this DataSet's connection object |
IteratorAggregate::$allRecordsRetrieved = false [protected]
|
have all records been retrieved with the fetchRecords? |
IteratorAggregate::$recordRetrievedCount = 0 [protected]
|
number of records retrieved |
IteratorAggregate::$lastFetchSize = 0 [protected]
|
number of records that were last fetched |
IteratorAggregate::$totalFetchCount = 0 [protected]
|
number of records total that have been fetched |
IteratorAggregate::$columns [protected]
|
the columns in the SELECT statement for this DataSet |
IteratorAggregate::$selectSql [protected]
|
the select string that was used to build this DataSet |
IteratorAggregate::$keyDef [protected]
|
IteratorAggregate::$resultSet [protected]
|
the result set for this DataSet |
IteratorAggregate::$stmt [protected]
|
This file is part of the Creole[php5] library.
Copyright © 2004 Hans Lellelid |   |
Creole[php5] CVS
|