|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BlunderPersistenceService
Interface for defining a persistence service for Blunder. If you plan to write your own persistence mechanism, you should start writing your own implementation of this class.
InMemoryPersistenceService| Method Summary | |
|---|---|
void |
delete(ExceptionRelation relation)
Deletes a new ExceptionRelation. |
List<ExceptionRelation> |
findBy(String leafClassname,
String rootClassname,
String businessClassname)
Finds an ExceptionRelation for
the following arguments. |
List<ExceptionRelation> |
findByBusiness(String businessClassname)
Finds an ExceptionRelation for
the following arguments. |
List<ExceptionRelation> |
findByLeaf(String leafClassname)
Finds an ExceptionRelation for
the following arguments. |
List<ExceptionRelation> |
findByLeafAndBusiness(String leafClassname,
String businessClassname)
Finds an ExceptionRelation for
the following arguments. |
List<ExceptionRelation> |
findByLeafAndRoot(String leafClassname,
String rootClassname)
Finds an ExceptionRelation for
the following arguments. |
List<ExceptionRelation> |
findByRoot(String rootClassname)
Finds an ExceptionRelation for
the following arguments. |
ExceptionRelation |
findDefaultRelation()
|
void |
learn(ExceptionRelation relation)
Learns a new ExceptionRelation. |
void |
refresh()
Refresh the persistence service. |
void |
update(ExceptionRelation relation)
Updates a known ExceptionRelation. |
| Method Detail |
|---|
List<ExceptionRelation> findBy(String leafClassname,
String rootClassname,
String businessClassname)
ExceptionRelation for
the following arguments.
leafClassname - class name of the highest level
Exception in the chain.rootClassname - class name of the lowest level
Exception in the chain.businessClassname - class name of the business
Exception in the chain.
List of ExceptionRelation
with all relations that matches with the previous parameters.RelationResolver
List<ExceptionRelation> findByLeafAndBusiness(String leafClassname,
String businessClassname)
ExceptionRelation for
the following arguments.
leafClassname - class name of the highest level
Exception in the chain.businessClassname - class name of the business
Exception in the chain.
List of ExceptionRelation
with all relations that matches with the previous parameters.RelationResolver
List<ExceptionRelation> findByLeafAndRoot(String leafClassname,
String rootClassname)
ExceptionRelation for
the following arguments.
leafClassname - class name of the highest level
Exception in the chain.rootClassname - class name of the lowest level
Exception in the chain.
List of ExceptionRelation
with all relations that matches with the previous parameters.RelationResolverList<ExceptionRelation> findByRoot(String rootClassname)
ExceptionRelation for
the following arguments.
rootClassname - class name of the lowest level
Exception in the chain.
List of ExceptionRelation
with all relations that matches with the previous parameters.RelationResolverList<ExceptionRelation> findByLeaf(String leafClassname)
ExceptionRelation for
the following arguments.
leafClassname - class name of the highest level
Exception in the chain.
List of ExceptionRelation
with all relations that matches with the previous parameters.RelationResolverList<ExceptionRelation> findByBusiness(String businessClassname)
ExceptionRelation for
the following arguments.
businessClassname - class name of the business
Exception in the chain.
List of ExceptionRelation
with all relations that matches with the previous parameters.RelationResolverExceptionRelation findDefaultRelation()
ExceptionRelation.void learn(ExceptionRelation relation)
ExceptionRelation.
relation - the ExceptionRelation to learn.void update(ExceptionRelation relation)
ExceptionRelation.
relation - the ExceptionRelation to update.void delete(ExceptionRelation relation)
ExceptionRelation.
relation - the ExceptionRelation to delete.void refresh()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||