com.anasoft.os.daofusion.criteria
Class AssociationPathElement

java.lang.Object
  extended by com.anasoft.os.daofusion.criteria.AssociationPathElement

public class AssociationPathElement
extends java.lang.Object

Association path element contained in the AssociationPath.

Each element has a value corresponding with the given persistent entity property name. An optional joinType is used to specify the type of join to use when creating related subcriteria within the AssociationPathRegister.

This class is immutable by design so you can safely reuse its instances across the code.

Author:
michal.jemala, vojtech.szocs
See Also:
AssociationPath, AssociationPathRegister

Constructor Summary
AssociationPathElement(java.lang.String value)
          Creates a new association path element using the default join type.
AssociationPathElement(java.lang.String value, NestedPropertyJoinType joinType)
          Creates a new association path element.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 NestedPropertyJoinType getJoinType()
           
 java.lang.String getValue()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssociationPathElement

public AssociationPathElement(java.lang.String value,
                              NestedPropertyJoinType joinType)
Creates a new association path element.

Parameters:
value - Persistent entity property name.
joinType - Type of join to use when creating related subcriteria.

AssociationPathElement

public AssociationPathElement(java.lang.String value)
Creates a new association path element using the default join type.

Parameters:
value - Persistent entity property name.
Method Detail

getValue

public java.lang.String getValue()
Returns:
Persistent entity property name.

getJoinType

public NestedPropertyJoinType getJoinType()
Returns:
Type of join to use when creating related subcriteria.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008-2009 ANASOFT and contributors. All Rights Reserved.