Package org.apache.derby.impl.sql.execute

Examples of org.apache.derby.impl.sql.execute.ColumnInfo


    for (int index = 0; index < rclSize; index++)
    {
      ResultColumn rc = (ResultColumn) rcl.elementAt(index);

      //RESOLVEAUTOINCREMENT
      colInfos[index] = new ColumnInfo(rc.getName(),
                       rc.getType(),
                       null,
                       null,
                       null,
                       null,
View Full Code Here


    for (int index = 0; index < size; index++)
    {
      if (((TableElementNode) elementAt(index)).getElementType() == TableElementNode.AT_DROP_COLUMN)
      {
        colInfos[index] = new ColumnInfo(
                ((TableElementNode) elementAt(index)).getName(),
                null, null, null, null, null,
                ColumnInfo.DROP, 0, 0, 0);
        break;
      }

      if (! (elementAt(index) instanceof ColumnDefinitionNode))
      {
        if (SanityManager.DEBUG)
        {
          SanityManager.ASSERT( elementAt(index) instanceof ConstraintDefinitionNode,
            "elementAt(index) expected to be instanceof " +
            "ConstraintDefinitionNode");
        }

        /* Remember how many constraints that we've seen */
        numConstraints++;
        continue;
      }

      ColumnDefinitionNode coldef = (ColumnDefinitionNode) elementAt(index);

      colInfos[index - numConstraints] =
        new ColumnInfo(coldef.getColumnName(),
                 coldef.getDataTypeServices(),
                 coldef.getDefaultValue(),
                 coldef.getDefaultInfo(),
                 (UUID) null,
                 coldef.getOldDefaultUUID(),
View Full Code Here

    for (int index = 0; index < rclSize; index++)
    {
      ResultColumn rc = (ResultColumn) rcl.elementAt(index);

      //RESOLVEAUTOINCREMENT
      colInfos[index] = new ColumnInfo(rc.getName(),
                       rc.getType(),
                       null,
                       null,
                       null,
                       null,
View Full Code Here

    for (int index = 0; index < size; index++)
    {
      if (((TableElementNode) elementAt(index)).getElementType() == TableElementNode.AT_DROP_COLUMN)
      {
        colInfos[index] = new ColumnInfo(
                ((TableElementNode) elementAt(index)).getName(),
                null, null, null, null, null,
                ColumnInfo.DROP, 0, 0, 0);
        break;
      }

      if (! (elementAt(index) instanceof ColumnDefinitionNode))
      {
        if (SanityManager.DEBUG)
        {
          SanityManager.ASSERT( elementAt(index) instanceof ConstraintDefinitionNode,
            "elementAt(index) expected to be instanceof " +
            "ConstraintDefinitionNode");
        }

        /* Remember how many constraints that we've seen */
        numConstraints++;
        continue;
      }

      ColumnDefinitionNode coldef = (ColumnDefinitionNode) elementAt(index);

      colInfos[index - numConstraints] =
        new ColumnInfo(coldef.getColumnName(),
                 coldef.getDataTypeServices(),
                 coldef.getDefaultValue(),
                 coldef.getDefaultInfo(),
                 (UUID) null,
                 coldef.getOldDefaultUUID(),
View Full Code Here

    for (int index = 0; index < rclSize; index++)
    {
      ResultColumn rc = (ResultColumn) rcl.elementAt(index);

      //RESOLVEAUTOINCREMENT
      colInfos[index] = new ColumnInfo(rc.getName(),
                       rc.getType(),
                       null,
                       null,
                       null,
                       null,
View Full Code Here

      if (SanityManager.DEBUG) {
        if (rc.isGenerated)
          SanityManager.THROWASSERT("Encountered generated column in expected visible range at rcl[" + index +"]");
      }
      //RESOLVEAUTOINCREMENT
      colInfos[index] = new ColumnInfo(rc.getName(),
                       rc.getType(),
                       null,
                       null,
                       null,
                       null,
View Full Code Here

    for (int index = 0; index < size; index++)
    {
      if (((TableElementNode) elementAt(index)).getElementType() == TableElementNode.AT_DROP_COLUMN)
      {
        colInfos[index] = new ColumnInfo(
                ((TableElementNode) elementAt(index)).getName(),
                null, null, null, null, null, null,
                ColumnInfo.DROP, 0, 0, 0);
        break;
      }

      if (! (elementAt(index) instanceof ColumnDefinitionNode))
      {
        if (SanityManager.DEBUG)
        {
          SanityManager.ASSERT( elementAt(index) instanceof ConstraintDefinitionNode,
            "elementAt(index) expected to be instanceof " +
            "ConstraintDefinitionNode");
        }

        /* Remember how many constraints we've seen */
        numConstraints++;
        continue;
      }

      ColumnDefinitionNode coldef = (ColumnDefinitionNode) elementAt(index);

            //
            // Generated columns may depend on functions mentioned in their
            // generation clauses.
            //
            ProviderList apl = null;
            ProviderInfo[]  providerInfos = null;
      if ( coldef.hasGenerationClause() )
      {
        apl = coldef.getGenerationClauseNode().getAuxiliaryProviderList();
      }
            if (apl != null && apl.size() > 0)
            {
                DependencyManager dm = getDataDictionary().getDependencyManager();
                providerInfos = dm.getPersistentProviderInfos(apl);
            }
           
      colInfos[index - numConstraints] =
        new ColumnInfo(coldef.getColumnName(),
                 coldef.getType(),
                 coldef.getDefaultValue(),
                 coldef.getDefaultInfo(),
                 providerInfos,
                 (UUID) null,
View Full Code Here

    {
      if (((TableElementNode) elementAt(index)).getElementType() == TableElementNode.AT_DROP_COLUMN)
      {
                String columnName = ((TableElementNode) elementAt(index)).getName();

        colInfos[index] = new ColumnInfo(
                columnName,
                td.getColumnDescriptor( columnName ).getType(),
                                null, null, null, null, null,
                ColumnInfo.DROP, 0, 0, 0);
        break;
      }

      if (! (elementAt(index) instanceof ColumnDefinitionNode))
      {
        if (SanityManager.DEBUG)
        {
          SanityManager.ASSERT( elementAt(index) instanceof ConstraintDefinitionNode,
            "elementAt(index) expected to be instanceof " +
            "ConstraintDefinitionNode");
        }

        /* Remember how many constraints we've seen */
        numConstraints++;
        continue;
      }

      ColumnDefinitionNode coldef = (ColumnDefinitionNode) elementAt(index);

            //
            // Generated columns may depend on functions mentioned in their
            // generation clauses.
            //
            ProviderList apl = null;
            ProviderInfo[]  providerInfos = null;
      if ( coldef.hasGenerationClause() )
      {
        apl = coldef.getGenerationClauseNode().getAuxiliaryProviderList();
      }
            if (apl != null && apl.size() > 0)
            {
                DependencyManager dm = getDataDictionary().getDependencyManager();
                providerInfos = dm.getPersistentProviderInfos(apl);
            }

      colInfos[index - numConstraints] =
        new ColumnInfo(coldef.getColumnName(),
                 coldef.getType(),
                 coldef.getDefaultValue(),
                 coldef.getDefaultInfo(),
                 providerInfos,
                 (UUID) null,
View Full Code Here

      if (SanityManager.DEBUG) {
        if (rc.isGenerated())
          SanityManager.THROWASSERT("Encountered generated column in expected visible range at rcl[" + index +"]");
      }
      //RESOLVEAUTOINCREMENT
      colInfos[index] = new ColumnInfo(rc.getName(),
                       rc.getType(),
                       null,
                       null,
                       null,
                       null,
View Full Code Here

    {
            if (elementAt(index).getElementType() == TableElementNode.AT_DROP_COLUMN)
      {
                String columnName = elementAt(index).getName();

        colInfos[index] = new ColumnInfo(
                columnName,
                td.getColumnDescriptor( columnName ).getType(),
                                null, null, null, null, null,
                ColumnInfo.DROP, 0, 0, 0);
        break;
      }

      if (! (elementAt(index) instanceof ColumnDefinitionNode))
      {
        if (SanityManager.DEBUG)
        {
          SanityManager.ASSERT( elementAt(index) instanceof ConstraintDefinitionNode,
            "elementAt(index) expected to be instanceof " +
            "ConstraintDefinitionNode");
        }

        /* Remember how many constraints we've seen */
        numConstraints++;
        continue;
      }

      ColumnDefinitionNode coldef = (ColumnDefinitionNode) elementAt(index);

            //
            // Generated columns may depend on functions mentioned in their
            // generation clauses.
            //
            ProviderList apl = null;
            ProviderInfo[]  providerInfos = null;
      if ( coldef.hasGenerationClause() )
      {
        apl = coldef.getGenerationClauseNode().getAuxiliaryProviderList();
      }
            if (apl != null && apl.size() > 0)
            {
                DependencyManager dm = getDataDictionary().getDependencyManager();
                providerInfos = dm.getPersistentProviderInfos(apl);
            }

      colInfos[index - numConstraints] =
        new ColumnInfo(coldef.getColumnName(),
                 coldef.getType(),
                 coldef.getDefaultValue(),
                 coldef.getDefaultInfo(),
                 providerInfos,
                 (UUID) null,
View Full Code Here

TOP

Related Classes of org.apache.derby.impl.sql.execute.ColumnInfo

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.