com.caucho.amber.cfg
Class EntityMappingsConfig

java.lang.Object
  extended by com.caucho.amber.cfg.EntityMappingsConfig

public class EntityMappingsConfig
extends java.lang.Object

Top tag in the orm.xml


Constructor Summary
EntityMappingsConfig()
           
 
Method Summary
 void addEmbeddable(EmbeddableConfig embeddable)
           
 void addEntity(EntityConfig entity)
          Adds a new .
 void addMappedSuperclass(MappedSuperclassConfig mappedSuperclass)
           
 void addNamedNativeQuery(NamedNativeQueryConfig namedNativeQuery)
           
 void addNamedQuery(NamedQueryConfig namedQuery)
           
 void addSequenceGenerator(SequenceGeneratorConfig sequenceGenerator)
           
 void addSqlResultSetMapping(SqlResultSetMappingConfig sqlResultSetMapping)
           
 void addTableGenerator(TableGeneratorConfig tableGenerator)
           
 AccessType getAccess()
           
 java.lang.String getCatalog()
           
 java.lang.String getDescription()
           
 EmbeddableConfig getEmbeddable(java.lang.String name)
           
 java.util.HashMap<java.lang.String,EmbeddableConfig> getEmbeddableMap()
           
 EntityConfig getEntityConfig(java.lang.String name)
          Returns an entity config.
 java.util.HashMap<java.lang.String,EntityConfig> getEntityMap()
          Returns the entity map.
 MappedSuperclassConfig getMappedSuperclass(java.lang.String name)
           
 java.util.HashMap<java.lang.String,MappedSuperclassConfig> getMappedSuperclassMap()
           
 NamedNativeQueryConfig getNamedNativeQuery(java.lang.String name)
           
 java.util.HashMap<java.lang.String,NamedNativeQueryConfig> getNamedNativeQueryMap()
           
 NamedQueryConfig getNamedQuery(java.lang.String name)
           
 java.util.HashMap<java.lang.String,NamedQueryConfig> getNamedQueryMap()
           
 java.lang.String getPackage()
           
 PersistenceUnitMetaDataConfig getPersistenceUnitMetaData()
           
 Path getRoot()
           
 java.lang.String getSchema()
           
 SequenceGeneratorConfig getSequenceGenerator(java.lang.String name)
           
 java.util.HashMap<java.lang.String,SequenceGeneratorConfig> getSequenceGeneratorMap()
           
 SqlResultSetMappingConfig getSqlResultSetMapping(java.lang.String name)
           
 java.util.HashMap<java.lang.String,SqlResultSetMappingConfig> getSqlResultSetMappingMap()
           
 TableGeneratorConfig getTableGenerator(java.lang.String name)
           
 java.util.HashMap<java.lang.String,TableGeneratorConfig> getTableGeneratorMap()
           
 java.lang.String getVersion()
           
 void setAccess(java.lang.String access)
           
 void setCatalog(java.lang.String catalog)
           
 void setDescription(java.lang.String description)
           
 void setPackage(java.lang.String packageName)
           
 void setPersistenceUnitMetaData(PersistenceUnitMetaDataConfig persistenceUnitMetaData)
           
 void setRoot(Path root)
           
 void setSchema(java.lang.String schema)
           
 void setSchemaLocation(java.lang.String schema)
          Sets the schema location
 void setVersion(java.lang.String version)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityMappingsConfig

public EntityMappingsConfig()
Method Detail

getAccess

public AccessType getAccess()

getCatalog

public java.lang.String getCatalog()

getDescription

public java.lang.String getDescription()

getPackage

public java.lang.String getPackage()

getPersistenceUnitMetaData

public PersistenceUnitMetaDataConfig getPersistenceUnitMetaData()

setPersistenceUnitMetaData

public void setPersistenceUnitMetaData(PersistenceUnitMetaDataConfig persistenceUnitMetaData)

getRoot

public Path getRoot()

getSchema

public java.lang.String getSchema()

getVersion

public java.lang.String getVersion()

setAccess

public void setAccess(java.lang.String access)

setCatalog

public void setCatalog(java.lang.String catalog)

setDescription

public void setDescription(java.lang.String description)

setPackage

public void setPackage(java.lang.String packageName)

setRoot

public void setRoot(Path root)

setSchema

public void setSchema(java.lang.String schema)

setVersion

public void setVersion(java.lang.String version)

setSchemaLocation

public void setSchemaLocation(java.lang.String schema)
Sets the schema location


addEntity

public void addEntity(EntityConfig entity)
Adds a new .


getEntityConfig

public EntityConfig getEntityConfig(java.lang.String name)
Returns an entity config.


getEntityMap

public java.util.HashMap<java.lang.String,EntityConfig> getEntityMap()
Returns the entity map.


addSequenceGenerator

public void addSequenceGenerator(SequenceGeneratorConfig sequenceGenerator)

getSequenceGenerator

public SequenceGeneratorConfig getSequenceGenerator(java.lang.String name)

getSequenceGeneratorMap

public java.util.HashMap<java.lang.String,SequenceGeneratorConfig> getSequenceGeneratorMap()

addTableGenerator

public void addTableGenerator(TableGeneratorConfig tableGenerator)

getTableGenerator

public TableGeneratorConfig getTableGenerator(java.lang.String name)

getTableGeneratorMap

public java.util.HashMap<java.lang.String,TableGeneratorConfig> getTableGeneratorMap()

addNamedQuery

public void addNamedQuery(NamedQueryConfig namedQuery)

getNamedQuery

public NamedQueryConfig getNamedQuery(java.lang.String name)

getNamedQueryMap

public java.util.HashMap<java.lang.String,NamedQueryConfig> getNamedQueryMap()

addNamedNativeQuery

public void addNamedNativeQuery(NamedNativeQueryConfig namedNativeQuery)

getNamedNativeQuery

public NamedNativeQueryConfig getNamedNativeQuery(java.lang.String name)

getNamedNativeQueryMap

public java.util.HashMap<java.lang.String,NamedNativeQueryConfig> getNamedNativeQueryMap()

addSqlResultSetMapping

public void addSqlResultSetMapping(SqlResultSetMappingConfig sqlResultSetMapping)

getSqlResultSetMapping

public SqlResultSetMappingConfig getSqlResultSetMapping(java.lang.String name)

getSqlResultSetMappingMap

public java.util.HashMap<java.lang.String,SqlResultSetMappingConfig> getSqlResultSetMappingMap()

addMappedSuperclass

public void addMappedSuperclass(MappedSuperclassConfig mappedSuperclass)

getMappedSuperclass

public MappedSuperclassConfig getMappedSuperclass(java.lang.String name)

getMappedSuperclassMap

public java.util.HashMap<java.lang.String,MappedSuperclassConfig> getMappedSuperclassMap()

addEmbeddable

public void addEmbeddable(EmbeddableConfig embeddable)

getEmbeddable

public EmbeddableConfig getEmbeddable(java.lang.String name)

getEmbeddableMap

public java.util.HashMap<java.lang.String,EmbeddableConfig> getEmbeddableMap()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object