|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.meta.AccessCode
public class AccessCode
Represents access styles for members of a class and field through a
5-bit integer.
The bits designate following aspects of access style being used at class
level:
Validation Rules for the bits:
Field Summary | |
---|---|
static int |
EMPTY
|
static int |
EXPLICIT
|
static int |
FIELD
|
static int |
MIXED
|
static int |
PROPERTY
|
static int |
UNKNOWN
|
Constructor Summary | |
---|---|
AccessCode()
|
Method Summary | |
---|---|
static int |
getMixedCode(int cCode,
int fCode)
|
static boolean |
isCompatibleSuper(int subCode,
int superCode)
Affirms if the sub class access type is compatible with super class access style. |
static boolean |
isEmpty(ClassMetaData meta)
|
static boolean |
isEmpty(int code)
|
static boolean |
isExplicit(int code)
|
static boolean |
isField(ClassMetaData meta)
|
static boolean |
isField(FieldMetaData meta)
|
static boolean |
isField(int code)
|
static boolean |
isMixed(int code)
Affirms if the given code designates that members can use both FIELD and PROPERTY based access. |
static boolean |
isProperty(ClassMetaData meta)
|
static boolean |
isProperty(FieldMetaData meta)
|
static boolean |
isProperty(int code)
|
static boolean |
isUnknown(ClassMetaData meta)
|
static boolean |
isUnknown(FieldMetaData meta)
|
static boolean |
isUnknown(int code)
|
static boolean |
isValidClassCode(int code)
Affirms if the given code is valid. |
static boolean |
isValidFieldCode(int code)
|
static int |
mergeFieldCode(ClassMetaData meta,
FieldMetaData fmd,
int fCode)
|
static int |
mergeFieldCode(int cCode,
int fCode)
Merges the field access type with the class access type provided such merge is valid. |
static String |
toClassString(int code)
|
static int |
toFieldCode(int code)
|
static String |
toFieldString(int code)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int UNKNOWN
public static int EMPTY
public static int FIELD
public static int PROPERTY
public static int EXPLICIT
public static int MIXED
Constructor Detail |
---|
public AccessCode()
Method Detail |
---|
public static boolean isValidClassCode(int code)
public static boolean isValidFieldCode(int code)
public static boolean isMixed(int code)
public static boolean isExplicit(int code)
public static boolean isProperty(int code)
public static boolean isField(int code)
public static boolean isUnknown(int code)
public static boolean isEmpty(int code)
public static boolean isField(ClassMetaData meta)
public static boolean isProperty(ClassMetaData meta)
public static boolean isUnknown(ClassMetaData meta)
public static boolean isEmpty(ClassMetaData meta)
public static boolean isField(FieldMetaData meta)
public static boolean isProperty(FieldMetaData meta)
public static boolean isUnknown(FieldMetaData meta)
public static boolean isCompatibleSuper(int subCode, int superCode)
public static int mergeFieldCode(ClassMetaData meta, FieldMetaData fmd, int fCode)
public static int mergeFieldCode(int cCode, int fCode)
if
- the given codes are not compatiblepublic static int getMixedCode(int cCode, int fCode)
public static int toFieldCode(int code)
public static String toFieldString(int code)
public static String toClassString(int code)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |