com.wideplay.warp.persist.dao
Annotation Type Finder


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Finder

Created with IntelliJ IDEA. On: 3/06/2007

Marks a method stub as a dynamic finder. The method is intercepted and replaced with the specified HQL or JPAQL query. Provides result auto-boxing and automatic parameter binding.

Since:
1.0
Author:
Dhanji R. Prasanna (dhanji@gmail.com)

Optional Element Summary
 java.lang.String namedQuery
          Specify a named query's name here, typically using the @NamedQuery annotation.
 java.lang.String query
          Directly specify a query here, hql or jpaql.
 java.lang.Class<? extends java.util.Collection> returnAs
          Use this clause to specify a collection impl to autobox result lists into.
 

namedQuery

public abstract java.lang.String namedQuery
Specify a named query's name here, typically using the @NamedQuery annotation.

Returns:
Returns the configured named query's name.
Default:
""

query

public abstract java.lang.String query
Directly specify a query here, hql or jpaql.

Returns:
Returns the configured query string.
Default:
""

returnAs

public abstract java.lang.Class<? extends java.util.Collection> returnAs
Use this clause to specify a collection impl to autobox result lists into. The impl *must* have a default no-arg constructor and be a subclass of java.util.Collection.

Returns:
Returns the configured autoboxing collection class.
Default:
java.util.ArrayList.class