Package org.apache.derby.catalog

Examples of org.apache.derby.catalog.UUID


      {
        for (int j = i + 1; j < uuids.length; j++)
        {
          if (uuids[i].toString().compareTo(uuids[j].toString()) > 0)
          {
            UUID  save = uuids[i];
            uuids[i] = uuids[j];
            uuids[j] = save;
          }
        }
      }
View Full Code Here


        int                             count = updateColumnList.size();
        ColumnDescriptorList    generatedColumns = baseTable.getGeneratedColumns();
        int                                 generatedColumnCount = generatedColumns.size();
    int                            columnCount = baseTable.getMaxColumnID();
        HashSet                     updatedColumns = new HashSet();
        UUID                            tableID = baseTable.getObjectID();
       
    for (int ix = 0; ix < count; ix++)
    {
      String      name = ((ResultColumn)updateColumnList.elementAt( ix )).getName();
View Full Code Here

   
    TransactionController tc = af.getTransaction(
        ContextService.getFactory().getCurrentContextManager());

    String  upgradeID = null;
    UUID  databaseID;

    if ((databaseID = (UUID) tc.getProperty(DataDictionary.DATABASE_ID)) == null) {

      // no property defined in the Transaction set
      // this could be an upgrade, see if it's stored in the service set
View Full Code Here

            td.getHeapConglomerateId(),
            colNumber,
            storableDV,
            columnInfo[ix].dataType.getCollationType());

    UUID defaultUUID = columnInfo[ix].newDefaultUUID;

    /* Generate a UUID for the default, if one exists
     * and there is no default id yet.
     */
    if (columnInfo[ix].defaultInfo != null &&
View Full Code Here

   
      // Drop any dependencies
      dm.clearDependencies(lcc, defaultDescriptor);
    }

    UUID defaultUUID = columnInfo[ix].newDefaultUUID;

    /* Generate a UUID for the default, if one exists
     * and there is no default id yet.
     */
    if (columnInfo[ix].defaultInfo != null &&
View Full Code Here

    throws StandardException
  {
    /* 3rd column is PROVIDERID (UUID - char(36)) */
    DataValueDescriptor  col = currentRow.getColumn(SYSDEPENDSRowFactory.SYSDEPENDS_PROVIDERID);
    String  providerIDstring = col.getString();
    UUID  providerUUID = getUUIDFactory().recreateUUID(providerIDstring);

    if ( providerID.equals( providerUUID ) ) { return getTrueValue(); }
    else { return getFalseValue(); }
  }
View Full Code Here

  {
    DataTypeDescriptor    dtd;
    ExecRow            row;
    DataValueDescriptor    col;
    String          name = null;
    UUID            oid = null;
    String          uuid = null
    String          aid = null;

    if (td != null)
    {
      SchemaDescriptor  schemaDescriptor = (SchemaDescriptor)td;

      name = schemaDescriptor.getSchemaName();
      oid = schemaDescriptor.getUUID();
      if ( oid == null )
        {
        oid = getUUIDFactory().createUUID();
        schemaDescriptor.setUUID(oid);
      }
      uuid = oid.toString();

      aid = schemaDescriptor.getAuthorizationId();
    }

    /* Build the row to insert */
 
View Full Code Here

          throws StandardException
  {
    DataValueDescriptor      col;
    SchemaDescriptor      descriptor;
    String            name;
    UUID              id;
    String            aid;
    String            uuid;
    DataDescriptorGenerator    ddg = dd.getDataDescriptorGenerator();

    if (SanityManager.DEBUG)
View Full Code Here

          throws StandardException
  {
    DataValueDescriptor    col;
    ExecRow            row;
    int            constraintIType;
    UUID          oid;
    String          constraintSType = null;
    String          constraintID = null;
    String          tableID = null;
    String          constraintName = null;
    String          schemaID = null;
    boolean          isEnabled = true;
    int            referenceCount = 0;

    if (td != null)
    {
      ConstraintDescriptor constraint = (ConstraintDescriptor)td;
      /*
      ** We only allocate a new UUID if the descriptor doesn't already have one.
      ** For descriptors replicated from a Source system, we already have an UUID.
      */
      oid = constraint.getUUID();
      constraintID = oid.toString();

      oid = constraint.getTableId();
      tableID = oid.toString();

      constraintName = constraint.getConstraintName();

      constraintIType = constraint.getConstraintType();
      switch (constraintIType)
View Full Code Here

    ConglomerateDescriptor conglomDesc;
    DataDescriptorGenerator ddg;
    TableDescriptor    td = null;
    int          constraintIType = -1;
    int[]        keyColumns = null;
    UUID        constraintUUID;
    UUID        schemaUUID;
    UUID        tableUUID;
    UUID        referencedConstraintId = null;
    SchemaDescriptor  schema;
    String        tableUUIDString;
    String        constraintName;
    String        constraintSType;
    String        constraintStateStr;
View Full Code Here

TOP

Related Classes of org.apache.derby.catalog.UUID

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.