|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JpaFactory
Use a JPA factory to build any core (e.g. JpaProject)
model object or any Java (e.g. JavaEntity), ORM (e.g.
EntityMappings), or persistence (e.g. PersistenceUnit)
context model objects.
Assumes a base JPA project context structure corresponding to the JPA spec:
RootContext
|- persistence.xml
|- persistence unit(s)
|- mapping file(s) (e.g. orm.xml)
| |- persistent type mapping(s) (e.g. Entity)
| |- persistent attribute mapping(s) (e.g. Basic)
|- persistent type mapping(s)
... and associated objects.
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.
GenericJpaFactory| Method Detail |
|---|
JpaProject buildJpaProject(JpaProject.Config config)
JpaDataSource buildJpaDataSource(JpaProject jpaProject,
java.lang.String connectionProfileName)
JpaFile buildJpaFile(JpaProject jpaProject,
org.eclipse.core.resources.IFile file,
org.eclipse.core.runtime.content.IContentType contentType,
JptResourceModel resourceModel)
JpaRootContextNode buildRootContextNode(JpaProject jpaProject)
JpaProject.update(org.eclipse.core.runtime.IProgressMonitor)
PersistenceXml buildPersistenceXml(JpaRootContextNode parent,
JpaXmlResource resource)
MappingFile buildMappingFile(MappingFileRef parent,
JpaXmlResource resource)
JavaPersistentType buildJavaPersistentType(PersistentType.Owner owner,
JavaResourcePersistentType jrpt)
JavaEntity buildJavaEntity(JavaPersistentType parent,
EntityAnnotation entityAnnotation)
JavaMappedSuperclass buildJavaMappedSuperclass(JavaPersistentType parent,
MappedSuperclassAnnotation mappedSuperclassAnnotation)
JavaEmbeddable buildJavaEmbeddable(JavaPersistentType parent,
EmbeddableAnnotation embeddableAnnotation)
JavaTypeMapping buildJavaNullTypeMapping(JavaPersistentType parent)
JavaPersistentAttribute buildJavaPersistentAttribute(PersistentType parent,
JavaResourcePersistentAttribute jrpa)
JavaBasicMapping buildJavaBasicMapping(JavaPersistentAttribute parent)
JavaEmbeddedIdMapping buildJavaEmbeddedIdMapping(JavaPersistentAttribute parent)
JavaEmbeddedMapping buildJavaEmbeddedMapping(JavaPersistentAttribute parent)
JavaIdMapping buildJavaIdMapping(JavaPersistentAttribute parent)
JavaManyToManyMapping buildJavaManyToManyMapping(JavaPersistentAttribute parent)
JavaManyToOneMapping buildJavaManyToOneMapping(JavaPersistentAttribute parent)
JavaOneToManyMapping buildJavaOneToManyMapping(JavaPersistentAttribute parent)
JavaOneToOneMapping buildJavaOneToOneMapping(JavaPersistentAttribute parent)
JavaTransientMapping buildJavaTransientMapping(JavaPersistentAttribute parent)
JavaVersionMapping buildJavaVersionMapping(JavaPersistentAttribute parent)
JavaAttributeMapping buildJavaNullAttributeMapping(JavaPersistentAttribute parent)
JavaGeneratorContainer buildJavaGeneratorContainer(JavaJpaContextNode parent,
JavaGeneratorContainer.Owner owner)
JavaTable buildJavaTable(JavaEntity parent,
Table.Owner owner)
JavaJoinTable buildJavaJoinTable(JavaJoinTableRelationshipStrategy parent,
Table.Owner owner)
JavaVirtualJoinTable buildJavaVirtualJoinTable(JavaVirtualJoinTableRelationshipStrategy parent,
JoinTable overriddenTable)
JavaColumn buildJavaColumn(JavaJpaContextNode parent,
JavaColumn.Owner owner)
JavaVirtualColumn buildJavaVirtualColumn(JavaJpaContextNode parent,
JavaVirtualColumn.Owner owner)
JavaDiscriminatorColumn buildJavaDiscriminatorColumn(JavaEntity parent,
JavaDiscriminatorColumn.Owner owner)
JavaJoinColumn buildJavaJoinColumn(JavaJpaContextNode parent,
JavaJoinColumn.Owner owner,
JoinColumnAnnotation joinColumnAnnotation)
JavaVirtualJoinColumn buildJavaVirtualJoinColumn(JavaJpaContextNode parent,
ReadOnlyJoinColumn.Owner owner,
JoinColumn joinColumn)
JavaSecondaryTable buildJavaSecondaryTable(JavaEntity parent,
Table.Owner owner,
SecondaryTableAnnotation tableAnnotation)
JavaSequenceGenerator buildJavaSequenceGenerator(JavaJpaContextNode parent,
SequenceGeneratorAnnotation sequenceGeneratorAnnotation)
JavaTableGenerator buildJavaTableGenerator(JavaJpaContextNode parent,
TableGeneratorAnnotation tableGeneratorAnnotation)
JavaGeneratedValue buildJavaGeneratedValue(JavaIdMapping parent,
GeneratedValueAnnotation generatedValueAnnotation)
JavaPrimaryKeyJoinColumn buildJavaPrimaryKeyJoinColumn(JavaJpaContextNode parent,
JavaBaseJoinColumn.Owner owner,
PrimaryKeyJoinColumnAnnotation pkJoinColumnAnnotation)
JavaAttributeOverrideContainer buildJavaAttributeOverrideContainer(JavaJpaContextNode parent,
JavaAttributeOverrideContainer.Owner owner)
JavaAttributeOverride buildJavaAttributeOverride(JavaAttributeOverrideContainer parent,
AttributeOverrideAnnotation annotation)
JavaVirtualAttributeOverride buildJavaVirtualAttributeOverride(JavaAttributeOverrideContainer parent,
java.lang.String name)
JavaAssociationOverrideContainer buildJavaAssociationOverrideContainer(JavaJpaContextNode parent,
JavaAssociationOverrideContainer.Owner owner)
JavaAssociationOverride buildJavaAssociationOverride(JavaAssociationOverrideContainer parent,
AssociationOverrideAnnotation annotation)
JavaVirtualAssociationOverride buildJavaVirtualAssociationOverride(JavaAssociationOverrideContainer parent,
java.lang.String name)
JavaOverrideRelationship buildJavaOverrideRelationship(JavaAssociationOverride parent)
JavaVirtualOverrideRelationship buildJavaVirtualOverrideRelationship(JavaVirtualAssociationOverride parent)
JavaQueryContainer buildJavaQueryContainer(JavaJpaContextNode parent,
JavaQueryContainer.Owner owner)
JavaNamedQuery buildJavaNamedQuery(JavaJpaContextNode parent,
NamedQueryAnnotation namedQueryAnnotation)
JavaNamedNativeQuery buildJavaNamedNativeQuery(JavaJpaContextNode parent,
NamedNativeQueryAnnotation namedNativeQueryAnnotation)
JavaQueryHint buildJavaQueryHint(JavaQuery parent,
QueryHintAnnotation queryHintAnnotation)
JavaUniqueConstraint buildJavaUniqueConstraint(JavaJpaContextNode parent,
UniqueConstraint.Owner owner,
UniqueConstraintAnnotation constraintAnnotation)
JavaVirtualUniqueConstraint buildJavaVirtualUniqueConstraint(JavaJpaContextNode parent,
UniqueConstraint uniqueConstraint)
JavaEnumeratedConverter buildJavaEnumeratedConverter(JavaAttributeMapping parent,
EnumeratedAnnotation annotation)
JavaTemporalConverter buildJavaTemporalConverter(JavaAttributeMapping parent,
TemporalAnnotation annotation)
JavaLobConverter buildJavaLobConverter(JavaAttributeMapping parent,
LobAnnotation annotation)
JavaOrderable buildJavaOrderable(JavaAttributeMapping parent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||