Package net.sourceforge.squirrel_sql.fw.sql

Examples of net.sourceforge.squirrel_sql.fw.sql.DatabaseObjectType



         if (doi instanceof ITableInfo)
         {
            ITableInfo ti = (ITableInfo) doi;
            DatabaseObjectType dot = ti.getDatabaseObjectType();

            String[] types = null;
            if (DatabaseObjectType.TABLE == dot)
            {
               types = new String[]{"TABLE"};
View Full Code Here


    // If node hasn't already been expanded.
    if (node.getChildCount() == 0)
    {
      // Add together the standard expanders for this node type and any
      // individual expanders that there are for the node and process them.
      final DatabaseObjectType dboType = node.getDatabaseObjectType();
      INodeExpander[] stdExpanders = _model.getExpanders(dboType);
      INodeExpander[] extraExpanders = node.getExpanders();
      if (stdExpanders.length > 0 || extraExpanders.length > 0)
      {
        INodeExpander[] expanders = null;
View Full Code Here

    ObjectTreeNode[] selObj = getSelectedNodes();
    if (selObj.length > 0)
    {
      // See if all selected nodes are of the same type.
      boolean sameType = true;
      final DatabaseObjectType dboType = selObj[0].getDatabaseObjectType();
      for (int i = 1; i < selObj.length; ++i)
      {
        if (selObj[i].getDatabaseObjectType() != dboType)
        {
          sameType = false;
View Full Code Here

    private void loadChildren() throws SQLException
    {
      for (int i = 0; i < _expanders.length; ++i)
      {
        boolean nodeTypeAllowsChildren = false;
        DatabaseObjectType lastDboType = null;
        List<ObjectTreeNode> list = _expanders[i].createChildren(_session, _parentNode);
        Iterator<ObjectTreeNode> it = list.iterator();
        while (it.hasNext())
        {
          Object nextObj = it.next();
          if (nextObj instanceof ObjectTreeNode)
          {
            ObjectTreeNode childNode = (ObjectTreeNode)nextObj;
            if (childNode.getExpanders().length >0)
            {
              childNode.setAllowsChildren(true);
            }
            else
            {
              DatabaseObjectType childNodeDboType = childNode.getDatabaseObjectType();
              if (childNodeDboType != lastDboType)
              {
                getTypedModel().addKnownDatabaseObjectType(childNodeDboType);
                lastDboType = childNodeDboType;
                if (_model.getExpanders(childNodeDboType).length > 0)
View Full Code Here

   * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#canPasteTo(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo)
   */
  public boolean canPasteTo(IDatabaseObjectInfo info)
  {
    boolean result = true;
    DatabaseObjectType type = info.getDatabaseObjectType();
    if (type.getName().equalsIgnoreCase("database"))
    {
      result = false;
    }
    return result;
  }
View Full Code Here

   */
  @Override
  public boolean canPasteTo(IDatabaseObjectInfo info)
  {
    boolean result = true;
    final DatabaseObjectType type = info.getDatabaseObjectType();
    if (type.getName().equalsIgnoreCase("database"))
    {
      result = false;
    }
    return result;
  }
View Full Code Here

   * @see net.sourceforge.squirrel_sql.fw.dialects.CommonHibernateDialect#canPasteTo(net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo)
   */
  public boolean canPasteTo(IDatabaseObjectInfo info)
  {
    boolean result = true;
    DatabaseObjectType type = info.getDatabaseObjectType();
    if (type.getName().equalsIgnoreCase("database"))
    {
      result = false;
    }
    return result;
  }
View Full Code Here

   */
  @Override
  public boolean canPasteTo(IDatabaseObjectInfo info)
  {
    boolean result = true;
    DatabaseObjectType type = info.getDatabaseObjectType();
    if (type.getName().equalsIgnoreCase("database") || type.getName().equalsIgnoreCase("catalog"))
    {
      result = false;
    }
    return result;
  }
View Full Code Here

   */
  @Override
  public boolean canPasteTo(IDatabaseObjectInfo info)
  {
    boolean result = true;
    DatabaseObjectType type = info.getDatabaseObjectType();
    if (type.getName().equalsIgnoreCase("database") || type.getName().equalsIgnoreCase("catalog"))
    {
      result = false;
    }
    return result;
  }
View Full Code Here

   */
  @Override
  public boolean canPasteTo(final IDatabaseObjectInfo info)
  {
    boolean result = true;
    final DatabaseObjectType type = info.getDatabaseObjectType();
    if (type.getName().equalsIgnoreCase("database"))
    {
      result = false;
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.sql.DatabaseObjectType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.