public abstract class BaseRelationshipRepository<T extends de.whitefrog.frogr.model.relationship.Relationship> extends BaseRepository<T> implements RelationshipRepository<T>
modelClass| Constructor and Description |
|---|
BaseRelationshipRepository() |
| Modifier and Type | Method and Description |
|---|---|
T |
createModel(Model from,
Model to)
Creates a relationship model between two models.
|
T |
createModel(org.neo4j.graphdb.PropertyContainer node,
FieldList fields)
Create appropriate the model for a neo4j property container and fetch some fields.
|
T |
find(long id,
FieldList fields) |
org.neo4j.graphdb.Relationship |
getRelationship(de.whitefrog.frogr.model.relationship.Relationship model)
Get the underlying neo4j relationship for a relationship model.
|
void |
remove(T model)
Delete a model
|
void |
save(SaveContext<T> context)
Save the model inside the passed SaveContext.
|
cache, contains, createModel, dispose, fetch, fetch, fetch, find, findByUuid, getModelClass, getType, graph, initialize, logger, persistence, queryBuilder, queryIdentifier, refetch, refetch, relationships, save, save, search, service, sort, validateModelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcache, contains, createModel, dispose, fetch, fetch, fetch, find, findByUuid, getModelClass, getType, graph, initialize, persistence, queryBuilder, queryIdentifier, refetch, refetch, relationships, save, save, search, service, sortpublic T createModel(Model from, Model to)
RelationshipRepositorycreateModel in interface RelationshipRepository<T extends de.whitefrog.frogr.model.relationship.Relationship>from - Relationship starts hereto - Relationship ends herepublic T createModel(org.neo4j.graphdb.PropertyContainer node, FieldList fields)
RepositorycreateModel in interface Repository<T extends de.whitefrog.frogr.model.relationship.Relationship>node - The property container to usefields - Field list to fetch from property containerpublic org.neo4j.graphdb.Relationship getRelationship(de.whitefrog.frogr.model.relationship.Relationship model)
RelationshipRepositorygetRelationship in interface RelationshipRepository<T extends de.whitefrog.frogr.model.relationship.Relationship>model - Relationship model used to get the neo4j relationshippublic void remove(T model) throws de.whitefrog.frogr.exception.PersistException
Repositoryremove in interface Repository<T extends de.whitefrog.frogr.model.relationship.Relationship>model - Model to deletede.whitefrog.frogr.exception.PersistExceptionpublic void save(SaveContext<T> context) throws de.whitefrog.frogr.exception.PersistException
Repositorysave in interface Repository<T extends de.whitefrog.frogr.model.relationship.Relationship>context - Must contain the model to savede.whitefrog.frogr.exception.PersistExceptionCopyright © 2018. All rights reserved.