com.anasoft.os.daofusion.cto.server
Class NestedPropertyMapping

java.lang.Object
  extended by com.anasoft.os.daofusion.cto.server.NestedPropertyMapping
Direct Known Subclasses:
FilterAndSortMapping

public abstract class NestedPropertyMapping
extends java.lang.Object

Generic persistent entity criteria transfer object mapping supporting a nested property of the target persistent entity.

Author:
vojtech.szocs
See Also:
NestedPropertyMappingGroup, NestedPropertyCriterion

Constructor Summary
NestedPropertyMapping(java.lang.String propertyId, AssociationPath associationPath, java.lang.String targetPropertyName)
          Creates a new property mapping.
NestedPropertyMapping(java.lang.String propertyId, java.lang.String propertyPath, NestedPropertyJoinType associationJoinType)
          Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach.
 
Method Summary
abstract  void apply(FilterAndSortCriteria clientSideCriteria, NestedPropertyCriteria serverSideCriteria)
          Applies query constraints defined by the clientSideCriteria to the serverSideCriteria according to the property mapping implementation.
 AssociationPath getAssociationPath()
           
 java.lang.String getPropertyId()
           
 java.lang.String getTargetPropertyName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedPropertyMapping

@Deprecated
public NestedPropertyMapping(java.lang.String propertyId,
                                        java.lang.String propertyPath,
                                        NestedPropertyJoinType associationJoinType)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach.

Creates a new property mapping.

Parameters:
propertyId - Symbolic persistent entity property identifier.
propertyPath - Dot-separated logical path to the target property.
associationJoinType - Type of join to use in case of a nested (non-direct) persistent entity property (can be null otherwise).

NestedPropertyMapping

public NestedPropertyMapping(java.lang.String propertyId,
                             AssociationPath associationPath,
                             java.lang.String targetPropertyName)
Creates a new property mapping.

Parameters:
propertyId - Symbolic persistent entity property identifier.
associationPath - AssociationPath which points to the given property of the target persistent entity.
targetPropertyName - Name of the target property of the given persistent entity.
Method Detail

getPropertyId

public java.lang.String getPropertyId()
Returns:
Symbolic persistent entity property identifier.

getTargetPropertyName

public java.lang.String getTargetPropertyName()
Returns:
Name of the target property of the given persistent entity.

getAssociationPath

public AssociationPath getAssociationPath()
Returns:
AssociationPath which points to the given property of the target persistent entity.

apply

public abstract void apply(FilterAndSortCriteria clientSideCriteria,
                           NestedPropertyCriteria serverSideCriteria)
Applies query constraints defined by the clientSideCriteria to the serverSideCriteria according to the property mapping implementation.

Parameters:
clientSideCriteria - Client-side persistent entity criteria representation.
serverSideCriteria - NestedPropertyCriteria instance to update.


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