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
FieldsModifier and TypeFieldDescriptionstatic final StringTransaction is mandatory.static final StringNever supply a transaction.static final StringTransactions are not supported.static final StringA transaction is required.static final StringA new transaction must be created.static final StringTransactions need support. -
Constructor Summary
ConstructorsConstructorDescriptionContainerTransaction(String transactionAttribute, String description) Create a new transaction descriptor with the given attribute.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality iff the other object is another container transaction with the same transaction attribute.The transaction attribute that I specify.inthashCode()voidprint(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, visitMethods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
NOT_SUPPORTED
Transactions are not supported.- See Also:
-
SUPPORTS
Transactions need support.- See Also:
-
REQUIRED
A transaction is required.- See Also:
-
REQUIRES_NEW
A new transaction must be created.- See Also:
-
MANDATORY
Transaction is mandatory.- See Also:
-
NEVER
Never supply a transaction.- See Also:
-
-
Constructor Details
-
ContainerTransaction
Copy constructor. -
ContainerTransaction
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
The transaction attribute that I specify.- Returns:
- the transaction attribute.
-
equals
Equality iff the other object is another container transaction with the same transaction attribute. -
hashCode
public int hashCode() -
print
Appends a formatted String representing my state.- Overrides:
printin classorg.glassfish.deployment.common.Descriptor
-