com.puppycrawl.tools.checkstyle.checks.j2ee

Class EntityBeanMethodChecker

public class EntityBeanMethodChecker extends BeanMethodChecker

Root class for entity bean method checks.

Author: Rick Giles

Constructor Summary
EntityBeanMethodChecker(EntityBeanCheck aCheck)
Constructs a EntityBeanMethodChecker for a bean check.
Method Summary
protected voidcheckCreateMatch()
Checks that every ejbCreate method has a matching ejbPostCreate method.
protected voidcheckCreateMethod(DetailAST aMethodAST)
{@inheritDoc}
protected voidcheckHomeMethod(DetailAST aMethodAST)
Checks whether an ejbHome<METHOD>(...) method of an entity bean satisfies requirements.
voidcheckMethod(DetailAST aMethodAST)
{@inheritDoc}
voidcheckMethods(DetailAST aAST)
{@inheritDoc}
protected voidcheckPostCreateMethod(DetailAST aMethodAST)
Checks whether an ejbPostCreate<METHOD>(...) method of an entity bean satisfies requirements.

Constructor Detail

EntityBeanMethodChecker

public EntityBeanMethodChecker(EntityBeanCheck aCheck)
Constructs a EntityBeanMethodChecker for a bean check.

Parameters: aCheck the bean check.

Method Detail

checkCreateMatch

protected void checkCreateMatch()
Checks that every ejbCreate method has a matching ejbPostCreate method.

checkCreateMethod

protected void checkCreateMethod(DetailAST aMethodAST)
{@inheritDoc}

checkHomeMethod

protected void checkHomeMethod(DetailAST aMethodAST)
Checks whether an ejbHome<METHOD>(...) method of an entity bean satisfies requirements.

Parameters: aMethodAST the AST for the method definition.

checkMethod

public void checkMethod(DetailAST aMethodAST)
{@inheritDoc}

checkMethods

public void checkMethods(DetailAST aAST)
{@inheritDoc}

checkPostCreateMethod

protected void checkPostCreateMethod(DetailAST aMethodAST)
Checks whether an ejbPostCreate<METHOD>(...) method of an entity bean satisfies requirements.

Parameters: aMethodAST the AST for the method definition.