org.springframework.roo.addon.solr
Annotation Type RooSolrSearchable


@Target(value=TYPE)
@Retention(value=SOURCE)
public @interface RooSolrSearchable

Adds a Pojo to a Solr managed search index

Since:
1.1
Author:
Stefan Schmidt

Optional Element Summary
 String deleteIndexMethod
          Specify name of the "deleteIndex" methods to generate.
 String indexMethod
          Specify name of the "index" methods to generate.
 String postPersistOrUpdateMethod
          Specify name of the "postPersistOrUpdate" method to generate.
 String preRemoveMethod
          Specify name of the "preRemove" method to generate.
 String searchMethod
          Specify name of the "search" method to generate.
 String simpleSearchMethod
          Specify name of the "search" method to generate.
 

searchMethod

public abstract String searchMethod
Specify name of the "search" method to generate. Use a value of "" to avoid the generation of a search method.

Returns:
the name of the "search" method to generate (defaults to "search"; mandatory)
Default:
"search"

postPersistOrUpdateMethod

public abstract String postPersistOrUpdateMethod
Specify name of the "postPersistOrUpdate" method to generate. Use a value of "" to avoid the generation of a postPersistOrUpdate method.

Returns:
the name of the "postPersistOrUpdate" method to generate (defaults to "postPersistOrUpdate"; mandatory)
Default:
"postPersistOrUpdate"

simpleSearchMethod

public abstract String simpleSearchMethod
Specify name of the "search" method to generate. Use a value of "" to avoid the generation of a search method.

Returns:
the name of the "search" method to generate (defaults to "search"; mandatory)
Default:
"search"

preRemoveMethod

public abstract String preRemoveMethod
Specify name of the "preRemove" method to generate. Use a value of "" to avoid the generation of a preRemove method.

Returns:
the name of the "preRemove" method to generate (defaults to "preRemove"; mandatory)
Default:
"preRemove"

indexMethod

public abstract String indexMethod
Specify name of the "index" methods to generate. Use a value of "" to avoid the generation of both index methods. The method name will be concatenated by the simple name of the entity type (ie: indexOwner)

Returns:
the name of the "index" method to generate (defaults to "index"; mandatory)
Default:
"index"

deleteIndexMethod

public abstract String deleteIndexMethod
Specify name of the "deleteIndex" methods to generate. Use a value of "" to avoid the generation of the deleteIndex method.

Returns:
the name of the "deleteIndex" method to generate (defaults to "deleteIndex"; mandatory)
Default:
"deleteIndex"


Copyright © 2011. All Rights Reserved.