|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.map.BaseDatabase
public abstract class BaseDatabase
Abstract base class for concrete databases.
Constructor Summary | |
---|---|
BaseDatabase(DDatabase database)
Constructor. |
|
BaseDatabase(DSession session,
NotesLocation location)
Constructor. |
|
BaseDatabase(NotesLocation location)
Constructor. |
|
BaseDatabase(java.lang.String locationUri)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
create(java.lang.Class clazz)
Creates a new instance of a business object with a given class. |
protected DDatabase |
getDatabase()
Returns the database specified by the current location. |
protected DSession |
getSession(NotesLocation location)
Creates and returns a new domingo session for a given location. |
java.lang.String |
getTitle()
The title of a database. |
void |
map(DDocument document,
java.lang.Object object)
Maps a domingo document to a business object. |
void |
map(DViewEntry viewEntry,
java.lang.Object object)
Maps a Domingo ViewEntry to a business object. |
void |
map(java.lang.Object object,
DDocument document)
Maps a business object to a domingo document. |
protected void |
register(java.lang.Class mapperClass)
Registers a mapper in the mapper factory. |
protected abstract void |
registerMappers()
Implemented by derived class; must register all mappers. |
void |
save(java.lang.Object object)
Saves a business object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseDatabase(DSession session, NotesLocation location) throws DNotesException
session
- an existing domingo sessionlocation
- location of database.
DNotesException
- if the uri is invalid or the database cannot be
openedpublic BaseDatabase(java.lang.String locationUri) throws DNotesException
locationUri
- URI of location of database.
DNotesException
- if the uri is invalid or the database cannot be
openedpublic BaseDatabase(NotesLocation location) throws DNotesException
location
- location of database.
DNotesException
- if the uri is invalid or the database cannot be
openedpublic BaseDatabase(DDatabase database) throws DNotesException
database
- a notes database
DNotesException
- if the database is invalid or cannot be openedMethod Detail |
---|
protected final DSession getSession(NotesLocation location) throws DNotesException
location
- location of database.
DNotesException
- if the uri is invalid or the database cannot be
openedprotected abstract void registerMappers() throws MapperRegistrationException
MapperRegistrationException
- if an error occurred during
registering a mapperprotected final void register(java.lang.Class mapperClass) throws MapperRegistrationException
mapperClass
- the class of the new mapper
MapperRegistrationException
- if an error occurred during
registering a mapperprotected final DDatabase getDatabase()
public final java.lang.Object create(java.lang.Class clazz)
clazz
- class of business object
public final void save(java.lang.Object object) throws MappingException
object
- business object to save
MappingException
- if an error occurred during mappingpublic final void map(java.lang.Object object, DDocument document) throws MappingException
object
- the business objectdocument
- the domingo document to map to
MappingException
- if an error occurred during mappingMapper.map(java.lang.Object,
de.bea.domingo.DDocument)
public final void map(DDocument document, java.lang.Object object) throws MappingException
document
- the domingo document to mapobject
- the business object
MappingException
- if an error occurred during mappingMapper.map(de.bea.domingo.DDocument,
java.lang.Object)
public final void map(DViewEntry viewEntry, java.lang.Object object) throws MappingException
viewEntry
- the domingo ViewEntryobject
- the business object
MappingException
- if an error occurred during mappingDMapper.map(DViewEntry, Object)
public final java.lang.String getTitle()
DDatabase.getTitle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |