Examples of SchemaDescriptor


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

    String                  tableName,
    DataDictionary          data_dictionary,
    TransactionController   tc)
        throws StandardException
  {
        SchemaDescriptor sd =
            data_dictionary.getSchemaDescriptor(schemaName, tc, true);
        TableDescriptor  td =
            data_dictionary.getTableDescriptor(tableName, sd);

        if (td == null)
View Full Code Here

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

    String                  tableName,
    DataDictionary          data_dictionary,
    TransactionController   tc)
        throws StandardException
  {
        SchemaDescriptor sd =
            data_dictionary.getSchemaDescriptor(schemaName, tc, true);
        TableDescriptor  td =
            data_dictionary.getTableDescriptor(tableName, sd);

        if (td == null)
View Full Code Here

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

   @exception StandardException    Thrown on error
   */
    public void resetDatabaseOwner( TransactionController tc )
        throws StandardException
    {
        SchemaDescriptor sd = locateSchemaRow
            (SchemaDescriptor.IBM_SYSTEM_SCHEMA_NAME, tc );
        authorizationDatabaseOwner = sd.getAuthorizationId();

        systemSchemaDesc.setAuthorizationId( authorizationDatabaseOwner );
        sysIBMSchemaDesc.setAuthorizationId( authorizationDatabaseOwner );
        systemUtilSchemaDesc.setAuthorizationId( authorizationDatabaseOwner );
    }
View Full Code Here

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

        addSystemSchema(
            SchemaDescriptor.STD_SYSTEM_UTIL_SCHEMA_NAME,
            SchemaDescriptor.SYSCS_UTIL_SCHEMA_UUID, tc);

      //Add the APP schema
      SchemaDescriptor appSchemaDesc = new SchemaDescriptor(this,
                                        SchemaDescriptor.STD_DEFAULT_SCHEMA_NAME,
                                        SchemaDescriptor.DEFAULT_USER_NAME,
                                        uuidFactory.recreateUUID( SchemaDescriptor.DEFAULT_SCHEMA_UUID),
                                        false);
 
View Full Code Here

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

    String                  schema_uuid,
    TransactionController   tc)
    throws StandardException
    {
    // create the descriptor
    SchemaDescriptor schema_desc =
            new SchemaDescriptor(
                this,
                schema_name,
                authorizationDatabaseOwner,
                uuidFactory.recreateUUID(schema_uuid),
                true);
View Full Code Here

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

                     TransactionController tc)
    throws StandardException
  {
    SystemColumn    theColumn;
    SystemColumn[]    columns = rowFactory.buildColumnList();
    SchemaDescriptor  sd = getSystemSchemaDescriptor();

    TableDescriptor td = getTableDescriptor(rowFactory.getCatalogName(), sd, tc);

    theColumn = columns[columnNumber - 1]// from 1 to 0 based
    ColumnDescriptor cd = makeColumnDescriptor(theColumn, columnNumber, td );
View Full Code Here

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

    ColumnDescriptor  cd;

    SystemColumn[]    columns = rowFactory.buildColumnList();
    ExecRow        templateRow = rowFactory.makeEmptyRow();
    int          columnCount = newColumnIDs.length;
    SchemaDescriptor  sd = getSystemSchemaDescriptor();
    TableDescriptor    td;
    long        conglomID;

    // Special case when adding a column to systables or syscolumns,
    // since we can't go to systables/syscolumns to get the
    // table/column descriptor until after we add and populate the new column.
    if (rowFactory instanceof SYSTABLESRowFactory)
    {
      td = dataDescriptorGenerator.newTableDescriptor(
            "SYSTABLES",
            sd,
            TableDescriptor.BASE_TABLE_TYPE,
            TableDescriptor.ROW_LOCK_GRANULARITY);
      td.setUUID(getUUIDForCoreTable("SYSTABLES", sd.getUUID().toString(), tc));
      conglomID = coreInfo[SYSTABLES_CORE_NUM].getHeapConglomerate();
    }
    else if (rowFactory instanceof SYSCOLUMNSRowFactory)
    {
      td = dataDescriptorGenerator.newTableDescriptor(
            "SYSCOLUMNS",
            sd,
            TableDescriptor.BASE_TABLE_TYPE,
            TableDescriptor.ROW_LOCK_GRANULARITY);
      td.setUUID(getUUIDForCoreTable("SYSCOLUMNS", sd.getUUID().toString(), tc));
      conglomID = coreInfo[SYSCOLUMNS_CORE_NUM].getHeapConglomerate();
    }
    else
    {
      td = getTableDescriptor( rowFactory.getCatalogName(), sd, tc );
View Full Code Here

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

    TransactionController  tc
    )
    throws StandardException
  {
    ExecRow        templateRow = rowFactory.makeEmptyRow();
    SchemaDescriptor  sd = getSystemSchemaDescriptor( );
    long        conglomID = getTableDescriptor( rowFactory.getCatalogName(), sd, tc ).getHeapConglomerateId();

    widenConglomerate( templateRow, newColumnIDs, conglomID, tc );
  }
View Full Code Here

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

    int            indexNumber,
    long          heapConglomerateNumber
    )
    throws StandardException
  {
    SchemaDescriptor    sd = getSystemSchemaDescriptor( );
    DataDescriptorGenerator ddg = getDataDescriptorGenerator();
    long          indexConglomerateNumber;

    ConglomerateDescriptor  conglomerateDescriptor = bootstrapOneIndex
      ( sd, tc, ddg, ti, indexNumber, heapConglomerateNumber );
View Full Code Here

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

    private SchemaDescriptor newSystemSchemaDesc(
    String  name,
    String  uuid)
    {
        return new SchemaDescriptor(
                this,
                name,
                authorizationDatabaseOwner,
                uuidFactory.recreateUUID(uuid),
                true);
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.