|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sri.emo.wizard.creation.persistence.ExpressoTemplateRepository
public class ExpressoTemplateRepository
Expresso-specific implementation that converts the completion beans to DBObjects.
| Constructor Summary | |
|---|---|
ExpressoTemplateRepository(CreationDBObjConverter converter)
Completion Repository constructor that takes a converter. |
|
| Method Summary | |
|---|---|
int |
add(CreationBeans newValue)
Adds a CompletionBean to the underlying data store. |
void |
delete(int wizardId)
Deletes the completion bean from the underlying data store. |
CreationBeans |
findById(int wizardId)
Finds the completion bean by id number. |
CreationBeans |
findById(Object previouslyGeneratedKey)
Finds the bean by an id that was generated earlier by other pieces of the factory. |
void |
update(CreationBeans 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 ExpressoTemplateRepository(CreationDBObjConverter converter)
converter - CompletionDBObjConverter| Method Detail |
|---|
public int add(CreationBeans newValue)
throws RepositoryException,
RepositoryConversionException
add in interface CreationRepositorynewValue - 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 CreationRepositorywizardId - int the wizard surrogate key.
RepositoryException - upon deletion error.
ObjectNotFoundException - if the given wizard Id doesn't exist.
public CreationBeans findById(int wizardId)
throws RepositoryException,
ObjectNotFoundException,
RepositoryConversionException
CreationRepository
findById in interface CreationRepositorywizardId - 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 POJOs
public CreationBeans findById(Object previouslyGeneratedKey)
throws RepositoryException,
ObjectNotFoundException,
RepositoryConversionException
CreationRepository
findById in interface CreationRepositorypreviouslyGeneratedKey - 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 POJOs
public void update(CreationBeans newValue)
throws RepositoryException,
ObjectNotFoundException
update in interface CreationRepositorynewValue - 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 | |||||||||