db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bobby Lawrence <robe...@jlab.org>
Subject access to custom attributes
Date Tue, 11 Jan 2005 20:03:35 GMT
As a new feature, it would be nice if the DescriptorBase allowed access 
to all the attributes as a list or even returned all the attribute names 
for a given descriptor.
All that would have to be added would be:

public String[] getAttributeNames(){
    String[] returnVals = null;
    if (attributeMap != null && !attributeMap.isEmpty()){
        returnVals = attributeMap.keySet().toArray(String[]);
    }
    return returnVals;
}

Or something similiar.

--Bobby





---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message