com.puppycrawl.tools.checkstyle.checks.j2ee

Class ContainerManagedMethodChecker


public class ContainerManagedMethodChecker
extends EntityBeanMethodChecker

Checks methods of entity beans with container-managed persistence. Reference: Enterprise JavaBeansTM Specification,Version 2.0, Chapter 10

Author:
Rick Giles

Constructor Summary

ContainerManagedMethodChecker(EntityBeanCheck aCheck)
Constructs a ContainerManagedMethodChecker for a entity bean check.

Method Summary

protected void
checkCreateMethod(DetailAST aMethodAST)
Checks whether an ejbCreate<METHOD>(...) method of an entity bean satisfies requirements.
void
checkMethod(DetailAST aMethodAST)
protected void
checkSelectMethod(DetailAST aMethodAST)
Checks whether an ejbSelect<METHOD>(...) method of an entity bean satisfies requirements.

Methods inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.EntityBeanMethodChecker

checkCreateMatch, checkCreateMethod, checkHomeMethod, checkMethod, checkMethods, checkPostCreateMethod

Methods inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.BeanMethodChecker

checkCreateMethod, checkMethod

Methods inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.MethodChecker

checkMethod, checkMethod, checkMethods, checkNotThrows, checkThrows, getCheck, log, logName

Constructor Details

ContainerManagedMethodChecker

public ContainerManagedMethodChecker(EntityBeanCheck aCheck)
Constructs a ContainerManagedMethodChecker for a entity bean check.

Parameters:
aCheck - the entity bean check.

Method Details

checkCreateMethod

protected void checkCreateMethod(DetailAST aMethodAST)
Checks whether an ejbCreate<METHOD>(...) method of an entity bean satisfies requirements.
Overrides:
checkCreateMethod in interface EntityBeanMethodChecker

Parameters:
aMethodAST - the AST for the method definition.


checkMethod

public void checkMethod(DetailAST aMethodAST)
Overrides:
checkMethod in interface EntityBeanMethodChecker

See Also:
MethodChecker


checkSelectMethod

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

Parameters:
aMethodAST - the AST for the method definition.