|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zeroexchange.model.EntityUtils
public class EntityUtils
Set of auxiliary methods to retrieve entity-related meta information.
Constructor Summary | |
---|---|
EntityUtils()
|
Method Summary | |
---|---|
static Class |
getAssociatedItemClass(PropertyDescriptor propertyDescriptor)
Returns the class of the entities from the association which is specified with by the propertyDescriptor |
static boolean |
isAssociation(Class itemClass,
PropertyDescriptor propertyDescriptor)
Returns true if the specified descriptor represents an association. |
static boolean |
isManyToMany(Class itemClass,
PropertyDescriptor propertyDescriptor)
Returns true if descriptor represents the 'many-to-many' association. |
static boolean |
isManyToOne(Class itemClass,
PropertyDescriptor propertyDescriptor)
Returns true if descriptor represents the 'many-to-one' association. |
static boolean |
isOneToMany(Class itemClass,
PropertyDescriptor propertyDescriptor)
Returns true if descriptor represents the 'one-to-many' association. |
static boolean |
isOneToOne(Class itemClass,
PropertyDescriptor propertyDescriptor)
Returns true if descriptor represents the 'one-to-one' association. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityUtils()
Method Detail |
---|
public static boolean isAssociation(Class itemClass, PropertyDescriptor propertyDescriptor)
itemClass
- public static boolean isOneToMany(Class itemClass, PropertyDescriptor propertyDescriptor)
itemClass
- public static boolean isOneToOne(Class itemClass, PropertyDescriptor propertyDescriptor)
itemClass
- public static boolean isManyToMany(Class itemClass, PropertyDescriptor propertyDescriptor)
itemClass
- public static boolean isManyToOne(Class itemClass, PropertyDescriptor propertyDescriptor)
itemClass
- public static Class getAssociatedItemClass(PropertyDescriptor propertyDescriptor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |