Package org.apache.derby.iapi.sql.dictionary

Examples of org.apache.derby.iapi.sql.dictionary.SubKeyConstraintDescriptor


            ti,
            (TupleDescriptor) null,
            fkList,
            false);

    SubKeyConstraintDescriptor cd;
    TableDescriptor td;
    ConstraintDescriptorList cdl = new ConstraintDescriptorList();
    ConstraintDescriptorList tmpCdl;

    for (Iterator iterator = fkList.iterator(); iterator.hasNext(); )
    {
      cd = (SubKeyConstraintDescriptor) iterator.next();
      td = getConstraintTableDescriptor(cd.getUUID());
      cdl.add(getConstraintDescriptors(td).getConstraintDescriptorById(cd.getUUID()));
    }

    return cdl;
  }
View Full Code Here


            ti,
            (TupleDescriptor) null,
            fkList,
            false);

    SubKeyConstraintDescriptor cd;
    TableDescriptor td;
    ConstraintDescriptorList cdl = new ConstraintDescriptorList();
    ConstraintDescriptorList tmpCdl;

    for (Iterator iterator = fkList.iterator(); iterator.hasNext(); )
    {
      cd = (SubKeyConstraintDescriptor) iterator.next();
      td = getConstraintTableDescriptor(cd.getUUID());
      cdl.add(getConstraintDescriptors(td).getConstraintDescriptorById(cd.getUUID()));
    }

    return cdl;
  }
View Full Code Here

            ti,
            (TupleDescriptor) null,
            fkList,
            false);

    SubKeyConstraintDescriptor cd;
    TableDescriptor td;
    ConstraintDescriptorList cdl = new ConstraintDescriptorList();
    ConstraintDescriptorList tmpCdl;

    for (Iterator iterator = fkList.iterator(); iterator.hasNext(); )
    {
      cd = (SubKeyConstraintDescriptor) iterator.next();
      td = getConstraintTableDescriptor(cd.getUUID());
      cdl.add(getConstraintDescriptors(td).getConstraintDescriptorById(cd.getUUID()));
    }

    return cdl;
  }
View Full Code Here

            ti,
            (TupleDescriptor) null,
            fkList,
            false);

    SubKeyConstraintDescriptor cd;
    TableDescriptor td;
    ConstraintDescriptorList cdl = new ConstraintDescriptorList();
    ConstraintDescriptorList tmpCdl;

    for (Iterator iterator = fkList.iterator(); iterator.hasNext(); )
    {
      cd = (SubKeyConstraintDescriptor) iterator.next();
      td = getConstraintTableDescriptor(cd.getUUID());
      cdl.add(getConstraintDescriptors(td).getConstraintDescriptorById(cd.getUUID()));
    }

    return cdl;
  }
View Full Code Here

    ExecRow          row,
    TupleDescriptor      parentTupleDescriptor,
    DataDictionary       dd )
          throws StandardException
  {
    SubKeyConstraintDescriptor keyDesc = null;

    if (SanityManager.DEBUG)
    {
      SanityManager.ASSERT(
        row.nColumns() == SYSKEYS_COLUMN_COUNT,
        "Wrong number of columns for a SYSKEYS row");
    }

    DataValueDescriptor    col;
    DataDescriptorGenerator ddg;
    UUID          constraintUUID;
    UUID          conglomerateUUID;
    String        constraintUUIDString;
    String        conglomerateUUIDString;

    ddg = dd.getDataDescriptorGenerator();

    /* 1st column is CONSTRAINTID (UUID - char(36)) */
    col = row.getColumn(SYSKEYS_CONSTRAINTID);
    constraintUUIDString = col.getString();
    constraintUUID = getUUIDFactory().recreateUUID(constraintUUIDString);

    /* 2nd column is CONGLOMERATEID (UUID - char(36)) */
    col = row.getColumn(SYSKEYS_CONGLOMERATEID);
    conglomerateUUIDString = col.getString();
    conglomerateUUID = getUUIDFactory().recreateUUID(conglomerateUUIDString);

    /* now build and return the descriptor */

    keyDesc =  new SubKeyConstraintDescriptor(
                    constraintUUID,
                    conglomerateUUID);
    return keyDesc;
  }
View Full Code Here

    raRuleString = col.getString();
    raUpdateRule  = getRefActionAsInt(raRuleString);


    /* now build and return the descriptor */
    return new SubKeyConstraintDescriptor(
                    constraintUUID,
                    conglomerateUUID,
                    keyConstraintUUID,
                    raDeleteRule,
                    raUpdateRule);
View Full Code Here

    raRuleString = col.getString();
    raUpdateRule  = getRefActionAsInt(raRuleString);


    /* now build and return the descriptor */
    return new SubKeyConstraintDescriptor(
                    constraintUUID,
                    conglomerateUUID,
                    keyConstraintUUID,
                    raDeleteRule,
                    raUpdateRule);
View Full Code Here

    ExecRow          row,
    TupleDescriptor      parentTupleDescriptor,
    DataDictionary       dd )
          throws StandardException
  {
    SubKeyConstraintDescriptor keyDesc = null;

    if (SanityManager.DEBUG)
    {
      SanityManager.ASSERT(
        row.nColumns() == SYSKEYS_COLUMN_COUNT,
        "Wrong number of columns for a SYSKEYS row");
    }

    DataValueDescriptor    col;
    DataDescriptorGenerator ddg;
    UUID          constraintUUID;
    UUID          conglomerateUUID;
    String        constraintUUIDString;
    String        conglomerateUUIDString;

    ddg = dd.getDataDescriptorGenerator();

    /* 1st column is CONSTRAINTID (UUID - char(36)) */
    col = row.getColumn(SYSKEYS_CONSTRAINTID);
    constraintUUIDString = col.getString();
    constraintUUID = getUUIDFactory().recreateUUID(constraintUUIDString);

    /* 2nd column is CONGLOMERATEID (UUID - char(36)) */
    col = row.getColumn(SYSKEYS_CONGLOMERATEID);
    conglomerateUUIDString = col.getString();
    conglomerateUUID = getUUIDFactory().recreateUUID(conglomerateUUIDString);

    /* now build and return the descriptor */

    keyDesc =  new SubKeyConstraintDescriptor(
                    constraintUUID,
                    conglomerateUUID);
    return keyDesc;
  }
View Full Code Here

            ti,
            (TupleDescriptor) null,
            fkList,
            false);

    SubKeyConstraintDescriptor cd;
    TableDescriptor td;
    ConstraintDescriptorList cdl = new ConstraintDescriptorList();
    ConstraintDescriptorList tmpCdl;

    for (Iterator iterator = fkList.iterator(); iterator.hasNext(); )
    {
      cd = (SubKeyConstraintDescriptor) iterator.next();
      td = getConstraintTableDescriptor(cd.getUUID());
      cdl.add(getConstraintDescriptors(td).getConstraintDescriptorById(cd.getUUID()));
    }

    return cdl;
  }
View Full Code Here

            ti,
            (TupleDescriptor) null,
            fkList,
            false);

    SubKeyConstraintDescriptor cd;
    TableDescriptor td;
    ConstraintDescriptorList cdl = new ConstraintDescriptorList();
    ConstraintDescriptorList tmpCdl;

    for (Iterator iterator = fkList.iterator(); iterator.hasNext(); )
    {
      cd = (SubKeyConstraintDescriptor) iterator.next();
      td = getConstraintTableDescriptor(cd.getUUID());
      cdl.add(getConstraintDescriptors(td).getConstraintDescriptorById(cd.getUUID()));
    }

    return cdl;
  }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.dictionary.SubKeyConstraintDescriptor

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.