|
||||||||||
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. |
static PersistenceStrategy |
getPersistenceStrategy(FieldMetaData fmd,
Member member)
Return the code for the strategy of the given member. |
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 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 |