|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RelationshipManager
allows to effectively work with relationships stored in a relational database.
Database.queryStoreForInterface(Class, Class)| Nested Class Summary | |
|---|---|
static class |
RelationshipManager.Column
provides the topics for the mapping of the store |
| Method Summary | |
|---|---|
int |
countRelations(Map<RelationshipManager.Column,Object> restrictions)
the mapped values for the class columns RelationshipManager.Column.TO_CLASS and RelationshipManager.Column.FROM_CLASS
may be represented as Class |
EntryClassMapper |
getEntryClassMapper()
returns the EntryClassMapper used by the store to map the class of the references |
boolean |
hasRelationships(DBReference ref)
determines if there are any relationsips present for a given reference (both: active and passive) |
Set<DefaultEntryRelationship> |
listAllRelations(DBReference ref,
Object relationType)
contains passive and active relationships for the given reference - restricted to the given type if non-null |
List<DefaultEntryRelationship> |
listRelations(Map<RelationshipManager.Column,Object> restrictions)
the mapped values for the class columns RelationshipManager.Column.TO_CLASS and RelationshipManager.Column.FROM_CLASS
may be represented as Class |
| Method Detail |
|---|
List<DefaultEntryRelationship> listRelations(Map<RelationshipManager.Column,Object> restrictions)
throws DatabaseException
RelationshipManager.Column.TO_CLASS and RelationshipManager.Column.FROM_CLASS
may be represented as Class> objects as an alternative to the class name base on
EntryClassMapper.STRING_MAPPER.
DatabaseException
int countRelations(Map<RelationshipManager.Column,Object> restrictions)
throws DatabaseException
RelationshipManager.Column.TO_CLASS and RelationshipManager.Column.FROM_CLASS
may be represented as Class> objects as an alternative to the class name base on
EntryClassMapper.STRING_MAPPER.
DatabaseException
boolean hasRelationships(DBReference ref)
throws DatabaseException
DatabaseException
Set<DefaultEntryRelationship> listAllRelations(DBReference ref,
Object relationType)
throws DatabaseException
DatabaseExceptionEntryClassMapper getEntryClassMapper()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||