Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.puppycrawl.tools.checkstyle.checks.j2ee
Class BeanManagedMethodChecker  view BeanManagedMethodChecker download BeanManagedMethodChecker.java

java.lang.Object
  extended bycom.puppycrawl.tools.checkstyle.checks.j2ee.MethodChecker
      extended bycom.puppycrawl.tools.checkstyle.checks.j2ee.BeanMethodChecker
          extended bycom.puppycrawl.tools.checkstyle.checks.j2ee.EntityBeanMethodChecker
              extended bycom.puppycrawl.tools.checkstyle.checks.j2ee.BeanManagedMethodChecker

public class BeanManagedMethodChecker
extends EntityBeanMethodChecker

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


Field Summary
private  boolean mHasEjbFindByPrimaryKey
          true if the bean has method ejbFindByPrimaryKey
 
Fields inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.EntityBeanMethodChecker
 
Fields inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.MethodChecker
 
Constructor Summary
BeanManagedMethodChecker(EntityBeanCheck aCheck)
          Constructs a BeanManagedMethodChecker.
 
Method Summary
private  void checkFindMethod(com.puppycrawl.tools.checkstyle.api.DetailAST aMethodAST)
          Checks whether an ejbFind<METHOD>(...) method of an entity bean satisfies requirements.
 void checkMethod(com.puppycrawl.tools.checkstyle.api.DetailAST aMethodAST)
          Checks whether a method satisfies component requirements.
 void checkMethods(com.puppycrawl.tools.checkstyle.api.DetailAST aAST)
          Checks that the methods of a component satisfy requirements.
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.EntityBeanMethodChecker
checkCreateMatch, checkCreateMethod, checkHomeMethod, checkPostCreateMethod
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.MethodChecker
checkMethod, checkNotThrows, checkThrows, getCheck, log, logName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mHasEjbFindByPrimaryKey

private boolean mHasEjbFindByPrimaryKey
true if the bean has method ejbFindByPrimaryKey

Constructor Detail

BeanManagedMethodChecker

public BeanManagedMethodChecker(EntityBeanCheck aCheck)
Constructs a BeanManagedMethodChecker.

Method Detail

checkMethods

public void checkMethods(com.puppycrawl.tools.checkstyle.api.DetailAST aAST)
Description copied from class: MethodChecker
Checks that the methods of a component satisfy requirements.

Overrides:
checkMethods in class EntityBeanMethodChecker

checkMethod

public void checkMethod(com.puppycrawl.tools.checkstyle.api.DetailAST aMethodAST)
Description copied from class: MethodChecker
Checks whether a method satisfies component requirements.

Overrides:
checkMethod in class EntityBeanMethodChecker

checkFindMethod

private void checkFindMethod(com.puppycrawl.tools.checkstyle.api.DetailAST aMethodAST)
Checks whether an ejbFind<METHOD>(...) method of an entity bean satisfies requirements.