|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.user.UserListIterator
org.starhope.appius.user.UserListSQLIterator
public abstract class UserListSQLIterator
WRITEME: Document this type.
| Field Summary | |
|---|---|
private Connection |
con
WRITEME: Document this brpocock@star-hope.org |
private boolean |
hasNext
WRITEME: Document this brpocock@star-hope.org |
private UserListEntry |
next
WRITEME: Document this brpocock@star-hope.org |
private ResultSet |
rs
WRITEME: Document this brpocock@star-hope.org |
private PreparedStatement |
st
WRITEME: Document this brpocock@star-hope.org |
| Fields inherited from class org.starhope.appius.user.UserListIterator |
|---|
moniker, userID, userLogin |
| Constructor Summary | |
|---|---|
UserListSQLIterator(AbstractUser user,
String listMoniker)
WRITEME: Document this constructor brpocock@star-hope.org |
|
| Method Summary | |
|---|---|
void |
changed(UserListEntry changedRecord)
accept a notification from a record that it has been changed. |
private void |
fetchNext()
WRITEME: Document this method brpocock@star-hope.org |
protected abstract String |
getSQL()
WRITEME: Document this method brpocock@star-hope.org |
String |
getSubversionRevision()
Return the Subversion revision level of this class's source code file, as supplied via the special "$Rev: " sequence. |
boolean |
hasNext()
|
void |
initializeStorage(String storageURL)
Prepare the RecordLoader for accessing a given storage medium. |
private void |
initSQL()
WRITEME: Document this method brpocock@star-hope.org |
boolean |
isRealtime()
|
UserListEntry |
loadRecord(int id)
Load the record with the given ID number from the storage system |
UserListEntry |
loadRecord(String identifier)
Load the data record identified from the storage system. |
UserListEntry |
next()
|
void |
removeRecord(UserListEntry record)
|
void |
saveRecord(UserListEntry record)
Save a record back to the storage system |
| Methods inherited from class org.starhope.appius.user.UserListIterator |
|---|
add, remove, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.starhope.appius.util.RecordLoader |
|---|
refresh |
| Field Detail |
|---|
private ResultSet rs
private Connection con
private PreparedStatement st
private boolean hasNext
private UserListEntry next
| Constructor Detail |
|---|
public UserListSQLIterator(AbstractUser user,
String listMoniker)
user - WRITEMElistMoniker - WRITEME| Method Detail |
|---|
public void changed(UserListEntry changedRecord)
RecordLoader
changedRecord - the record that has been changedRecordLoader.changed(org.starhope.appius.util.DataRecord)private void fetchNext()
protected abstract String getSQL()
public String getSubversionRevision()
HasSubversionRevisionReturn the Subversion revision level of this class's source code file, as supplied via the special "$Rev: " sequence.
As an example,the Subversion revision string for this file is "$Rev: 1968 $"
@Override
public String getSubversionRevision () {
return "$Rev: ";
}
HasSubversionRevision.getSubversionRevision()public boolean hasNext()
Iterator.hasNext()
public void initializeStorage(String storageURL)
throws NotReadyException
RecordLoader
storageURL - A URL or identifier of the storage engine. The
syntax is specific to the RecordLoader implementation.
NotReadyException - if the storage engine can't be
initialisedRecordLoader.initializeStorage(java.lang.String)private void initSQL()
public boolean isRealtime()
RecordLoader.isRealtime()
public UserListEntry loadRecord(int id)
throws NotFoundException
RecordLoader
id - the ID number for the record
NotFoundException - if the record can't be loadedRecordLoader.loadRecord(int)
public UserListEntry loadRecord(String identifier)
throws NotFoundException
RecordLoader
identifier - the identifier for the record
NotFoundException - if the record can't be loadedRecordLoader.loadRecord(java.lang.String)public UserListEntry next()
Iterator.next()public void removeRecord(UserListEntry record)
record - Record to be deleted/removedRecordLoader.removeRecord(org.starhope.appius.util.DataRecord)public void saveRecord(UserListEntry record)
RecordLoader
record - the record to be savedRecordLoader.saveRecord(org.starhope.appius.util.DataRecord)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||