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

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


                true);
    }

    private SchemaDescriptor newDeclaredGlobalTemporaryTablesSchemaDesc( String name)
    {
        return new SchemaDescriptor(this,
                                        name,
                                        authorizationDatabaseOwner,
                                        (UUID) null,
                                        false);
    }
View Full Code Here


    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 */
    row = getExecutionFactory().getValueRow(SYSSCHEMAS_COLUMN_COUNT);

View Full Code Here

    TupleDescriptor      parentTupleDescriptor,
    DataDictionary       dd )
          throws StandardException
  {
    DataValueDescriptor      col;
    SchemaDescriptor      descriptor;
    String            name;
    UUID              id;
    String            aid;
    String            uuid;
    DataDescriptorGenerator    ddg = dd.getDataDescriptorGenerator();
View Full Code Here

    int[]        keyColumns = null;
    UUID        constraintUUID;
    UUID        schemaUUID;
    UUID        tableUUID;
    UUID        referencedConstraintId = null;
    SchemaDescriptor  schema;
    String        tableUUIDString;
    String        constraintName;
    String        constraintSType;
    String        constraintStateStr;
    boolean        constraintEnabled;
View Full Code Here

    TransactionController     tc        = lcc.getTransactionExecute();

    try
        {
            DataDictionary data_dictionary = lcc.getDataDictionary();
            SchemaDescriptor sd =
                data_dictionary.getSchemaDescriptor(schema, tc, true);
            TableDescriptor  td =
                data_dictionary.getTableDescriptor(tablename, sd, tc);

            if (td != null && td.getTableType() == TableDescriptor.VTI_TYPE)
View Full Code Here

    // Check that the current user has permission to grant the privileges.
    LanguageConnectionContext lcc = activation.getLanguageConnectionContext();
    DataDictionary dd = lcc.getDataDictionary();
    String currentUser = lcc.getAuthorizationId();
    TransactionController tc = lcc.getTransactionExecute();
        SchemaDescriptor sd = _tupleDescriptor.getSchemaDescriptor();
        UUID objectID = _tupleDescriptor.getUUID();
        String objectTypeName = _tupleDescriptor.getObjectTypeName();

    // Check that the current user has permission to grant the privileges.
    checkOwnership( currentUser, (TupleDescriptor) _tupleDescriptor, sd, dd );
View Full Code Here

    if (targetTableName != null)
    {
      /*
      ** Get the TableDescriptor for the table we are inserting into
      */
      SchemaDescriptor sdtc = getSchemaDescriptor(targetTableName.getSchemaName());

      targetTableDescriptor = getTableDescriptor(
              targetTableName.getTableName(), sdtc);

      if (targetTableDescriptor == null)
View Full Code Here

  * @exception  StandardException  throws on schema name
  *            that doesn't exist 
  */
  public SchemaDescriptor getSchemaDescriptor() throws StandardException
  {
    SchemaDescriptor    sd;

    sd = getSchemaDescriptor(targetTableName.getSchemaName());

    return sd;
 
View Full Code Here

                //
                // Unqualified function references should resolve to the
                // current schema at the time that the table was
                // created/altered. See DERBY-3945.
                //
                SchemaDescriptor    originalCurrentSchema = getSchemaDescriptor( di.getOriginalCurrentSchema(), true );
                compilerContext.pushCompilationSchema( originalCurrentSchema );

        try {
                    bindRowScopedExpression( getNodeFactory(), getContextManager(), targetTableDescriptor, sourceRCL, generationClause );
                }
View Full Code Here

    if (targetTableName != null)
    {
      /*
      ** Get the TableDescriptor for the table we are inserting into
      */
      SchemaDescriptor sdtc = getSchemaDescriptor(targetTableName.getSchemaName());

      targetTableDescriptor = getTableDescriptor(
              targetTableName.getTableName(), sdtc);

      if (targetTableDescriptor == null)
View Full Code Here

TOP

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

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.