Package org.apache.derby.iapi.sql.execute

Examples of org.apache.derby.iapi.sql.execute.ConstantAction


  {
    TransactionController tc = activation.getLanguageConnectionContext().getTransactionExecute();
    SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, tc, false);

    if (sd == null || sd.getUUID() == null) {
            ConstantAction csca
                = new CreateSchemaConstantAction(schemaName, (String) null);

            try {
                csca.executeConstantAction(activation);
            } catch (StandardException se) {
                if (se.getMessageId()
                    .equals(SQLState.LANG_OBJECT_ALREADY_EXISTS)) {
                    // Ignore "Schema already exists". Another thread has
                    // probably created it after we checked for it
View Full Code Here


  {
    TransactionController tc = activation.getLanguageConnectionContext().getTransactionExecute();
    SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, tc, false);

    if (sd == null || sd.getUUID() == null) {
            ConstantAction csca
                = new CreateSchemaConstantAction(schemaName, (String) null);

            try {
                csca.executeConstantAction(activation);
            } catch (StandardException se) {
                if (se.getMessageId()
                    .equals(SQLState.LANG_OBJECT_ALREADY_EXISTS)) {
                    // Ignore "Schema already exists". Another thread has
                    // probably created it after we checked for it
View Full Code Here

    super(source,
        ((constantActionItem == -1) ?activation.getConstantAction() :
        (ConstantAction)activation.getPreparedStatement().getSavedObject(constantActionItem)),
        activation);

    ConstantAction passedInConstantAction;
    if(constantActionItem == -1)
      passedInConstantAction = activation.getConstantAction(); //root table
    else
    {
      passedInConstantAction =
View Full Code Here

    super(source,
        ((constantActionItem == -1) ?activation.getConstantAction() :
        (ConstantAction)activation.getPreparedStatement().getSavedObject(constantActionItem)),
        activation);

    ConstantAction passedInConstantAction;
    if(constantActionItem == -1)
      passedInConstantAction = activation.getConstantAction(); //root table
    else
    {
      passedInConstantAction =
View Full Code Here

     throws StandardException
  {
    schemaName = JarDDL.getSchemaName(schemaName);

    GenericConstantActionFactory caf = getConstantActionFactory();
    ConstantAction ca =
      caf.getAddJarConstantAction(null,schemaName,sqlName,externalPath);
    ca.executeConstantAction(null);
  }
View Full Code Here

     throws StandardException
  {
    schemaName = JarDDL.getSchemaName(schemaName);

    GenericConstantActionFactory caf = getConstantActionFactory();
    ConstantAction ca =
      caf.getDropJarConstantAction(null,schemaName,sqlName);
    ca.executeConstantAction(null);
  }
View Full Code Here

     throws StandardException
  {
    schemaName = JarDDL.getSchemaName(schemaName);

    GenericConstantActionFactory caf = getConstantActionFactory();
    ConstantAction ca =
      caf.getReplaceJarConstantAction(null,schemaName,sqlName,externalPath);
    ca.executeConstantAction(null);
  }
View Full Code Here

  {
    TransactionController tc = activation.getLanguageConnectionContext().getTransactionExecute();
    SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, tc, false);

    if (sd == null || sd.getUUID() == null) {
      ConstantAction csca = new CreateSchemaConstantAction(schemaName, (String) null);
      csca.executeConstantAction(activation);

      sd = dd.getSchemaDescriptor(schemaName, tc, true);
    }

    return sd;
View Full Code Here

    super(source,
        ((constantActionItem == -1) ?activation.getConstantAction() :
        (ConstantAction)activation.getPreparedStatement().getSavedObject(constantActionItem)),
        activation);

    ConstantAction passedInConstantAction;
    if(constantActionItem == -1)
      passedInConstantAction = activation.getConstantAction(); //root table
    else
    {
      passedInConstantAction =
View Full Code Here

  {
    TransactionController tc = activation.getLanguageConnectionContext().getTransactionExecute();
    SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, tc, false);

    if (sd == null || sd.getUUID() == null) {
            ConstantAction csca
                = new CreateSchemaConstantAction(schemaName, (String) null);

            try {
                csca.executeConstantAction(activation);
            } catch (StandardException se) {
                if (se.getMessageId()
                    .equals(SQLState.LANG_OBJECT_ALREADY_EXISTS)) {
                    // Ignore "Schema already exists". Another thread has
                    // probably created it after we checked for it
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.execute.ConstantAction

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.