public interface MetaDataDefaults extends CallbackModes
CALLBACK_FAIL_FAST, CALLBACK_IGNORE, CALLBACK_LOG, CALLBACK_RETHROW, CALLBACK_ROLLBACK
Modifier and Type | Method and Description |
---|---|
Member |
getBackingMember(FieldMetaData field)
Return the backing member for the given field metadata.
|
int |
getCallbackMode()
What to do on lifecycle callback exceptions.
|
boolean |
getCallbacksBeforeListeners(int type)
If callbacks are fired before listeners for the given
event type.
|
int |
getDefaultAccessType()
Return the default access type for a base persistent class with
ClassMetaData.ACCESS_UNKNOWN access type. |
int |
getDefaultIdentityType()
Return the default identity type for unmapped classes without primary
key fields.
|
String |
getDefaultSchema()
Returns the default schema.
|
Member |
getMemberByProperty(ClassMetaData meta,
String attribute,
int access,
boolean scanAnnotation)
Get the field or getter for the given attribute of the given class.
|
Class |
getUnimplementedExceptionType()
Return a runtime exception class to throw for un-implemented
managed interface methods.
|
boolean |
isAbstractMappingUniDirectional(OpenJPAConfiguration conf)
Whether the relationship in MappedSuper class must be
uni-directional.
|
boolean |
isDataStoreObjectIdFieldUnwrapped()
Whether the field in the object id class corresponding to a
datastore id persistence-capable primary key field is the simple
datastore id value of the related instance.
|
boolean |
isDeclaredInterfacePersistent()
Whether declared interfaces of a class are treated as persistent
types.
|
Boolean |
isDefaultCascadePersistEnabled()
Whether cascade-persist was declared in the persistence unit defaults.
|
boolean |
isNonDefaultMappingAllowed(OpenJPAConfiguration conf)
Whether non-default mapping is allowed.
|
void |
populate(ClassMetaData meta,
int access)
Populate the given metadata with default settings.
|
void |
populate(ClassMetaData meta,
int access,
boolean ignoreTransient)
Populate the given metadata with default settings.
|
void |
setDefaultCascadePersistEnabled(Boolean bool) |
void |
setDefaultSchema(String schema)
Sets the default schema.
|
void |
setIgnoreNonPersistent(boolean ignore)
Whether to ignore members which are not persistent by default
during metadata population.
|
int getDefaultAccessType()
ClassMetaData.ACCESS_UNKNOWN
access type.int getDefaultIdentityType()
int getCallbackMode()
boolean getCallbacksBeforeListeners(int type)
boolean isDeclaredInterfacePersistent()
boolean isDataStoreObjectIdFieldUnwrapped()
void setIgnoreNonPersistent(boolean ignore)
void populate(ClassMetaData meta, int access)
access
- access type constant from ClassMetaData
void populate(ClassMetaData meta, int access, boolean ignoreTransient)
access
- access type constant from ClassMetaData
Member getBackingMember(FieldMetaData field)
Member getMemberByProperty(ClassMetaData meta, String attribute, int access, boolean scanAnnotation)
meta
- is the declaring classattribute
- name of the logical attributeaccess
- whether to look for the field of getter method.
If unknown, then field or property is chosen based on the access type
used by the given class.scanAnnotation
- if true and access is unknown then scans the
annotation on the member to determine access.Class getUnimplementedExceptionType()
boolean isAbstractMappingUniDirectional(OpenJPAConfiguration conf)
boolean isNonDefaultMappingAllowed(OpenJPAConfiguration conf)
Boolean isDefaultCascadePersistEnabled()
void setDefaultCascadePersistEnabled(Boolean bool)
String getDefaultSchema()
void setDefaultSchema(String schema)
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.