Vector v = new Vector();
IPerson person = null;
while( R.next() ){
person = new PersonImpl();
for( int i = 1; i <= R.getMetaData().getColumnCount(); i++ ) {
if( R.getMetaData().getColumnType( i ) != Types.TIMESTAMP )
person.setAttribute(
R.getMetaData().getColumnName( i ).toLowerCase(),
(R.getString( i )==null?"":R.getString( i )));
else
person.setAttribute(
R.getMetaData().getColumnName( i ).toLowerCase(),
(R.getString( i )==null?"": RDBMServices.getDbMetaData().sqlTimeStamp(
new java.util.Date( R.getTimestamp( i ).getTime()) )));
}// for
v.addElement( person );
}// while
IPerson pwdtst = null;
IPerson[] people = new IPerson[ v.size() ];
for( int i = 0; i < people.length; i++ ) {
people[ i ] = (IPerson)v.elementAt( i );
// if the user exists but has no layout information, the account
// is considered to be locked, this is technically inaccurate
try{
pwdtst = new PersonImpl();
pwdtst.setAttribute( IPerson.USERNAME,
people[ i ].getAttribute( Constants.UNFIELD ));
rdbmuser.getPortalUID( pwdtst, false );