com.sun.enterprise.deployment
Class ContainerTransaction

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.ContainerTransaction
All Implemented Interfaces:
java.io.Serializable

public final class ContainerTransaction
extends Descriptor

This descriptor represents a specification of a transactional behavior.

Author:
Danny Coward
See Also:
Serialized Form

Field Summary
static java.lang.String MANDATORY
          Transaction is mandatory.
static java.lang.String NEVER
          Never supply a transaction.
static java.lang.String NOT_SUPPORTED
          Transactions are not supported.
static java.lang.String REQUIRED
          A transaction is required.
static java.lang.String REQUIRES_NEW
          A new transaction must be created.
static java.lang.String SUPPORTS
          Transactions need support.
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
ContainerTransaction(ContainerTransaction other)
          Copy constructor.
ContainerTransaction(java.lang.String transactionAttribute, java.lang.String description)
          Create a new transaction descriptor with the given attribute.
 
Method Summary
 boolean equals(java.lang.Object other)
          Equality iff the other object is another container transaction with the same transaction attribute.
 java.lang.String getTransactionAttribute()
          The transaction attribute that I specify.
 int hashCode()
           
 void print(java.lang.StringBuffer toStringBuffer)
          Returns a formatted String representing my state.
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDisplayName, getDocType, 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 com.sun.enterprise.deployment.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_SUPPORTED

public static final java.lang.String NOT_SUPPORTED
Transactions are not supported.

See Also:
Constant Field Values

SUPPORTS

public static final java.lang.String SUPPORTS
Transactions need support.

See Also:
Constant Field Values

REQUIRED

public static final java.lang.String REQUIRED
A transaction is required.

See Also:
Constant Field Values

REQUIRES_NEW

public static final java.lang.String REQUIRES_NEW
A new transaction must be created.

See Also:
Constant Field Values

MANDATORY

public static final java.lang.String MANDATORY
Transaction is mandatory.

See Also:
Constant Field Values

NEVER

public static final java.lang.String NEVER
Never supply a transaction.

See Also:
Constant Field Values
Constructor Detail

ContainerTransaction

public ContainerTransaction(ContainerTransaction other)
Copy constructor.


ContainerTransaction

public ContainerTransaction(java.lang.String transactionAttribute,
                            java.lang.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 Detail

getTransactionAttribute

public java.lang.String getTransactionAttribute()
The transaction attribute that I specify.

Returns:
the transaction attribute.

equals

public boolean equals(java.lang.Object other)
Equality iff the other object is another container transaction with the same transaction attribute.

Overrides:
equals in class java.lang.Object
Returns:
true if the objects are equal, false otherwise.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

print

public void print(java.lang.StringBuffer toStringBuffer)
Returns a formatted String representing my state.

Overrides:
print in class Descriptor


Copyright © 2012 GlassFish Community. All Rights Reserved.