Package org.apache.derby.catalog.types

Examples of org.apache.derby.catalog.types.SynonymAliasInfo


        AliasDescriptor nextAD = dd.getAliasDescriptor(nextSD.getUUID().toString(),
             nextSynTable, nameSpace);
        if (nextAD == null)
          break;

        SynonymAliasInfo info = (SynonymAliasInfo) nextAD.getAliasInfo();
        nextSynTable = info.getSynonymTable();
        nextSynSchema = info.getSynonymSchema();

        if (aliasName.equals(nextSynTable) && schemaName.equals(nextSynSchema))
          throw StandardException.newException(SQLState.LANG_SYNONYM_CIRCULAR,
              aliasName, ((SynonymAliasInfo)aliasInfo).getSynonymTable());
      }
View Full Code Here


      /* Query is dependent on the AliasDescriptor */
      cc.createDependency(nextAD);

      found = true;
      SynonymAliasInfo info = ((SynonymAliasInfo)nextAD.getAliasInfo());
      nextSynonymTable = info.getSynonymTable();
      nextSynonymSchema = info.getSynonymSchema();
    }

    if (!found)
      return null;

View Full Code Here

      /* Query is dependent on the AliasDescriptor */
      cc.createDependency(nextAD);

      found = true;
      SynonymAliasInfo info = ((SynonymAliasInfo)nextAD.getAliasInfo());
      nextSynonymTable = info.getSynonymTable();
      nextSynonymSchema = info.getSynonymSchema();
    }

    if (!found)
      return null;

View Full Code Here

        implicitCreateSchema = true;
        TableName t = (TableName) targetObject;
        if (t.getSchemaName() != null)
          targetSchema = t.getSchemaName();
        else targetSchema = getSchemaDescriptor().getSchemaName();
        aliasInfo = new SynonymAliasInfo(targetSchema, t.getTableName());
        break;

      default:
        if (SanityManager.DEBUG)
        {
View Full Code Here

        AliasDescriptor nextAD = dd.getAliasDescriptor(nextSD.getUUID().toString(),
             nextSynTable, nameSpace);
        if (nextAD == null)
          break;

        SynonymAliasInfo info = (SynonymAliasInfo) nextAD.getAliasInfo();
        nextSynTable = info.getSynonymTable();
        nextSynSchema = info.getSynonymSchema();

        if (aliasName.equals(nextSynTable) && schemaName.equals(nextSynSchema))
          throw StandardException.newException(SQLState.LANG_SYNONYM_CIRCULAR,
              aliasName, ((SynonymAliasInfo)aliasInfo).getSynonymTable());
      }
View Full Code Here

        implicitCreateSchema = true;
        TableName t = (TableName) targetObject;
        if (t.getSchemaName() != null)
          targetSchema = t.getSchemaName();
        else targetSchema = getSchemaDescriptor().getSchemaName();
        aliasInfo = new SynonymAliasInfo(targetSchema, t.getTableName());
        break;

      default:
        if (SanityManager.DEBUG)
        {
View Full Code Here

      /* Query is dependent on the AliasDescriptor */
      cc.createDependency(nextAD);

      found = true;
      SynonymAliasInfo info = ((SynonymAliasInfo)nextAD.getAliasInfo());
      nextSynonymTable = info.getSynonymTable();
      nextSynonymSchema = info.getSynonymSchema();
    }

    if (!found)
      return null;

View Full Code Here

        implicitCreateSchema = true;
        TableName t = (TableName) targetObject;
        if (t.getSchemaName() != null)
          targetSchema = t.getSchemaName();
        else targetSchema = getSchemaDescriptor().getSchemaName();
        aliasInfo = new SynonymAliasInfo(targetSchema, t.getTableName());
        break;

      default:
        if (SanityManager.DEBUG)
        {
View Full Code Here

        AliasDescriptor nextAD = dd.getAliasDescriptor(nextSD.getUUID().toString(),
             nextSynTable, nameSpace);
        if (nextAD == null)
          break;

        SynonymAliasInfo info = (SynonymAliasInfo) nextAD.getAliasInfo();
        nextSynTable = info.getSynonymTable();
        nextSynSchema = info.getSynonymSchema();

        if (aliasName.equals(nextSynTable) && schemaName.equals(nextSynSchema))
          throw StandardException.newException(SQLState.LANG_SYNONYM_CIRCULAR,
              aliasName, ((SynonymAliasInfo)aliasInfo).getSynonymTable());
      }
View Full Code Here

        AliasDescriptor nextAD = dd.getAliasDescriptor(nextSD.getUUID().toString(),
             nextSynTable, nameSpace);
        if (nextAD == null)
          break;

        SynonymAliasInfo info = (SynonymAliasInfo) nextAD.getAliasInfo();
        nextSynTable = info.getSynonymTable();
        nextSynSchema = info.getSynonymSchema();

        if (aliasName.equals(nextSynTable) && schemaName.equals(nextSynSchema))
          throw StandardException.newException(SQLState.LANG_SYNONYM_CIRCULAR,
              aliasName, ((SynonymAliasInfo)aliasInfo).getSynonymTable());
      }
View Full Code Here

TOP

Related Classes of org.apache.derby.catalog.types.SynonymAliasInfo

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.