org.datanucleus.jpa.metamodel
Class MetamodelImpl

java.lang.Object
  extended by org.datanucleus.jpa.metamodel.MetamodelImpl
All Implemented Interfaces:
javax.persistence.metamodel.Metamodel

public class MetamodelImpl
extends java.lang.Object
implements javax.persistence.metamodel.Metamodel

Implementation of JPA2 Criteria "Metamodel".


Constructor Summary
MetamodelImpl(org.datanucleus.metadata.MetaDataManager mmgr)
           
 
Method Summary
<X> javax.persistence.metamodel.EmbeddableType<X>
embeddable(java.lang.Class<X> cls)
           
<X> javax.persistence.metamodel.EntityType<X>
entity(java.lang.Class<X> cls)
           
 org.datanucleus.ClassLoaderResolver getClassLoaderResolver()
           
 java.util.Set<javax.persistence.metamodel.EmbeddableType<?>> getEmbeddables()
           
 java.util.Set<javax.persistence.metamodel.EntityType<?>> getEntities()
           
 java.util.Set<javax.persistence.metamodel.ManagedType<?>> getManagedTypes()
           
<X> javax.persistence.metamodel.Type<X>
getType(java.lang.Class<X> cls)
          Convenience method to look up the Type for a class.
<X> javax.persistence.metamodel.ManagedType<X>
managedType(java.lang.Class<X> cls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetamodelImpl

public MetamodelImpl(org.datanucleus.metadata.MetaDataManager mmgr)
Method Detail

getClassLoaderResolver

public org.datanucleus.ClassLoaderResolver getClassLoaderResolver()

embeddable

public <X> javax.persistence.metamodel.EmbeddableType<X> embeddable(java.lang.Class<X> cls)
Specified by:
embeddable in interface javax.persistence.metamodel.Metamodel

getEmbeddables

public java.util.Set<javax.persistence.metamodel.EmbeddableType<?>> getEmbeddables()
Specified by:
getEmbeddables in interface javax.persistence.metamodel.Metamodel

entity

public <X> javax.persistence.metamodel.EntityType<X> entity(java.lang.Class<X> cls)
Specified by:
entity in interface javax.persistence.metamodel.Metamodel

getEntities

public java.util.Set<javax.persistence.metamodel.EntityType<?>> getEntities()
Specified by:
getEntities in interface javax.persistence.metamodel.Metamodel

managedType

public <X> javax.persistence.metamodel.ManagedType<X> managedType(java.lang.Class<X> cls)
Specified by:
managedType in interface javax.persistence.metamodel.Metamodel

getManagedTypes

public java.util.Set<javax.persistence.metamodel.ManagedType<?>> getManagedTypes()
Specified by:
getManagedTypes in interface javax.persistence.metamodel.Metamodel

getType

public <X> javax.persistence.metamodel.Type<X> getType(java.lang.Class<X> cls)
Convenience method to look up the Type for a class.

Parameters:
cls - The class
Returns:
The Type for this class


Copyright © 2011. All Rights Reserved.