fr.ifremer.allegro
Class CriteriaSearchProperties

java.lang.Object
  extended by fr.ifremer.allegro.CriteriaSearchProperties

public class CriteriaSearchProperties
extends java.lang.Object

Stores the embedded values and asssociations of all entities in the system by type. Is used to determine the appropriate parameter name when an embedded value's property is referenced as the attribute to search by (as opposed to an association).

Author:
Chad Brandon

Nested Class Summary
protected static class CriteriaSearchProperties.PropertyType
          A private class storing the name and type.
 
Constructor Summary
CriteriaSearchProperties()
           
 
Method Summary
static java.util.Collection getEmbeddedValues(java.lang.Class type)
          Attempts to get the embedded value list for the given type (or returns null if one doesn't exist).
static java.lang.Class getEmbeddedValueType(java.lang.Class ownerType, java.lang.String name)
          Gets the type of the embedded value given the ownerType and name
static java.lang.Class getNavigableAssociationEndType(java.lang.Class ownerType, java.lang.String name)
          Gets the type of the navigable association end given the ownerType and name
static java.lang.Class getPropertyType(java.lang.Class ownerType, java.lang.String name)
          Gets the type of the property given the ownerType and name
static java.lang.Class getPropertyType(java.util.Map properties, java.lang.Class ownerType, java.lang.String name)
          Gets the type of the embedded value given the ownerType and name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CriteriaSearchProperties

public CriteriaSearchProperties()
Method Detail

getEmbeddedValues

public static java.util.Collection getEmbeddedValues(java.lang.Class type)
Attempts to get the embedded value list for the given type (or returns null if one doesn't exist).

Parameters:
type - the type of which to retrieve the value.
Returns:
the collection of embedded value names.

getNavigableAssociationEndType

public static java.lang.Class getNavigableAssociationEndType(java.lang.Class ownerType,
                                                             java.lang.String name)
Gets the type of the navigable association end given the ownerType and name

Parameters:
ownerType - the owner of the association.
name - the name of the association end to find.
Returns:
the type of the association end.

getEmbeddedValueType

public static java.lang.Class getEmbeddedValueType(java.lang.Class ownerType,
                                                   java.lang.String name)
Gets the type of the embedded value given the ownerType and name

Parameters:
ownerType - the owner of the association.
name - the name of the association end to find.
Returns:
the type of the association end.

getPropertyType

public static java.lang.Class getPropertyType(java.util.Map properties,
                                              java.lang.Class ownerType,
                                              java.lang.String name)
Gets the type of the embedded value given the ownerType and name

Parameters:
ownerType - the owner of the association.
name - the name of the association end to find.
Returns:
the type of the association end.

getPropertyType

public static java.lang.Class getPropertyType(java.lang.Class ownerType,
                                              java.lang.String name)
Gets the type of the property given the ownerType and name

Parameters:
ownerType - the owner of the association.
name - the name of the association end to find.
Returns:
the type of the association end.


Copyright © 2008-2010 IFREMER. All Rights Reserved.