org.eclipse.jpt.ui
Interface JpaUiFactory


public interface JpaUiFactory

Use JpaFactory to create any JavaTypeMapping or JavaAttributeMappings. This is necessary so that platforms can extend the java model with their own annotations. JavaTypeMappingProvider and JavaAttributeMappingProvider use this factory. See JpaPlatform#javaTypeMappingProviders() and {@link JpaPlatform#javaAttributeMappingProviders() for creating new mappings types.

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.

Since:
1.0
Version:
2.0
See Also:
BaseJpaUiFactory

Method Summary
 JpaComposite<BasicMapping> createBasicMappingComposite(PropertyValueModel<BasicMapping> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit a BasicMapping.
 JpaComposite<Embeddable> createEmbeddableComposite(PropertyValueModel<Embeddable> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit an Embeddable.
 JpaComposite<EmbeddedIdMapping> createEmbeddedIdMappingComposite(PropertyValueModel<EmbeddedIdMapping> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit an EmbeddedIdMapping.
 JpaComposite<EmbeddedMapping> createEmbeddedMappingComposite(PropertyValueModel<EmbeddedMapping> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit an EmbeddedMapping.
 JpaComposite<IdMapping> createIdMappingComposite(PropertyValueModel<IdMapping> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit an IdMapping.
 JpaComposite<JavaEntity> createJavaEntityComposite(PropertyValueModel<JavaEntity> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit an JavaEntity.
 JpaComposite<ManyToManyMapping> createManyToManyMappingComposite(PropertyValueModel<ManyToManyMapping> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit a ManyToManyMapping.
 JpaComposite<ManyToOneMapping> createManyToOneMappingComposite(PropertyValueModel<ManyToOneMapping> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit a ManyToOneMapping.
 JpaComposite<MappedSuperclass> createMappedSuperclassComposite(PropertyValueModel<MappedSuperclass> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit a MappedSuperclass.
 JpaComposite<OneToManyMapping> createOneToManyMappingComposite(PropertyValueModel<OneToManyMapping> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit a OneToManyMapping.
 JpaComposite<OneToOneMapping> createOneToOneMappingComposite(PropertyValueModel<OneToOneMapping> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit a OneToOneMapping.
 JpaComposite<OrmEntity> createOrmEntityComposite(PropertyValueModel<OrmEntity> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit a OrmEntity.
 java.util.ListIterator<JpaPageComposite<PersistenceUnit>> createPersistenceUnitComposites(PropertyValueModel<PersistenceUnit> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates the list of JpaComposites used to edit a PersistenceUnit.
 JpaComposite<TransientMapping> createTransientMappingComposite(PropertyValueModel<TransientMapping> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit a TransientMapping.
 JpaComposite<VersionMapping> createVersionMappingComposite(PropertyValueModel<VersionMapping> subjectHolder, org.eclipse.swt.widgets.Composite parent, WidgetFactory widgetFactory)
          Creates a new JpaComposite used to edit a VersionMapping.
 

Method Detail

createBasicMappingComposite

JpaComposite<BasicMapping> createBasicMappingComposite(PropertyValueModel<BasicMapping> subjectHolder,
                                                       org.eclipse.swt.widgets.Composite parent,
                                                       WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit a BasicMapping.

Parameters:
subjectHolder - The holder of the basic mapping
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createEmbeddableComposite

JpaComposite<Embeddable> createEmbeddableComposite(PropertyValueModel<Embeddable> subjectHolder,
                                                   org.eclipse.swt.widgets.Composite parent,
                                                   WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit an Embeddable.

Parameters:
subjectHolder - The holder of the basic mapping
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createEmbeddedIdMappingComposite

JpaComposite<EmbeddedIdMapping> createEmbeddedIdMappingComposite(PropertyValueModel<EmbeddedIdMapping> subjectHolder,
                                                                 org.eclipse.swt.widgets.Composite parent,
                                                                 WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit an EmbeddedIdMapping.

Parameters:
subjectHolder - The holder of the embedded ID mapping
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createEmbeddedMappingComposite

JpaComposite<EmbeddedMapping> createEmbeddedMappingComposite(PropertyValueModel<EmbeddedMapping> subjectHolder,
                                                             org.eclipse.swt.widgets.Composite parent,
                                                             WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit an EmbeddedMapping.

Parameters:
subjectHolder - The holder of the embedded mapping
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createJavaEntityComposite

JpaComposite<JavaEntity> createJavaEntityComposite(PropertyValueModel<JavaEntity> subjectHolder,
                                                   org.eclipse.swt.widgets.Composite parent,
                                                   WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit an JavaEntity.

Parameters:
subjectHolder - The holder of the java entity
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createOrmEntityComposite

JpaComposite<OrmEntity> createOrmEntityComposite(PropertyValueModel<OrmEntity> subjectHolder,
                                                 org.eclipse.swt.widgets.Composite parent,
                                                 WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit a OrmEntity.

Parameters:
subjectHolder - The holder of the orm entity
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createIdMappingComposite

JpaComposite<IdMapping> createIdMappingComposite(PropertyValueModel<IdMapping> subjectHolder,
                                                 org.eclipse.swt.widgets.Composite parent,
                                                 WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit an IdMapping.

Parameters:
subjectHolder - The holder of the ID mapping
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createManyToManyMappingComposite

JpaComposite<ManyToManyMapping> createManyToManyMappingComposite(PropertyValueModel<ManyToManyMapping> subjectHolder,
                                                                 org.eclipse.swt.widgets.Composite parent,
                                                                 WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit a ManyToManyMapping.

Parameters:
subjectHolder - The holder of the many to many mapping
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createManyToOneMappingComposite

JpaComposite<ManyToOneMapping> createManyToOneMappingComposite(PropertyValueModel<ManyToOneMapping> subjectHolder,
                                                               org.eclipse.swt.widgets.Composite parent,
                                                               WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit a ManyToOneMapping.

Parameters:
subjectHolder - The holder of the many to one mapping
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createMappedSuperclassComposite

JpaComposite<MappedSuperclass> createMappedSuperclassComposite(PropertyValueModel<MappedSuperclass> subjectHolder,
                                                               org.eclipse.swt.widgets.Composite parent,
                                                               WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit a MappedSuperclass.

Parameters:
subjectHolder - The holder of the mapped superclass
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createOneToManyMappingComposite

JpaComposite<OneToManyMapping> createOneToManyMappingComposite(PropertyValueModel<OneToManyMapping> subjectHolder,
                                                               org.eclipse.swt.widgets.Composite parent,
                                                               WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit a OneToManyMapping.

Parameters:
subjectHolder - The holder of the one to many mapping
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createOneToOneMappingComposite

JpaComposite<OneToOneMapping> createOneToOneMappingComposite(PropertyValueModel<OneToOneMapping> subjectHolder,
                                                             org.eclipse.swt.widgets.Composite parent,
                                                             WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit a OneToOneMapping.

Parameters:
subjectHolder - The holder of the one to one mapping
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createPersistenceUnitComposites

java.util.ListIterator<JpaPageComposite<PersistenceUnit>> createPersistenceUnitComposites(PropertyValueModel<PersistenceUnit> subjectHolder,
                                                                                          org.eclipse.swt.widgets.Composite parent,
                                                                                          WidgetFactory widgetFactory)
Creates the list of JpaComposites used to edit a PersistenceUnit. The properties can be regrouped into sections that will be shown in the editor as pages.

Parameters:
subjectHolder - The holder of the pertistence unit
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createTransientMappingComposite

JpaComposite<TransientMapping> createTransientMappingComposite(PropertyValueModel<TransientMapping> subjectHolder,
                                                               org.eclipse.swt.widgets.Composite parent,
                                                               WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit a TransientMapping.

Parameters:
subjectHolder - The holder of the transient mapping
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite

createVersionMappingComposite

JpaComposite<VersionMapping> createVersionMappingComposite(PropertyValueModel<VersionMapping> subjectHolder,
                                                           org.eclipse.swt.widgets.Composite parent,
                                                           WidgetFactory widgetFactory)
Creates a new JpaComposite used to edit a VersionMapping.

Parameters:
subjectHolder - The holder of the version mapping
parent - The parent container
widgetFactory - The factory used to create the widgets
Returns:
A new JpaComposite