Examples of Activation


Examples of javax.resource.spi.Activation

         }
      }

      validProperties.trimToSize();

      Activation activation = (Activation) annotation.getAnnotation();
      ArrayList<MessageListener> messageListeners = null;
      if (trace)
         log.trace("Processing: " + activation);
      if (activation.messageListeners() != null)
      {
         messageListeners = new ArrayList<MessageListener>(activation.messageListeners().length);
         for (Class asClass : activation.messageListeners())
         {
            Activationspec asMeta = new ActivationSpecImpl(new XsdString(annotation.getClassName(), null),
                                                           requiredConfigProperties,
                                                           validProperties,
                                                           null);
View Full Code Here

Examples of javax.resource.spi.Activation

          }

          classes = finder.findAnnotatedClasses(Activation.class);
          for (Class<?> cls : classes) {
            MessageListener messageListener = null;
            Activation activationAnnotation = cls.getAnnotation(Activation.class);

            List<MessageListener> messageListeners = messageAdapter.getMessageListener();
        for (MessageListener ml : messageListeners) {
          if (cls.getName().equals(ml.getActivationSpec().getActivationSpecClass())) {
            messageListener = ml;
            break;
          }
        }

        if (messageListener == null) {
          Class<?>[] listeners = activationAnnotation.messageListeners();
          for (Class<?> listener : listeners) {
            messageAdapter.addMessageListener(new MessageListener(listener.getName(), cls.getName()));
          }
        }
      }
View Full Code Here

Examples of org.apache.derby.iapi.sql.Activation

   */
  public ResultSet getInsertResultSet(NoPutResultSet source,
                    GeneratedMethod checkGM)
    throws StandardException
  {
    Activation activation = source.getActivation();
    getAuthorizer(activation).authorize(activation, Authorizer.SQL_WRITE_OP);
    return new InsertResultSet(source, checkGM, activation );
  }
View Full Code Here

Examples of org.apache.derby.iapi.sql.Activation

  public ResultSet getInsertVTIResultSet(NoPutResultSet source,
                    NoPutResultSet vtiRS
                    )
    throws StandardException
  {
    Activation activation = source.getActivation();
    getAuthorizer(activation).authorize(activation, Authorizer.SQL_WRITE_OP);
    return new InsertVTIResultSet(source, vtiRS, activation );
  }
View Full Code Here

Examples of org.apache.derby.iapi.sql.Activation

    @exception StandardException thrown on error
   */
  public ResultSet getDeleteVTIResultSet(NoPutResultSet source)
    throws StandardException
  {
    Activation activation = source.getActivation();
    getAuthorizer(activation).authorize(activation, Authorizer.SQL_WRITE_OP);
    return new DeleteVTIResultSet(source, activation);
  }
View Full Code Here

Examples of org.apache.derby.iapi.sql.Activation

    @exception StandardException thrown on error
   */
  public ResultSet getDeleteResultSet(NoPutResultSet source)
      throws StandardException
  {
    Activation activation = source.getActivation();
    getAuthorizer(activation).authorize(activation, Authorizer.SQL_WRITE_OP);
    return new DeleteResultSet(source, activation );
  }
View Full Code Here

Examples of org.apache.derby.iapi.sql.Activation

                         int constantActionItem,
                         ResultSet[] dependentResultSets,
                         String resultSetId)
    throws StandardException
  {
    Activation activation = source.getActivation();
    getAuthorizer(activation).authorize(activation, Authorizer.SQL_WRITE_OP);
    return new DeleteCascadeResultSet(source, activation,
                      constantActionItem,
                      dependentResultSets,
                      resultSetId);
View Full Code Here

Examples of org.apache.derby.iapi.sql.Activation

   */
  public ResultSet getUpdateResultSet(NoPutResultSet source,
                    GeneratedMethod checkGM)
      throws StandardException
  {
    Activation activation = source.getActivation();
    //The stress test failed with null pointer exception in here once and then
    //it didn't happen again. It can be a jit problem because after this null
    //pointer exception, the cleanup code in UpdateResultSet got a null
    //pointer exception too which can't happen since the cleanup code checks
    //for null value before doing anything.
View Full Code Here

Examples of org.apache.derby.iapi.sql.Activation

    @exception StandardException thrown on error
   */
  public ResultSet getUpdateVTIResultSet(NoPutResultSet source)
      throws StandardException
  {
    Activation activation = source.getActivation();
    getAuthorizer(activation).authorize(activation, Authorizer.SQL_WRITE_OP);
    return new UpdateVTIResultSet(source, activation);
  }
View Full Code Here

Examples of org.apache.derby.iapi.sql.Activation

                           GeneratedMethod checkGM,
                           int constantActionItem,
                           int rsdItem)
      throws StandardException
  {
    Activation activation = source.getActivation();
    getAuthorizer(activation).authorize(activation, Authorizer.SQL_WRITE_OP);
    return new UpdateResultSet(source, checkGM, activation,
                   constantActionItem, rsdItem);
  }
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.