|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<LayerType>
org.springframework.roo.classpath.layers.LayerType
public enum LayerType
Typical layers within a user application. Roo is not limited to these layers alone; layer-providing addons can specify any desired integer position in order to appear in the correct part of the application architecture relative to the core position values shown below.
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic int getPosition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||