* nodes for the passed node.
*/
public List<ObjectTreeNode> createChildren(ISession session, ObjectTreeNode parentNode)
{
final List<ObjectTreeNode> childNodes = new ArrayList<ObjectTreeNode>();
final IDatabaseObjectInfo parentDbinfo = parentNode.getDatabaseObjectInfo();
final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
final String catalogName = parentDbinfo.getCatalogName();
final String schemaName = parentDbinfo.getSimpleName();
IDatabaseObjectInfo dbinfo = new DatabaseObjectInfo(catalogName,
schemaName, "PACKAGE",
IObjectTypes.PACKAGE_PARENT, md);
ObjectTreeNode child = new ObjectTreeNode(session, dbinfo);
child.addExpander(new PackageParentExpander());
childNodes.add(child);
ObjectType objType;
objType = new ObjectType(IObjectTypes.CONSUMER_GROUP_PARENT, "CONSUMER GROUP",
IObjectTypes.CONSUMER_GROUP);
childNodes.add(createObjectTypeNode(session, catalogName, schemaName,
md, objType));
objType = new ObjectType(IObjectTypes.FUNCTION_PARENT, "FUNCTION",
DatabaseObjectType.FUNCTION);
childNodes.add(createObjectTypeNode(session, catalogName, schemaName,
md, objType));
objType = new ObjectType(IObjectTypes.INDEX_PARENT, "INDEX", DatabaseObjectType.INDEX);
childNodes.add(createObjectTypeNode(session, catalogName, schemaName,
md, objType));
objType = new ObjectType(IObjectTypes.LOB_PARENT, "LOB", IObjectTypes.LOB);
childNodes.add(createObjectTypeNode(session, catalogName, schemaName,
md, objType));
IDatabaseObjectInfo seqInfo = new DatabaseObjectInfo(catalogName,
schemaName, "SEQUENCE",
IObjectTypes.SEQUENCE_PARENT, md);
ObjectTreeNode node = new ObjectTreeNode(session, seqInfo);
node.addExpander(new SequenceParentExpander());
childNodes.add(node);