JBoss Metadata EJB 7.2.2.Final

org.jboss.metadata.ejb.spec
Class ApplicationExceptionMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.NamedMetaData
          extended by org.jboss.metadata.ejb.spec.ApplicationExceptionMetaData
All Implemented Interfaces:
Serializable, Cloneable, IdMetaData, MappableMetaData

public class ApplicationExceptionMetaData
extends NamedMetaData

ApplicationExceptionMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
ApplicationExceptionMetaData()
          Create a new ApplicationExceptionMetaData.
 
Method Summary
 String getExceptionClass()
          Get the exceptionClass.
 Boolean isInherited()
          Returns true if the application-exception is marked as "inherited".
 boolean isRollback()
          Get the rollback.
 void setExceptionClass(String exceptionClass)
          Set the exceptionClass.
 void setInherited(Boolean inherited)
          Sets the "inherited" attribute of application-exception
 void setRollback(boolean rollback)
          Set the rollback.
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaData
equals, getKey, getName, hashCode, setName, toString
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, getId, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationExceptionMetaData

public ApplicationExceptionMetaData()
Create a new ApplicationExceptionMetaData.

Method Detail

getExceptionClass

public String getExceptionClass()
Get the exceptionClass.

Returns:
the exceptionClass.

setExceptionClass

public void setExceptionClass(String exceptionClass)
Set the exceptionClass.

Parameters:
exceptionClass - the exceptionClass.
Throws:
IllegalArgumentException - for a null exceptionClass

isRollback

public boolean isRollback()
Get the rollback.

Returns:
the rollback.

setRollback

public void setRollback(boolean rollback)
Set the rollback.

Parameters:
rollback - the rollback.

isInherited

public Boolean isInherited()
Returns true if the application-exception is marked as "inherited". Returns false if "inherited" is explicitly marked as false. In case the application-exception doesn't explicitly specify the "inherited" attribute, then this method returns null.

Returns:

setInherited

public void setInherited(Boolean inherited)
Sets the "inherited" attribute of application-exception

Parameters:
inherited - True if the application-exception is to be marked as "inherited". False otherwise

JBoss Metadata EJB 7.2.2.Final

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.