|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataAccess
Used to implementation the very useful "Data Access Layer" abstraction.
This interface is extended to provide a useful collection of methods. Each
method should perform a 'unit of work'. Each method should declare that it
throws DataAccessException to indicate an underlying problem (such
as an IOException, SQLException, etc.
Application-specific
exceptions can be thrown in addition to DataAccessException.
DataAccessFactory has many create methods to automate
the task of instantiating and initializing an instance.
NOTE: all implementations must have a public zero-argument constructor.
| Method Summary | |
|---|---|
void |
close()
Called to 'shutdown' the instance. |
void |
init(ValueMap config)
Called once just after construction to allow the implementation to setup everything required to run. |
| Method Detail |
|---|
void init(ValueMap config)
throws DataAccessException
config - all the settings needed to complete initialization
DataAccessException - if initialization could not complete,
possibly chained to an underlying cause.void close()
|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||