The hibernate device provides support for using jpa to index a database. The path can
be viewed as: Database <-> Hibernate <-> Objects <-> Compass::Gps
<-> Compass::Core (Search Engine). What it means is that for every object that has both
Hibernate and compass mappings, you will be able to index it's data, as well as real time mirroring of
data changes.
When creating the object, a SessionFactory must be provided to the Device.
setFetchCount(int fetchCount) Sets the fetch count for the indexing process.
public void
setIgnoreMirrorExceptions(boolean ignoreMirrorExceptions) Should exceptions be ignored during the mirroring operations (the Hibernate event listeners).
Sets a specific query provider for the index process of the given entity class.
Note, this information is used when the device starts.
Parameters: entityClass - The Entity class to associate the query provider with Parameters: queryProvider - The query provider to execute when indexing the given entity
Sets a specific query provider for the index process of the given entity name.
Note, this information is used when the device starts.
Parameters: entityName - The Entity name to associate the query provider with Parameters: queryProvider - The query provider to execute when indexing the given entity
setIndexSelectQuery
public void setIndexSelectQuery(Class entityClass, String selectQuery)(Code)
Sets a specific select statement for the index process of the given
entity class.
Note, this information is used when the device starts.
Parameters: entityClass - The Entity class to associate the select query with Parameters: selectQuery - The select query to execute when indexing the given entity
setIndexSelectQuery
public void setIndexSelectQuery(String entityName, String selectQuery)(Code)
Sets a specific select statement for the index process of the given
entity name.
Note, this information is used when the device starts.
Parameters: entityName - The entity name to associate the select query with Parameters: selectQuery - The select query to execute when indexing the given entity
Sets a mirroring filter that can filter hibernate mirror events. If no mirror filter is set
no filtering will happen.
Parameters: mirrorFilter - The mirror filter handler