Interface ConstantEnum
-
- All Implemented Interfaces:
public interface ConstantEnumConstant enum for programming convenience, to be consistent with sys_constant_enum in database. `SUPER`, a convention value, represents this group and has 3 characteristics - the name is `SUPER` - `id` ends with `00` - `code` is either `id` or `code`- Since:
2019-09-17
trydofor
-
-
Method Summary
Modifier and Type Method Description abstract intgetId()dynamic id has 9+ digits, static id has 8 digits; `3-2-2` segmentation recommended (table-group-value); `00` ending is SUPER StringgetType()Enum grouping: same type for same enum, auto Pascal naming StringgetInfo()booleanisSuper()Whether end with `00` booleansameSuper(long id)Whether in same Super (same group) booleansameSuper(ConstantEnum e)intgetSuperId()booleanisStandard()Whether a standard database compatible x-2-2 format -
-
Method Detail
-
getId
abstract int getId()
dynamic id has 9+ digits, static id has 8 digits; `3-2-2` segmentation recommended (table-group-value); `00` ending is SUPER
-
isSuper
boolean isSuper()
Whether end with `00`
-
sameSuper
boolean sameSuper(long id)
Whether in same Super (same group)
-
sameSuper
boolean sameSuper(ConstantEnum e)
-
getSuperId
int getSuperId()
-
isStandard
boolean isStandard()
Whether a standard database compatible x-2-2 format
-
-
-
-