|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JpaPlatform
This interface is to be implemented by a JPA vendor to provide extensions to the core JPA model. The core JPA model will provide functionality for JPA spec annotations in java, persistence.xml and (orm.xml) mapping files. The org.eclipse.jpt.core.genericPlatform extension supplies resource models for those file types. As another vendor option you will have to supply those resource models as well or different ones as necessary. See the org.eclipse.jpt.core.jpaPlatform extension point Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Method Summary | |
---|---|
void |
addToMessages(JpaProject project,
java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages)
Adds validation messages to the growing list of messages for a given project |
JavaAttributeMapping |
buildDefaultJavaAttributeMapping(JavaPersistentAttribute parent)
Build a default Java attribute mapping with the given mapping annotation and parent. |
JavaAttributeMapping |
buildJavaAttributeMappingFromAnnotation(java.lang.String mappingAnnotationName,
JavaPersistentAttribute parent)
Build a Java attribute mapping with the given mapping annotation and parent. |
JavaAttributeMapping |
buildJavaAttributeMappingFromMappingKey(java.lang.String attributeMappingKey,
JavaPersistentAttribute parent)
Build a Java attribute mapping with the given mapping key and parent. |
JavaTypeMapping |
buildJavaTypeMappingFromAnnotation(java.lang.String mappingAnnotationName,
JavaPersistentType parent)
Build a Java type mapping with the given mapping annotation and parent. |
JavaTypeMapping |
buildJavaTypeMappingFromMappingKey(java.lang.String typeMappingKey,
JavaPersistentType parent)
Build a Java type mapping with the given mapping key and parent. |
JpaFile |
buildJpaFile(JpaProject jpaProject,
org.eclipse.core.resources.IFile file)
Construct a JPA file for the specified file, to be added to the specified JPA project. |
java.lang.String |
defaultJavaAttributeMappingKey(JavaPersistentAttribute persistentAttribute)
Return the attribute mapping key corresponding to the default atribute mapping that applies to the Java persistent attribute. |
JpaAnnotationProvider |
getAnnotationProvider()
Return an annotation provider responsible for determining what annotations are supported and constructing java resource model objects |
java.lang.String |
getId()
Get the ID for this platform |
JpaFactory |
getJpaFactory()
Return a factory responsible for creating core (e.g. |
void |
setId(java.lang.String theId)
Set the ID for this platform. |
Method Detail |
---|
java.lang.String getId()
void setId(java.lang.String theId)
JpaFile buildJpaFile(JpaProject jpaProject, org.eclipse.core.resources.IFile file)
JpaFactory getJpaFactory()
JpaAnnotationProvider getAnnotationProvider()
JavaTypeMapping buildJavaTypeMappingFromMappingKey(java.lang.String typeMappingKey, JavaPersistentType parent)
#GenericJpaPlatform.addJavaTypeMappingProvidersTo(Collection)
to add new supported type mappings to the platform
JavaTypeMapping buildJavaTypeMappingFromAnnotation(java.lang.String mappingAnnotationName, JavaPersistentType parent)
#GenericJpaPlatform.addJavaTypeMappingProvidersTo(Collection)
to add new supported type mappings to the platform
JavaAttributeMapping buildJavaAttributeMappingFromMappingKey(java.lang.String attributeMappingKey, JavaPersistentAttribute parent)
#GenericJpaPlatform.addJavaAttributeMappingProvidersTo(Collection)
to add new supported attribute mappings to the platform
JavaAttributeMapping buildJavaAttributeMappingFromAnnotation(java.lang.String mappingAnnotationName, JavaPersistentAttribute parent)
#GenericJpaPlatform.addJavaAttributeMappingProvidersTo(Collection)
to add new supported attribute mappings to the platform
JavaAttributeMapping buildDefaultJavaAttributeMapping(JavaPersistentAttribute parent)
#GenericJpaPlatform.addDefaultJavaAttributeMappingProvidersTo(Collection)
to add new supported attribute mappings to the platform
java.lang.String defaultJavaAttributeMappingKey(JavaPersistentAttribute persistentAttribute)
DefaultJavaAttributeMappingProvider.#defaultApplies(JavaPersistentAttribute)
void addToMessages(JpaProject project, java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |