org.ow2.dragon.persistence.dao
Class GenericCompassDAOImpl<T,PK extends java.io.Serializable>

java.lang.Object
  extended by org.compass.spring.CompassDaoSupport
      extended by org.ow2.dragon.persistence.dao.GenericCompassDAOImpl<T,PK>
All Implemented Interfaces:
GenericOSEMDAO<T,java.io.Serializable>, org.springframework.beans.factory.InitializingBean

public class GenericCompassDAOImpl<T,PK extends java.io.Serializable>
extends org.compass.spring.CompassDaoSupport
implements GenericOSEMDAO<T,java.io.Serializable>

Author:
ofabre - eBM Websourcing

Field Summary
 java.lang.Class<T> type
           
 
Constructor Summary
GenericCompassDAOImpl()
           
 
Method Summary
 java.lang.Class<T> getManipulatedType()
          Return the type of entity manipulated by this DAO
 java.util.List<T> search(java.lang.String query)
          Return a List of entity managed by the Full Text Search Engine.
 void setType(java.lang.Class<T> type)
           
 
Methods inherited from class org.compass.spring.CompassDaoSupport
afterPropertiesSet, createCompassTemplate, getCompass, getCompassTemplate, initDao, setCompass, setCompassTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public java.lang.Class<T> type
Constructor Detail

GenericCompassDAOImpl

public GenericCompassDAOImpl()
Method Detail

setType

public void setType(java.lang.Class<T> type)

search

public java.util.List<T> search(java.lang.String query)
Description copied from interface: GenericOSEMDAO
Return a List of entity managed by the Full Text Search Engine. Only the search engine managed attributes of these entities are populated

Specified by:
search in interface GenericOSEMDAO<T,java.io.Serializable>
Parameters:
query - a Lucene String query
Returns:
a List of entity managed by the Full Text Search Engine.

getManipulatedType

public java.lang.Class<T> getManipulatedType()
Return the type of entity manipulated by this DAO

Specified by:
getManipulatedType in interface GenericOSEMDAO<T,java.io.Serializable>
Returns:
the Class of the manipulated entity


Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.