com.sri.emo.wizard.creation
Interface CreationRepository

All Known Implementing Classes:
ExpressoTemplateRepository

public interface CreationRepository

The boundary interface between the controller and the underlying DBObjects.

Version:
1.0
Author:
Michael Rimov

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.
 

Method Detail

add

int add(CreationBeans newValue)
        throws RepositoryException,
               RepositoryConversionException
Adds a CompletionBean to the underlying data store.

Parameters:
newValue - CompletionBean the metadata for the wizard to update.
Throws:
RepositoryException - upon underlying error.
RepositoryConversionException - if there is an error converting the underlying dbobjects to POJOs

update

void update(CreationBeans newValue)
            throws RepositoryException,
                   RepositoryConversionException,
                   ObjectNotFoundException
Updates the completion bean.

Parameters:
newValue - CompletionBean
Throws:
RepositoryException - upon update erorr.
RepositoryConversionException - if there is an error converting the underlying dbobjects to POJOs
ObjectNotFoundException

delete

void delete(int wizardId)
            throws RepositoryException,
                   ObjectNotFoundException
Deletes the completion bean from the underlying data store.

Parameters:
wizardId - int the wizard surrogate key.
Throws:
RepositoryException - upon deletion error.
RepositoryConversionException - if there is an error converting the underlying dbobjects to POJOs
ObjectNotFoundException

findById

CreationBeans findById(int wizardId)
                       throws RepositoryException,
                              ObjectNotFoundException,
                              RepositoryConversionException
Finds the completion bean by id number.

Parameters:
wizardId - int the underlying wizard id (surrogate key)
Returns:
CompletionBean the resulting bean.
Throws:
RepositoryException - for database communication error.
ObjectNotFoundException - if the record does not exist.
RepositoryConversionException - if there is an error converting the underlying dbobjects to POJOs

findById

CreationBeans findById(Object previouslyGeneratedKey)
                       throws RepositoryException,
                              ObjectNotFoundException,
                              RepositoryConversionException
Finds the bean by an id that was generated earlier by other pieces of the factory.

Parameters:
previouslyGeneratedKey - Object -- typically some form of integer
Returns:
CompletionBean the resulting bean.
Throws:
RepositoryException - for database communication error.
ObjectNotFoundException - if the record does not exist.
RepositoryConversionException - if there is an error converting the underlying dbobjects to POJOs


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.