|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.adapter.SybaseResourceAdapter.SybaseAccountIterator
The implementation of the AccountIterator returned by getAccountIterator. We originally started by querying the master.dbo.syslogins table but we're arguably only supposed to be showing accounts in this database, so we can just use sp_helpusers.
Field Summary |
Fields inherited from interface com.waveset.adapter.AccountIterator |
code_id |
Constructor Summary | |
SybaseResourceAdapter.SybaseAccountIterator(java.sql.Connection con,
SybaseResourceAdapter adapter)
Construct the iterator, run the query, prep for iteration. |
Method Summary | |
void |
close()
Release resources required for the iteration. |
boolean |
hasNext()
Return true if there are more users. |
WSUser |
next()
Returns the next user object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SybaseResourceAdapter.SybaseAccountIterator(java.sql.Connection con, SybaseResourceAdapter adapter) throws WavesetException
If we hit an error, auto-close so the caller doesn't have to worry about it.
Method Detail |
public void close()
close
in interface AccountIterator
public boolean hasNext() throws WavesetException
hasNext
in interface AccountIterator
WavesetException
public WSUser next() throws java.util.NoSuchElementException
Under Sybase, there is only one row per user.
next
in interface AccountIterator
java.util.NoSuchElementException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |