org.perfectjpattern.jee.api.integration.dao
Interface IFinderNamingStrategy

All Superinterfaces:
IStrategy

public interface IFinderNamingStrategy
extends IStrategy

Abstract definition of a Strategy for discovering query names based on a data model type and a finder interface method

Version:
$ $Date: Nov 5, 2008 11:55:29 AM $
Author:
Giovanni Azua
 

Method Summary
 String getQueryName(Class<?> aClass, Method aMethod)
          Returns the query name based on the given finder method.
 

Method Detail

getQueryName

String getQueryName(Class<?> aClass,
                    Method aMethod)
                    throws IllegalArgumentException
Returns the query name based on the given finder method. Defines a discovery mechanism to connect queries declared in mapping files to a data model type class

Parameters:
aClass - Data model class type
aMethod - Method to derive the query name from
Returns:
Query name based on the given method
Throws:
IllegalArgumentException - 'aClass' must no be null
IllegalArgumentException - 'aMethod' must no be null


Copyright © 2007-2009. All Rights Reserved.