com.bm.introspectors.relations
Interface EntityReleationInfo

All Known Implementing Classes:
AbstractRelation, ManyToOneReleation, OneToManyReleation

public interface EntityReleationInfo

EntityReleationInfo.

Author:
Daniel Wiese

Method Summary
 RelationType getReleationType()
          Returns the type of the relation.
 java.util.Set<Property> getTargetKeyProperty()
          Returns the primary key property (or properties, in case of a composite key) for the class that is target of the relation
 boolean isCascadeOnDelete()
          True when the delete operation is cascading.
 boolean isUnidirectional()
          If the property is unidirectional.
 

Method Detail

getReleationType

RelationType getReleationType()
Returns the type of the relation.

Returns:
the type of the relation

isUnidirectional

boolean isUnidirectional()
If the property is unidirectional.

Returns:
the isUnidirectional

isCascadeOnDelete

boolean isCascadeOnDelete()
True when the delete operation is cascading.

Returns:
when the delete operation is cascading

getTargetKeyProperty

java.util.Set<Property> getTargetKeyProperty()
Returns the primary key property (or properties, in case of a composite key) for the class that is target of the relation

Returns:
primary key property / properties, or null.


Copyright © 2008. All Rights Reserved.