|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CommentPolicy>
org.ujorm.orm.ao.CommentPolicy
public enum CommentPolicy
Policy for assigning a comment form Comment annotation to database.
Comment,
MySqlDialect column implementation| Enum Constant Summary | |
|---|---|
ALWAYS
Write all available comments from annotations to database on each meta-model loading event. |
|
FOR_NEW_OBJECT
Assign the comment for a new table or new column. |
|
NEVER
No comments are assigned |
|
ON_ANY_CHANGE
Assign all available comments from annotations to database on a new database object event, exactly on new table, column or index. |
|
| Method Summary | |
|---|---|
static CommentPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CommentPolicy[] |
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 CommentPolicy ON_ANY_CHANGE
public static final CommentPolicy FOR_NEW_OBJECT
public static final CommentPolicy NEVER
public static final CommentPolicy ALWAYS
| Method Detail |
|---|
public static CommentPolicy[] values()
for (CommentPolicy c : CommentPolicy.values()) System.out.println(c);
public static CommentPolicy 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 null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||