Class ContainerTransaction

java.lang.Object
java.util.Observable
org.glassfish.deployment.common.DynamicAttributesDescriptor
org.glassfish.deployment.common.Descriptor
org.glassfish.ejb.deployment.descriptor.ContainerTransaction
All Implemented Interfaces:
Serializable

public final class ContainerTransaction extends org.glassfish.deployment.common.Descriptor
This descriptor represents a specification of a transactional behavior.
Author:
Danny Coward
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Transaction is mandatory.
    static final String
    Never supply a transaction.
    static final String
    Transactions are not supported.
    static final String
    A transaction is required.
    static final String
    A new transaction must be created.
    static final String
    Transactions need support.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContainerTransaction(String transactionAttribute, String description)
    Create a new transaction descriptor with the given attribute.
    Copy constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
    Equality iff the other object is another container transaction with the same transaction attribute.
    The transaction attribute that I specify.
    int
     
    void
    print(StringBuffer toStringBuffer)
    Appends a formatted String representing my state.

    Methods inherited from class org.glassfish.deployment.common.Descriptor

    addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit

    Methods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor

    addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • ContainerTransaction

      public ContainerTransaction(ContainerTransaction other)
      Copy constructor.
    • ContainerTransaction

      public ContainerTransaction(String transactionAttribute, String description)
      Create a new transaction descriptor with the given attribute. Throws an IllegalArgumentException if the attribute is not an allowed type. The allowed types are enumeration ny this class.
      Parameters:
      transactionAttribute - .
      description - .
  • Method Details

    • getTransactionAttribute

      public String getTransactionAttribute()
      The transaction attribute that I specify.
      Returns:
      the transaction attribute.
    • equals

      public boolean equals(Object other)
      Equality iff the other object is another container transaction with the same transaction attribute.
      Overrides:
      equals in class Object
      Returns:
      true if the objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • print

      public void print(StringBuffer toStringBuffer)
      Appends a formatted String representing my state.
      Overrides:
      print in class org.glassfish.deployment.common.Descriptor