* @throws SQLException
*/
private AID getAID(String aidN) throws SQLException {
ResultSet rs = null;
AID id = new AID(aidN, AID.ISGUID);
PreparedStatements pss = getPreparedStatements();
// AID addresses
pss.stm_selAgentAddresses.setString(1, aidN);
rs = pss.stm_selAgentAddresses.executeQuery();
while(rs.next()){
id.addAddresses(rs.getString(1));
}
// AID resolvers
Collection resolvers = getResolverAIDs(aidN);
Iterator iter = resolvers.iterator();
while (iter.hasNext()) {
id.addResolvers(getAID((String)iter.next()));
}
// AID User defined slots
pss.stm_selAgentUserDefSlot.setString(1, aidN);
rs = pss.stm_selAgentUserDefSlot.executeQuery();
while(rs.next()) {
String key = rs.getString("slotkey");
String value = rs.getString("slotval");
id.addUserDefinedSlot(key, value);
}
return id;
}