|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.emo.wizard.completion.persistence.ExpressoCompletionRepository
public class ExpressoCompletionRepository
Expresso-specific implementation that converts the completion beans to DBObjects.
Constructor Summary | |
---|---|
ExpressoCompletionRepository(CompletionDBObjConverter converter)
Completion Repository constructor that takes a converter. |
Method Summary | |
---|---|
int |
add(CompletionBean newValue)
Adds a CompletionBean to the underlying data store. |
void |
delete(int wizardId)
Deletes the completion bean from the underlying data store. |
CompletionBean |
findById(int wizardId)
Finds the completion bean by id number. |
CompletionBean |
findById(Object previouslyGeneratedKey)
Finds the bean by an id that was generated earlier by other pieces of the factory. |
void |
update(CompletionBean newValue)
Updates the completion bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressoCompletionRepository(CompletionDBObjConverter converter)
converter
- CompletionDBObjConverterMethod Detail |
---|
public int add(CompletionBean newValue) throws RepositoryException, RepositoryConversionException
add
in interface CompletionRepository
newValue
- CompletionBean the metadata for the wizard to update.
RepositoryException
- upon underlying error.
RepositoryConversionException
- if there was an error converting
the CompletionBean object to the underlying WizDefinition DBObject.public void delete(int wizardId) throws RepositoryException, ObjectNotFoundException
delete
in interface CompletionRepository
wizardId
- int the wizard surrogate key.
RepositoryException
- upon deletion error.
ObjectNotFoundException
- if the given wizard Id doesn't exist.public CompletionBean findById(int wizardId) throws RepositoryException, ObjectNotFoundException, RepositoryConversionException
CompletionRepository
findById
in interface CompletionRepository
wizardId
- int the underlying wizard id (surrogate key)
RepositoryException
- for database communication error.
ObjectNotFoundException
- if the record does not exist.
RepositoryConversionException
- if there is an error converting
the underlying dbobjects to POJOspublic CompletionBean findById(Object previouslyGeneratedKey) throws RepositoryException, ObjectNotFoundException, RepositoryConversionException
CompletionRepository
findById
in interface CompletionRepository
previouslyGeneratedKey
- Object -- typically some form of integer
RepositoryException
- for database communication error.
ObjectNotFoundException
- if the record does not exist.
RepositoryConversionException
- if there is an error converting
the underlying dbobjects to POJOspublic void update(CompletionBean newValue) throws RepositoryException, ObjectNotFoundException
update
in interface CompletionRepository
newValue
- CompletionBean
RepositoryException
- upon update erorr.
ObjectNotFoundException
- if the wizard id specified in newValue
doesn't exist in the underlying database object store.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |