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

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.addDescriptor()


                  oldReferencingName,
                                    newReferencingName,
                                    originalWhenText);


    dd.addDescriptor(triggerd, triggerSd,
                DataDictionary.SYSTRIGGERS_CATALOG_NUM, false,
                tc);


    /* 
 
View Full Code Here


    td = ddg.newTableDescriptor(tableName,
                  sd,
                  tableType,
                  TableDescriptor.ROW_LOCK_GRANULARITY);

    dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM, false, tc);
    toid = td.getUUID();

    // for each column, stuff system.column
    ColumnDescriptor[] cdlArray = new ColumnDescriptor[columnInfo.length];
    int index = 1;
View Full Code Here

        dm.addDependency(vd, provider, lcc.getContextManager());
    }
    //store view's dependency on various privileges in the dependeny system
    storeViewTriggerDependenciesOnPrivileges(activation, vd);

    dd.addDescriptor(vd, sd, DataDictionary.SYSVIEWS_CATALOG_NUM, true, tc);
  }
}
View Full Code Here

            */
            dd.startWriting(lcc);

            UserDescriptor  userDescriptor = makeUserDescriptor( dd, tc, userName, password );

            dd.addDescriptor( userDescriptor, null, DataDictionary.SYSUSERS_CATALOG_NUM, false, tc );

            // turn on NATIVE::LOCAL authentication
            if ( dd.getAuthorizationDatabaseOwner().equals( userName ) )
            {
                tc.setProperty
View Full Code Here

                  referencingNew,
                  oldReferencingName,
                  newReferencingName);


    dd.addDescriptor(triggerd, triggerSd,
                DataDictionary.SYSTRIGGERS_CATALOG_NUM, false,
                tc);


    /* 
 
View Full Code Here

            for (int i=0; i < cardinality.length; i++) {
                StatisticsDescriptor statDesc = new StatisticsDescriptor(
                        dd, uf.createUUID(), index, table, "I",
                     new StatisticsImpl(numRows, cardinality[i]),
                     i+1);
                dd.addDescriptor(statDesc, null,
                        DataDictionary.SYSSTATISTICS_CATALOG_NUM, true, tc);
            }

            // Log some information.
            ConglomerateDescriptor cd = dd.getConglomerateDescriptor(index);
View Full Code Here

            */
            dd.startWriting(lcc);

            UserDescriptor  userDescriptor = makeUserDescriptor( dd, tc, userName, password );

            dd.addDescriptor( userDescriptor, null, DataDictionary.SYSUSERS_CATALOG_NUM, false, tc );

            // turn on NATIVE::LOCAL authentication
            if ( dd.getAuthorizationDatabaseOwner().equals( userName ) )
            {
                tc.setProperty
View Full Code Here

      // same namespace
      TableDescriptor td;
      DataDescriptorGenerator ddg = dd.getDataDescriptorGenerator();
      td = ddg.newTableDescriptor(aliasName, sd, TableDescriptor.SYNONYM_TYPE,
            TableDescriptor.DEFAULT_LOCK_GRANULARITY);
      dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM, false, tc);
            break;
   
    default:
      break;
    }
View Full Code Here

   
    default:
      break;
    }

    dd.addDescriptor(ads, null, DataDictionary.SYSALIASES_CATALOG_NUM,
             false, tc);

        adjustUDTDependencies( lcc, dd, ads, true );
  }
View Full Code Here

                  referencingNew,
                  oldReferencingName,
                  newReferencingName);


    dd.addDescriptor(triggerd, triggerSd,
                DataDictionary.SYSTRIGGERS_CATALOG_NUM, false,
                tc);


    /* 
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.