Package com.ibm.di.connector.ccmdb
Class CIRelationDataHandler
- java.lang.Object
-
- com.ibm.di.connector.ccmdb.AbstractDataHandler
-
- com.ibm.di.connector.ccmdb.CIRelationDataHandler
-
public class CIRelationDataHandler extends AbstractDataHandler
An implementation of AbstrcatDataHander that is designed to work with relationships.
-
-
Field Summary
-
Fields inherited from class com.ibm.di.connector.ccmdb.AbstractDataHandler
ALL, ctx
-
-
Constructor Summary
Constructors Constructor Description CIRelationDataHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddEntry(Entry entry)Inserts an instance of selected artifact type into the data store.EntrygetNextEntry()This method returns a single entry object for a selected artifact instance, searched as per criteria.EntrygetSchema()Returns the schema that is based on selected artifact type and class name.voidinit(ExecutionContext context)booleanremoveEntry(Entry entry)Removes an instance of selected artifact type from the data store.voidselectEntries()This method will fetch instances of selected artifact type.voidsetSearchCriteria(SearchCriteria criteria)Sets the search criteria used in select operation.booleanupdateEntry(Entry entry)Updates an instance of selected artifact type in the database.-
Methods inherited from class com.ibm.di.connector.ccmdb.AbstractDataHandler
getClassifications
-
-
-
-
Method Detail
-
init
public void init(ExecutionContext context)
- Overrides:
initin classAbstractDataHandler- Parameters:
context- the executionContext instance associated with the current execution.
-
getSchema
public Entry getSchema() throws CCMDBException
Description copied from class:AbstractDataHandlerReturns the schema that is based on selected artifact type and class name.- Specified by:
getSchemain classAbstractDataHandler- Returns:
- Entry The schema.
- Throws:
CCMDBException- if a problem occurs.
-
getNextEntry
public Entry getNextEntry() throws CCMDBException
Description copied from class:AbstractDataHandlerThis method returns a single entry object for a selected artifact instance, searched as per criteria.- Specified by:
getNextEntryin classAbstractDataHandler- Returns:
- Entry the next read entry.
- Throws:
CCMDBException- if a problem occurs.
-
setSearchCriteria
public void setSearchCriteria(SearchCriteria criteria) throws CCMDBException
Description copied from class:AbstractDataHandlerSets the search criteria used in select operation.- Specified by:
setSearchCriteriain classAbstractDataHandler- Parameters:
criteria- SearchCriteria object provided by CE- Throws:
CCMDBException- if a problem occurs.
-
selectEntries
public void selectEntries() throws CCMDBExceptionDescription copied from class:AbstractDataHandlerThis method will fetch instances of selected artifact type. The selection is based on selected class name and search criteria that has been set.- Specified by:
selectEntriesin classAbstractDataHandler- Throws:
CCMDBException- if a problem occurs.
-
addEntry
public boolean addEntry(Entry entry) throws CCMDBException
Description copied from class:AbstractDataHandlerInserts an instance of selected artifact type into the data store.- Specified by:
addEntryin classAbstractDataHandler- Parameters:
entry- the Entry to be added.- Returns:
- boolean indicates if the entry has been added successfully.
- Throws:
CCMDBException- if a problem occurs.
-
updateEntry
public boolean updateEntry(Entry entry) throws CCMDBException
Description copied from class:AbstractDataHandlerUpdates an instance of selected artifact type in the database. The instance attributes are extracted from an input entry.- Specified by:
updateEntryin classAbstractDataHandler- Parameters:
entry- The Entry to be updated.- Returns:
- boolean indicates if the specified artifact has been updated successfully.
- Throws:
CCMDBException- if a problem occurs.
-
removeEntry
public boolean removeEntry(Entry entry) throws CCMDBException
Description copied from class:AbstractDataHandlerRemoves an instance of selected artifact type from the data store. The instance is identified based on an input entry.- Specified by:
removeEntryin classAbstractDataHandler- Parameters:
entry- the Entry to be deleted.- Returns:
- boolean indicates if the specified artifact has been deleted successfully.
- Throws:
CCMDBException- if a problem occurs.
-
-