org.spicefactory.pimento.metamodel.impl
Class MetamodelBuilderFactoryImpl

java.lang.Object
  extended by org.spicefactory.pimento.metamodel.impl.MetamodelBuilderFactoryImpl
All Implemented Interfaces:
MetamodelBuilderFactory

public class MetamodelBuilderFactoryImpl
extends Object
implements MetamodelBuilderFactory

Factory that creates ManagedTypeBuilder instances.

Author:
Jens Halm

Constructor Summary
MetamodelBuilderFactoryImpl(CinnamonConfig config, PersistenceAdapter adapter)
          Creates a new instance.
 
Method Summary
 EmbeddableBuilder createEmbeddableBuilder(Class<?> embeddableType)
          Creates a new EmbeddableBuilder for the specified type.
 EntityBuilder createEntityBuilder(Class<?> entityType, String entityName, Set<Operation> operations)
          Creates a new EntityBuilder for the specified persistent class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetamodelBuilderFactoryImpl

public MetamodelBuilderFactoryImpl(CinnamonConfig config,
                                   PersistenceAdapter adapter)
Creates a new instance.

Parameters:
config - the Cinnamon configuration
adapter - the adapter to associate with the metamodel produced by this factory
Method Detail

createEntityBuilder

public EntityBuilder createEntityBuilder(Class<?> entityType,
                                         String entityName,
                                         Set<Operation> operations)
Description copied from interface: MetamodelBuilderFactory
Creates a new EntityBuilder for the specified persistent class.

Specified by:
createEntityBuilder in interface MetamodelBuilderFactory
Parameters:
entityType - the persistent class
entityName - the entity name
operations - the default operations permitted if not overwritten for this entity
Returns:
a new EntityBuilder instance

createEmbeddableBuilder

public EmbeddableBuilder createEmbeddableBuilder(Class<?> embeddableType)
Description copied from interface: MetamodelBuilderFactory
Creates a new EmbeddableBuilder for the specified type.

Specified by:
createEmbeddableBuilder in interface MetamodelBuilderFactory
Parameters:
embeddableType - the embeddable type
Returns:
a new EmbeddableBuilder instance