Package io.ebean.enhance.common
Class ClassMeta
java.lang.Object
io.ebean.enhance.common.ClassMeta
Holds the meta data for an entity bean class that is being enhanced.
-
Constructor Summary
ConstructorsConstructorDescriptionClassMeta(EnhanceContext enhanceContext, int logLevel, MessageOutput logout) -
Method Summary
Modifier and TypeMethodDescriptionintACC_PRIVATE with maybe ACC_SYNTHETIC.intACC_PROTECTED with maybe ACC_SYNTHETIC.intACC_PUBLIC with maybe ACC_SYNTHETIC.voidaddClassAnnotation(String desc) Add a class annotation.voidAdd field level get set methods for each field.createLocalFieldVisitor(FieldVisitor fv, String name, String desc) Create and return a new fieldVisitor for use when enhancing a class.Return the list of all fields including ones inherited from entity super types and mappedSuperclasses.Return the AnnotationInfo collected on methods.Return the className of this entity class.Return the enhance context which has options for enhancement.getFieldPersistent(String fieldName) Return the field - null when not found.getInterfaceTransactionalInfo(String methodName, String methodDesc) Return the transactional annotation information for a matching interface method.booleanbooleanbooleanReturn true if Equals/hashCode is implemented on this class or a super class.booleanReturn true if the class contains persistent fields.booleanbooleanIf 141+ Add InterceptReadOnly support.Return the EntityBeanIntercept type that will be new'ed up for the EntityBean.booleanReturn true if the bean is already enhanced.booleanbooleanisConsumeInitMany(String fieldName) Return true if the field is a persistent many field that we want to consume the init on.booleanisEntity()Return true if the class has an Entity, Embeddable or MappedSuperclass.booleanReturn true for classes not already enhanced and yet annotated with entity, embeddable or mappedSuperclass.booleanisFieldPersistent(String fieldName) Return true if the field is a persistent field.booleanisLog(int level) booleanReturn true if this is a query bean.booleanReturn true if this entity bean has a super class that is an entity.booleanbooleanvoidvoidvoidsetAlreadyEnhanced(boolean alreadyEnhanced) voidsetClassName(String className, String superClassName) voidsetEntityBeanInterface(boolean hasEntityBeanInterface) voidsetGroovyInterface(boolean hasGroovyInterface) voidsetHasDefaultConstructor(boolean hasDefaultConstructor) voidsetHasEqualsOrHashcode(boolean hasEqualsOrHashcode) Set to true if the class has an existing equals() or hashcode() method.voidsetHasStaticInit(boolean hasStaticInit) voidsetScalaInterface(boolean hasScalaInterface) voidsetSuperMeta(ClassMeta superMeta) toString()voidvisitMethodInsnIntercept(MethodVisitor mv, String name, String desc) Invoke a method on EntityBeanIntercept.
-
Constructor Details
-
ClassMeta
-
-
Method Details
-
getEnhanceContext
Return the enhance context which has options for enhancement. -
getAnnotationInfo
Return the AnnotationInfo collected on methods. Used to determine Transactional method enhancement. -
getInterfaceTransactionalInfo
Return the transactional annotation information for a matching interface method. -
isCheckSuperClassForEntity
-
toString
-
isTransactional
-
setClassName
-
getSuperClassName
-
isLog
-
log
-
logEnhanced
-
setSuperMeta
-
setHasEqualsOrHashcode
Set to true if the class has an existing equals() or hashcode() method. -
hasEqualsOrHashCode
Return true if Equals/hashCode is implemented on this class or a super class. -
isFieldPersistent
Return true if the field is a persistent field. -
isConsumeInitMany
Return true if the field is a persistent many field that we want to consume the init on. -
getFieldPersistent
Return the field - null when not found. -
hasPersistentFields
Return true if the class contains persistent fields. -
getAllFields
Return the list of all fields including ones inherited from entity super types and mappedSuperclasses. -
addFieldGetSetMethods
Add field level get set methods for each field. -
isQueryBean
Return true if this is a query bean. -
isEntity
Return true if the class has an Entity, Embeddable or MappedSuperclass. -
isEntityEnhancementRequired
Return true for classes not already enhanced and yet annotated with entity, embeddable or mappedSuperclass. -
isAlreadyEnhanced
Return true if the bean is already enhanced. -
getClassName
Return the className of this entity class. -
isSuperClassEntity
Return true if this entity bean has a super class that is an entity. -
addClassAnnotation
Add a class annotation. -
accPublic
ACC_PUBLIC with maybe ACC_SYNTHETIC. -
accProtected
ACC_PROTECTED with maybe ACC_SYNTHETIC. -
accPrivate
ACC_PRIVATE with maybe ACC_SYNTHETIC. -
isToManyGetField
-
interceptNew
Return the EntityBeanIntercept type that will be new'ed up for the EntityBean. For version 140+ EntityBeanIntercept is an interface and instead we new up InterceptReadWrite. -
visitMethodInsnIntercept
Invoke a method on EntityBeanIntercept. For version 140+ EntityBeanIntercept is an interface and this uses INVOKEINTERFACE. -
interceptAddReadOnly
If 141+ Add InterceptReadOnly support. -
createLocalFieldVisitor
Create and return a new fieldVisitor for use when enhancing a class. -
setAlreadyEnhanced
-
hasDefaultConstructor
-
setHasDefaultConstructor
-
setHasStaticInit
-
hasStaticInit
-
getDescription
-
setScalaInterface
-
hasEntityBeanInterface
-
setEntityBeanInterface
-
setGroovyInterface
-