org.eclipse.jpt.jpa.core.jpa2
Class JpaMetamodelSynchronizer2_0.MetamodelTools
java.lang.Object
org.eclipse.jpt.jpa.core.jpa2.JpaMetamodelSynchronizer2_0.MetamodelTools
- Enclosing interface:
- JpaMetamodelSynchronizer2_0
public static final class JpaMetamodelSynchronizer2_0.MetamodelTools
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaMetamodelSynchronizer2_0.MetamodelTools
public JpaMetamodelSynchronizer2_0.MetamodelTools()
isGeneratedMetamodelTopLevelType
public static boolean isGeneratedMetamodelTopLevelType(JavaResourceAbstractType jrat,
IPackageFragmentRoot sourceFolder)
- The type must be:
- in the specified source folder
- a top-level type
- annotated with
@javax.annotation.Generated with
the appropriate value and date
- either itself or one of its nested types annotated with
@javax.persistence.metamodel.StaticMetamodel
isGeneratedMetamodelTopLevelType
public static boolean isGeneratedMetamodelTopLevelType(JavaResourceAbstractType jrat)
- The type must be:
- a top-level type
- annotated with
@javax.annotation.Generated with
the appropriate value and date
- either itself or one of its nested types annotated with
@javax.persistence.metamodel.StaticMetamodel
isGenerated
public static boolean isGenerated(JavaResourceAbstractType jrat)
- The type must be annotated with
@javax.annotation.Generated with the appropriate
value and date.
isMetamodel
public static boolean isMetamodel(JavaResourceAbstractType jrat)
Copyright (c) 2012 Oracle. All rights reserved.