public enum LayerType extends Enum<LayerType>
| Enum Constant and Description |
|---|
ACTIVE_RECORD
The pattern by which entities provide their own persistence methods.
|
DAO
Infrastructure component that provides low-level persistence operations,
e.g. to a single table of a relational database.
|
HIGHEST
The ultimate consumer of persistence-related operations, for example the
application's web or integration test layer.
|
REPOSITORY
Domain type that provides collection-like access to instances of
aggregate roots; implementations are usually persistence agnostic.
|
SERVICE
Domain type that implements an application's use-cases.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPosition()
Returns the position of this layer relative to other layers
|
static LayerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LayerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LayerType ACTIVE_RECORD
public static final LayerType DAO
public static final LayerType HIGHEST
public static final LayerType REPOSITORY
public static final LayerType SERVICE
public static LayerType[] values()
for (LayerType c : LayerType.values()) System.out.println(c);
public static LayerType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getPosition()
Copyright © 2009–2016. All rights reserved.