public class PersistenceRuleUtil extends Object
| Constructor and Description |
|---|
PersistenceRuleUtil() |
| Modifier and Type | Method and Description |
|---|---|
Set<org.designwizard.design.ClassNode> |
getClassesAnnotated(org.designwizard.api.DesignWizard dw,
String annotationName)
Returns the set of
ClassNode with the annotated classes to the entity
represented by this annotationName. |
org.designwizard.design.FieldNode |
getIdentifierProperty(org.designwizard.design.ClassNode entity)
Checks if the class contains a identifier field in the declared fields.
|
public final org.designwizard.design.FieldNode getIdentifierProperty(org.designwizard.design.ClassNode entity)
javax.persistence.Id.entity - A classNode instance.Null.public final Set<org.designwizard.design.ClassNode> getClassesAnnotated(org.designwizard.api.DesignWizard dw, String annotationName) throws org.designwizard.exception.InexistentEntityException
ClassNode with the annotated classes to the entity
represented by this annotationName.dw - A DesignWizard instance.annotationName - The name of the entity that It is an annotation.null if this
parameter wasn't an annotation.org.designwizard.exception.InexistentEntityException - if the annotation cannot be located.Copyright © 2016. All rights reserved.