com.puppycrawl.tools.checkstyle.checks.j2ee

Class PersistenceOption

Implemented Interfaces:
Serializable

public final class PersistenceOption
extends AbstractOption

Represents the policy for checking entity bean restrictions according to whether persistence is bean-managed, container-managed, or mixed.

Author:
Rick Giles

Field Summary

static PersistenceOption
BEAN
Represents the bean-managed persistence policy.
static PersistenceOption
CONTAINER
Represents the container-managed persistence policy.
static PersistenceOption
MIXED
Represents the policy that the persistence management may be bean-managed or container-managed.

Method Summary

protected Map
getStrToOpt()

Methods inherited from class com.puppycrawl.tools.checkstyle.checks.AbstractOption

decode, getStrToOpt, readResolve, toString

Field Details

BEAN

public static final PersistenceOption BEAN
Represents the bean-managed persistence policy.


CONTAINER

public static final PersistenceOption CONTAINER
Represents the container-managed persistence policy.


MIXED

public static final PersistenceOption MIXED
Represents the policy that the persistence management may be bean-managed or container-managed.

Method Details

getStrToOpt

protected Map getStrToOpt()
Overrides:
getStrToOpt in interface AbstractOption

See Also:
AbstractOption