org.compass.gps.device.jpa
Class JpaIndexEntityInfo

java.lang.Object
  extended by org.compass.gps.device.jpa.JpaIndexEntityInfo

public class JpaIndexEntityInfo
extends Object

Represents an index entity info that will be used to describe how (sql query or query provider) an entity will be indexed.

Author:
kimchy

Constructor Summary
JpaIndexEntityInfo(String entityName, JpaQueryProvider queryProvider)
          Constructs an index entity info that describes how an entity will be indexed.
JpaIndexEntityInfo(String entityName, String selectQuery)
          Constructs an index entity info that describes how an entity will be indexed.
 
Method Summary
 String getEntityName()
          Returns the entity name.
 JpaQueryProvider getQueryProvider()
          Returns the query provier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaIndexEntityInfo

public JpaIndexEntityInfo(String entityName,
                          String selectQuery)
Constructs an index entity info that describes how an entity will be indexed.

Parameters:
entityName - The entity name
selectQuery - The select query string

JpaIndexEntityInfo

public JpaIndexEntityInfo(String entityName,
                          JpaQueryProvider queryProvider)
Constructs an index entity info that describes how an entity will be indexed.

Parameters:
entityName - The entity name
queryProvider - The query provider to use in order to index
Method Detail

getEntityName

public String getEntityName()
Returns the entity name.


getQueryProvider

public JpaQueryProvider getQueryProvider()
Returns the query provier.



Copyright (c) 2004-2008 The Compass Project.