|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDBSSession
An interface represents the database session. Operations can be performed with a session. Transaction and Caching support can be integrated into session.
Method Summary | |
---|---|
void |
add(java.lang.String name,
IDBObj obj)
Adds object to backend database. |
void |
close()
Closes this session. |
IDBVirtualList |
createVirtualList(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs)
Retrieves a list of objects. |
IDBVirtualList |
createVirtualList(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs,
java.lang.String sortKey,
int pageSize)
Retrieves a list of objects. |
IDBVirtualList |
createVirtualList(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs,
java.lang.String startFrom,
java.lang.String sortKey,
int pageSize)
Retrieves a list of objects. |
void |
delete(java.lang.String name)
Deletes object from database. |
ISubsystem |
getDBSubsystem()
Returns database subsystem. |
void |
modify(java.lang.String name,
ModificationSet mods)
Modify an object in the database. |
netscape.ldap.LDAPSearchResults |
persistentSearch(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs)
Sets persistent search to retrieve modified certificate records. |
IDBObj |
read(java.lang.String name)
Reads an object from the database. |
IDBObj |
read(java.lang.String name,
java.lang.String[] attrs)
Reads an object from the database, and only populates the selected attributes. |
IDBSearchResults |
search(java.lang.String base,
java.lang.String filter)
Searchs for a list of objects that match the filter. |
IDBSearchResults |
search(java.lang.String base,
java.lang.String filter,
int maxSize)
Searchs for a list of objects that match the filter. |
IDBSearchResults |
search(java.lang.String base,
java.lang.String filter,
int maxSize,
int timeLimit)
Searchs for a list of objects that match the filter. |
IDBSearchResults |
search(java.lang.String base,
java.lang.String filter,
java.lang.String[] attrs)
Retrieves a list of object that satifies the given filter. |
Method Detail |
---|
ISubsystem getDBSubsystem()
void close() throws EDBException
EDBException
- failed to close sessionvoid add(java.lang.String name, IDBObj obj) throws EBaseException
session.add("cn=123459,o=certificate repository,o=airius.com", certRec);
name
- name of the objectobj
- object to be added
EDBException
- failed to add object
EBaseException
IDBObj read(java.lang.String name) throws EBaseException
name
- name of the object that is to be read
EBaseException
- failed to read objectIDBObj read(java.lang.String name, java.lang.String[] attrs) throws EBaseException
name
- name of the object that is to be readattrs
- selected attributes
EBaseException
- failed to read objectvoid delete(java.lang.String name) throws EBaseException
name
- name of the object that is to be deleted
EBaseException
- failed to delete objectvoid modify(java.lang.String name, ModificationSet mods) throws EBaseException
name
- name of the object that is to be modifiedmods
- modifications
EBaseException
- failed to modifyIDBSearchResults search(java.lang.String base, java.lang.String filter) throws EBaseException
base
- starting point of the searchfilter
- search filter
EBaseException
- failed to searchIDBSearchResults search(java.lang.String base, java.lang.String filter, int maxSize) throws EBaseException
base
- starting point of the searchfilter
- search filtermaxSize
- max number of entries
EBaseException
- failed to searchIDBSearchResults search(java.lang.String base, java.lang.String filter, int maxSize, int timeLimit) throws EBaseException
base
- starting point of the searchfilter
- search filtermaxSize
- max number of entriestimeLimit
- timeout limit
EBaseException
- failed to searchIDBSearchResults search(java.lang.String base, java.lang.String filter, java.lang.String[] attrs) throws EBaseException
base
- starting point of the searchfilter
- search filterattrs
- selected attributes
EBaseException
- failed to searchIDBVirtualList createVirtualList(java.lang.String base, java.lang.String filter, java.lang.String[] attrs) throws EBaseException
base
- starting point of the searchfilter
- search filterattrs
- selected attributes
EBaseException
- failed to searchnetscape.ldap.LDAPSearchResults persistentSearch(java.lang.String base, java.lang.String filter, java.lang.String[] attrs) throws EBaseException
base
- starting point of the searchfilter
- search filterattrs
- selected attributes
EBaseException
- failed to searchIDBVirtualList createVirtualList(java.lang.String base, java.lang.String filter, java.lang.String[] attrs, java.lang.String sortKey, int pageSize) throws EBaseException
base
- starting point of the searchfilter
- search filterattrs
- selected attributessortKey
- key used to sort the listpageSize
- page size in the virtual list
EBaseException
- failed to searchIDBVirtualList createVirtualList(java.lang.String base, java.lang.String filter, java.lang.String[] attrs, java.lang.String startFrom, java.lang.String sortKey, int pageSize) throws EBaseException
base
- starting point of the searchfilter
- search filterattrs
- selected attributesstartFrom
- starting pointsortKey
- key used to sort the listpageSize
- page size in the virtual list
EBaseException
- failed to search
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |