Responsible for creating indices for associations used in queries
Type | Name and description |
---|---|
PersistentEntity |
getIndexedEntity() |
void |
index(K primaryKey, java.util.List<T> foreignKeys) Creates an index queryable via the primary key |
void |
index(T primaryKey, K foreignKey) Index a single foreign key |
java.util.List<T> |
query(K primaryKey) Queries the given primary key and returns the foreign keys |
Creates an index queryable via the primary key
primaryKey
- The primary keyforeignKeys
- The foreign keysIndex a single foreign key
primaryKey
- The primaryKeyforeignKey
- The foreignKeyQueries the given primary key and returns the foreign keys
primaryKey
- The primary key