|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.meta.AbstractMetaDataDefaults org.apache.openjpa.persistence.PersistenceMetaDataDefaults
public class PersistenceMetaDataDefaults
JPA-based metadata defaults.
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.event.CallbackModes |
---|
CALLBACK_FAIL_FAST, CALLBACK_IGNORE, CALLBACK_LOG, CALLBACK_RETHROW, CALLBACK_ROLLBACK |
Constructor Summary | |
---|---|
PersistenceMetaDataDefaults()
|
Method Summary | |
---|---|
protected int |
getAccessType(ClassMetaData meta)
Return the access type of the given metadata. |
boolean |
getAllowsMultipleMethodsForSameCallback()
Flags if multiple methods of the same class can handle the same callback event. |
protected List |
getFieldAccessNames(ClassMetaData meta)
Return the list of fields in meta that use field access,
or null if a list of fields is unobtainable. |
static PersistenceStrategy |
getPersistenceStrategy(FieldMetaData fmd,
Member member)
Return the code for the strategy of the given member. |
protected List |
getPropertyAccessNames(ClassMetaData meta)
Return the list of methods in meta that use property access,
or null if a list of methods is unobtainable. |
protected boolean |
isDefaultPersistent(ClassMetaData meta,
Member member,
String name)
Return true if the given member is persistent by default. |
void |
populate(ClassMetaData meta,
int access)
Populate the given metadata with default settings. |
protected void |
populate(FieldMetaData fmd)
Populate initial field data. |
void |
setAllowsMultipleMethodsForSameCallback(boolean flag)
Flags if multiple methods of the same class can handle the same callback event. |
void |
setDefaultAccessType(String type)
Auto-configuration method for the default access type of base classes with ACCESS_UNKNOWN |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistenceMetaDataDefaults()
Method Detail |
---|
public static PersistenceStrategy getPersistenceStrategy(FieldMetaData fmd, Member member)
public boolean getAllowsMultipleMethodsForSameCallback()
public void setAllowsMultipleMethodsForSameCallback(boolean flag)
public void setDefaultAccessType(String type)
public void populate(ClassMetaData meta, int access)
MetaDataDefaults
populate
in interface MetaDataDefaults
populate
in class AbstractMetaDataDefaults
access
- access type constant from ClassMetaData
protected void populate(FieldMetaData fmd)
AbstractMetaDataDefaults
populate
in class AbstractMetaDataDefaults
protected int getAccessType(ClassMetaData meta)
AbstractMetaDataDefaults
getAccessType
in class AbstractMetaDataDefaults
protected List getFieldAccessNames(ClassMetaData meta)
AbstractMetaDataDefaults
meta
that use field access,
or null
if a list of fields is unobtainable. An empty list
should be returned if the list of fields is obtainable, but there
happens to be no field access in meta
.
This is used for error reporting purposes only, so need not be efficient.
This implementation returns null
.
getFieldAccessNames
in class AbstractMetaDataDefaults
protected List getPropertyAccessNames(ClassMetaData meta)
AbstractMetaDataDefaults
meta
that use property access,
or null
if a list of methods is unobtainable. An empty list
should be returned if the list of methods is obtainable, but there
happens to be no property access in meta
.
This is used for error reporting purposes only, so need not be efficient.
This implementation returns null
.
getPropertyAccessNames
in class AbstractMetaDataDefaults
protected boolean isDefaultPersistent(ClassMetaData meta, Member member, String name)
AbstractMetaDataDefaults
isDefaultPersistent
in class AbstractMetaDataDefaults
name
- the field name from AbstractMetaDataDefaults.getFieldName(java.lang.reflect.Member)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |