org.compass.gps.device.hibernate
Class HibernateEntityIndexInfo

java.lang.Object
  extended by org.compass.gps.device.hibernate.HibernateEntityIndexInfo

public class HibernateEntityIndexInfo
extends Object

An object holding the entity name and a specific sql query for indexing or a direct {link HibernateQueryProvider}.

Author:
kimchy
See Also:
HibernateGpsDevice.setindexEntityInfo(HibernateEntityIndexInfo)

Constructor Summary
HibernateEntityIndexInfo(String entityName, HibernateQueryProvider queryProvider)
          Constructs a new index entity info.
HibernateEntityIndexInfo(String entityName, String sqlQuery)
          Constructs a new index entity info.
 
Method Summary
 String getEntityName()
          Returns the index entity name.
 HibernateQueryProvider getQueryProvider()
          Returns the index query provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateEntityIndexInfo

public HibernateEntityIndexInfo(String entityName,
                                String sqlQuery)
Constructs a new index entity info.

Parameters:
entityName - The entity name
sqlQuery - The sql query

HibernateEntityIndexInfo

public HibernateEntityIndexInfo(String entityName,
                                HibernateQueryProvider queryProvider)
Constructs a new index entity info.

Parameters:
entityName - The entity name
queryProvider - A query provider that will construct the index query
Method Detail

getEntityName

public String getEntityName()
Returns the index entity name.


getQueryProvider

public HibernateQueryProvider getQueryProvider()
Returns the index query provider.



Copyright (c) 2004-2008 The Compass Project.