Share

LDAP framework

Tracker: Feature Requests

5 LDAPResultSet List getResultSetNames() - ID: 1904279
Last Update: Tracker Item Submitted ( trames )

Add this method to retrieve a List object <String> of all the field names
returned by the ResultSet. Handy if you requested all fields "SELECT *"


/**
* Returns a List of all of the field names contained
* within the result set
*
* @return
* @throws DAOException
*/
public List<String> getResultSetNames() throws DAOException {


ArrayList<String> names = new ArrayList<String>();

try {
NamingEnumeration<String> en = attrs.getIDs();
while(en.hasMore()) {
String name = (String) en.next();
names.add(name);
}
}
catch (NamingException ex) {
throw new DAOException(ex);
}

return names;
}




trames ( trames ) - 2008-02-28 21:27

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.