net.sourceforge.squirrel_sql.plugins.oracle.expander
Class UserParentExpander

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.oracle.expander.UserParentExpander
All Implemented Interfaces:
INodeExpander

public class UserParentExpander
extends Object
implements INodeExpander

This class handles the expanding of the "user type" node. It will give a list of all the users.

Author:
Colin Bell

Field Summary
protected  boolean isAdmin
          Is user can access to dba_users.
 
Constructor Summary
UserParentExpander(ISession session)
           
 
Method Summary
 List<ObjectTreeNode> createChildren(ISession session, ObjectTreeNode parentNode)
          Create the child nodes for the passed parent node and return them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isAdmin

protected final boolean isAdmin
Is user can access to dba_users.

Constructor Detail

UserParentExpander

public UserParentExpander(ISession session)
Method Detail

createChildren

public List<ObjectTreeNode> createChildren(ISession session,
                                           ObjectTreeNode parentNode)
                                    throws SQLException
Create the child nodes for the passed parent node and return them. Note that this method should not actually add the child nodes to the parent node as this is taken care of in the caller.

Specified by:
createChildren in interface INodeExpander
Parameters:
session - Current session.
node - Node to be expanded.
Returns:
A list of ObjectTreeNode objects representing the child nodes for the passed node.
Throws:
SQLException


Copyright © 2001-2010. All Rights Reserved.