Package org.apache.cayenne.map
Interface MappingNamespace
- All Known Implementing Classes:
DataMap
,EntityResolver
public interface MappingNamespace
Defines API of a container of DbEntities, ObjEntities, Procedures, Queries
and other mapping objects.
- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptionReturns all DbEntities in the namespace.getDbEntity
(String name) Returns DbEntity for a given name, or null if no such DbEntity is found in the MappingNamespace.getEmbeddable
(String className) Returns anEmbeddable
matching class name or null if such Embeddable is not mapped.getInheritanceTree
(String entityName) Returns all ObjEntities in the namespace.getObjEntity
(Class<?> entityClass) getObjEntity
(String name) Returns ObjEntity for a given name, or null if no such ObjEntity is found in the MappingNamespace.getObjEntity
(Persistent object) getProcedure
(String name) Returns Procedure for a given name, or null if no such Procedure is found in the MappingNamespace.Returns all Procedures in the namespace.getQueryDescriptor
(String name) Returns Query for a given name, or null if no such Query is found in the MappingNamespace.Returns all Queries in the namespace.Returns a named result set mapping.
-
Method Details
-
getEmbeddable
Returns anEmbeddable
matching class name or null if such Embeddable is not mapped.- Since:
- 3.0
-
getEmbeddables
Collection<Embeddable> getEmbeddables()- Since:
- 4.0
-
getResult
Returns a named result set mapping.- Since:
- 3.0
-
getResults
Collection<SQLResult> getResults()- Since:
- 4.0
-
getDbEntity
Returns DbEntity for a given name, or null if no such DbEntity is found in the MappingNamespace. -
getObjEntity
Returns ObjEntity for a given name, or null if no such ObjEntity is found in the MappingNamespace. -
getProcedure
Returns Procedure for a given name, or null if no such Procedure is found in the MappingNamespace. -
getQueryDescriptor
Returns Query for a given name, or null if no such Query is found in the MappingNamespace. -
getDbEntities
Collection<DbEntity> getDbEntities()Returns all DbEntities in the namespace. -
getObjEntities
Collection<ObjEntity> getObjEntities()Returns all ObjEntities in the namespace. -
getProcedures
Collection<Procedure> getProcedures()Returns all Procedures in the namespace. -
getQueryDescriptors
Collection<QueryDescriptor> getQueryDescriptors()Returns all Queries in the namespace. -
getInheritanceTree
- Since:
- 4.0
-
getObjEntity
- Since:
- 4.0
-
getObjEntity
- Since:
- 4.0
-