Package org.hibernate.jpamodelgen
Class Context
- java.lang.Object
-
- org.hibernate.jpamodelgen.Context
-
public final class Context extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Context(javax.annotation.processing.ProcessingEnvironment pe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAccessTypeInformation(java.lang.String fqcn, AccessTypeInformation info)booleanaddGeneratedAnnotation()booleanaddGeneratedDate()voidaddMetaEmbeddable(java.lang.String fqcn, MetaEntity metaEntity)voidaddMetaEntity(java.lang.String fqcn, MetaEntity metaEntity)booleancontainsMetaEmbeddable(java.lang.String fqcn)booleancontainsMetaEntity(java.lang.String fqcn)booleandoLazyXmlParsing()AccessTypeInformationgetAccessTypeInfo(java.lang.String fqcn)javax.lang.model.util.ElementsgetElementUtils()java.lang.StringgetGeneratedAnnotationFqcn()MetaEntitygetMetaEmbeddable(java.lang.String fqcn)java.util.Collection<MetaEntity>getMetaEmbeddables()java.util.Collection<MetaEntity>getMetaEntities()MetaEntitygetMetaEntity(java.lang.String fqcn)java.util.List<java.lang.String>getOrmXmlFiles()AccessTypegetPersistenceUnitDefaultAccessType()java.lang.StringgetPersistenceXmlLocation()javax.annotation.processing.ProcessingEnvironmentgetProcessingEnvironment()javax.lang.model.element.TypeElementgetTypeElementForFullyQualifiedName(java.lang.String fqcn)javax.lang.model.util.TypesgetTypeUtils()booleanisAddSuppressWarningsAnnotation()booleanisFullyXmlConfigured()voidlogMessage(javax.tools.Diagnostic.Kind type, java.lang.String message)voidmappingDocumentFullyXmlConfigured(boolean fullyXmlConfigured)voidsetAddGeneratedAnnotation(boolean addGeneratedAnnotation)voidsetAddGenerationDate(boolean addGenerationDate)voidsetAddSuppressWarningsAnnotation(boolean addSuppressWarningsAnnotation)voidsetPersistenceUnitDefaultAccessType(AccessType persistenceUnitDefaultAccessType)java.lang.StringtoString()
-
-
-
Method Detail
-
getProcessingEnvironment
public javax.annotation.processing.ProcessingEnvironment getProcessingEnvironment()
-
addGeneratedAnnotation
public boolean addGeneratedAnnotation()
-
getGeneratedAnnotationFqcn
public java.lang.String getGeneratedAnnotationFqcn()
-
setAddGeneratedAnnotation
public void setAddGeneratedAnnotation(boolean addGeneratedAnnotation)
-
addGeneratedDate
public boolean addGeneratedDate()
-
setAddGenerationDate
public void setAddGenerationDate(boolean addGenerationDate)
-
isAddSuppressWarningsAnnotation
public boolean isAddSuppressWarningsAnnotation()
-
setAddSuppressWarningsAnnotation
public void setAddSuppressWarningsAnnotation(boolean addSuppressWarningsAnnotation)
-
getElementUtils
public javax.lang.model.util.Elements getElementUtils()
-
getTypeUtils
public javax.lang.model.util.Types getTypeUtils()
-
getPersistenceXmlLocation
public java.lang.String getPersistenceXmlLocation()
-
getOrmXmlFiles
public java.util.List<java.lang.String> getOrmXmlFiles()
-
containsMetaEntity
public boolean containsMetaEntity(java.lang.String fqcn)
-
getMetaEntity
public MetaEntity getMetaEntity(java.lang.String fqcn)
-
getMetaEntities
public java.util.Collection<MetaEntity> getMetaEntities()
-
addMetaEntity
public void addMetaEntity(java.lang.String fqcn, MetaEntity metaEntity)
-
containsMetaEmbeddable
public boolean containsMetaEmbeddable(java.lang.String fqcn)
-
getMetaEmbeddable
public MetaEntity getMetaEmbeddable(java.lang.String fqcn)
-
addMetaEmbeddable
public void addMetaEmbeddable(java.lang.String fqcn, MetaEntity metaEntity)
-
getMetaEmbeddables
public java.util.Collection<MetaEntity> getMetaEmbeddables()
-
addAccessTypeInformation
public void addAccessTypeInformation(java.lang.String fqcn, AccessTypeInformation info)
-
getAccessTypeInfo
public AccessTypeInformation getAccessTypeInfo(java.lang.String fqcn)
-
getTypeElementForFullyQualifiedName
public javax.lang.model.element.TypeElement getTypeElementForFullyQualifiedName(java.lang.String fqcn)
-
logMessage
public void logMessage(javax.tools.Diagnostic.Kind type, java.lang.String message)
-
isFullyXmlConfigured
public boolean isFullyXmlConfigured()
-
mappingDocumentFullyXmlConfigured
public void mappingDocumentFullyXmlConfigured(boolean fullyXmlConfigured)
-
getPersistenceUnitDefaultAccessType
public AccessType getPersistenceUnitDefaultAccessType()
-
setPersistenceUnitDefaultAccessType
public void setPersistenceUnitDefaultAccessType(AccessType persistenceUnitDefaultAccessType)
-
doLazyXmlParsing
public boolean doLazyXmlParsing()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-