Package org.apache.derby.catalog.types

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


      type = triggerDescriptor.isRowTrigger() ? "R" : "S";
      enabled = triggerDescriptor.isEnabled() ? "E" : "D";
      tuuid = triggerDescriptor.getTableDescriptor().getUUID();
      int[] refCols = triggerDescriptor.getReferencedCols();
      int[] refColsInTriggerAction = triggerDescriptor.getReferencedColsInTriggerAction();
      rcd = (refCols != null || refColsInTriggerAction != null) ? new
        ReferencedColumnsDescriptorImpl(refCols, refColsInTriggerAction) : null;

      actionSPSID =  triggerDescriptor.getActionId();
      whenSPSID =  triggerDescriptor.getWhenClauseId();
      triggerDefinition = triggerDescriptor.getTriggerDefinition();
View Full Code Here


            int[] refCols,
            SchemaDescriptor schemaDesc,
            boolean isEnabled
            )
  {
    ReferencedColumns referencedColumns = new ReferencedColumnsDescriptorImpl(refCols);
    return new CheckConstraintDescriptor(dataDictionary, table, constraintName,
        deferrable, initiallyDeferred,
        constraintId,
        constraintText, referencedColumns, schemaDesc, isEnabled);
  }
View Full Code Here

          for (j = 0; j < numRefCols; j++)
          {
            if (referencedColumns[j] > droppedColumnPosition)
              referencedColumns[j]--;
          }
          ((CheckConstraintDescriptor) cd).setReferencedColumnsDescriptor(new ReferencedColumnsDescriptorImpl(referencedColumns));
          dd.addConstraintDescriptor(cd, tc);
        }
        continue;
      }
View Full Code Here

                td, constraintName,
                                characteristics[0], //deferable,
                                characteristics[1], //initiallyDeferred,
                                constrId,
                constraintText,
                new ReferencedColumnsDescriptorImpl(genColumnPositions(td, false)), //int[],
                sd,
                                characteristics[2]
                );
        dd.addConstraintDescriptor(conDesc, tc);
        storeConstraintDependenciesOnPrivileges
View Full Code Here

          for (j = 0; j < numRefCols; j++)
          {
            if (referencedColumns[j] > droppedColumnPosition)
              referencedColumns[j]--;
          }
          ((CheckConstraintDescriptor) cd).setReferencedColumnsDescriptor(new ReferencedColumnsDescriptorImpl(referencedColumns));
          dd.addConstraintDescriptor(cd, tc);
        }
        continue;
      }
View Full Code Here

            int[] refCols,
            SchemaDescriptor schemaDesc,
            boolean isEnabled
            )
  {
    ReferencedColumns referencedColumns = new ReferencedColumnsDescriptorImpl(refCols);
    return new CheckConstraintDescriptor(dataDictionary, table, constraintName,
        deferrable, initiallyDeferred,
        constraintId,
        constraintText, referencedColumns, schemaDesc, isEnabled);
  }
View Full Code Here

            resultColumns.mapSourceColumns();

        int[] mapArray = mappingArrays.mapArray;
        boolean[] cloneMap = mappingArrays.cloneMap;

    int mapArrayItem = acb.addItem(new ReferencedColumnsDescriptorImpl(mapArray));
        int cloneMapItem = acb.addItem(cloneMap);

    /* Will this node do a projection? */
    boolean doesProjection = true;

View Full Code Here

        ResultColumnList.ColumnMapping  mappingArrays =
            resultColumns.mapSourceColumns();

        int[] mapArray = mappingArrays.mapArray;

    int mapArrayItem = acb.addItem(new ReferencedColumnsDescriptorImpl(mapArray));

    // Save the hash key columns

    FormatableIntHolder[] fihArray =
        FormatableIntHolder.getFormatableIntHolders(hashKeyColumns());
View Full Code Here

          for (j = 0; j < numRefCols; j++)
          {
            if (referencedColumns[j] > droppedColumnPosition)
              referencedColumns[j]--;
          }
          ((CheckConstraintDescriptor) cd).setReferencedColumnsDescriptor(new ReferencedColumnsDescriptorImpl(referencedColumns));
          dd.addConstraintDescriptor(cd, tc);
        }
        continue;
      }
View Full Code Here

    }

    /* Create the ReferencedColumnsDescriptorImpl which tells which columns
     * come from the index.
     */
    int indexColMapItem = acb.addItem(new ReferencedColumnsDescriptorImpl(getIndexColMapping()));
    long heapConglomNumber = baseCD.getConglomerateNumber();
    StaticCompiledOpenConglomInfo scoci = getLanguageConnectionContext().
                        getTransactionCompile().
                          getStaticCompiledConglomInfo(heapConglomNumber);

View Full Code Here

TOP

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

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.