com.ibm.di.connector.ccmdb.provider
Class CCMDBActualCIProvider

java.lang.Object
  extended by com.ibm.di.connector.ccmdb.provider.CCMDBActualCIProvider

public class CCMDBActualCIProvider
extends Object

This class defines CRUD methods for Actual CIs and relationships. It is responsible for connection to the CCMDB database.


Field Summary
static String CLASS_ACTUAL_CI
           
static String CLASS_CI_RELATION
           
static String CLASS_OMP
           
static String CLASS_OMPRELATION
           
static String CLASSS_DELETED_ACTUAL_CI
           
static String ITDI
           
 
Constructor Summary
CCMDBActualCIProvider()
           
 
Method Summary
 void closeConnection()
           
protected  void executeQuery(SQLQuery query)
           
 ActciProvider getActciProvider()
           
 ActciRelationProvider getActciRelationProvider()
           
 ClassificationProvider getClassificationProvider()
           
 Connection getConnection()
           
 ExecutionContext getContext()
           
 DefinitionProvider getDefinitionProvider()
           
protected  Integer getInteger(String queryName)
           
protected  String getSQL(String queryName)
           
protected  Object getValue(String columnName, int columnType, ResultSet resultSet)
           
 void init(ExecutionContext context)
           
 boolean isIgnoreFieldErrors()
           
protected  void loadProperties(ResultSet resultSet, ResultSetMetaData metaData, ModelObject object)
           
 void setIgnoreFieldErrors(boolean ignoreFieldErrors)
           
protected  void setValue(PreparedStatement statement, int paramIndex, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ITDI

public static final String ITDI
See Also:
Constant Field Values

CLASS_ACTUAL_CI

public static final String CLASS_ACTUAL_CI
See Also:
Constant Field Values

CLASS_CI_RELATION

public static final String CLASS_CI_RELATION
See Also:
Constant Field Values

CLASSS_DELETED_ACTUAL_CI

public static final String CLASSS_DELETED_ACTUAL_CI
See Also:
Constant Field Values

CLASS_OMPRELATION

public static final String CLASS_OMPRELATION
See Also:
Constant Field Values

CLASS_OMP

public static final String CLASS_OMP
See Also:
Constant Field Values
Constructor Detail

CCMDBActualCIProvider

public CCMDBActualCIProvider()
Method Detail

init

public void init(ExecutionContext context)
          throws ClassNotFoundException,
                 InvalidPropertiesFormatException,
                 IOException,
                 SQLException
Parameters:
context -
Throws:
ClassNotFoundException
InvalidPropertiesFormatException
IOException
SQLException

getConnection

public Connection getConnection()
                         throws SQLException
Returns:
Connection
Throws:
SQLException

closeConnection

public void closeConnection()
                     throws SQLException
Throws:
SQLException

isIgnoreFieldErrors

public boolean isIgnoreFieldErrors()
Returns:
boolean

setIgnoreFieldErrors

public void setIgnoreFieldErrors(boolean ignoreFieldErrors)
Parameters:
ignoreFieldErrors -

getContext

public ExecutionContext getContext()
Returns:
ExecutionContext

getClassificationProvider

public ClassificationProvider getClassificationProvider()
Returns:
ClassificationProvider

getDefinitionProvider

public DefinitionProvider getDefinitionProvider()
Returns:
DefinitionProvider

getActciRelationProvider

public ActciRelationProvider getActciRelationProvider()
Returns:
ActciRelationProvider

getActciProvider

public ActciProvider getActciProvider()
Returns:
ActciProvider

getSQL

protected String getSQL(String queryName)
Parameters:
queryName -
Returns:
String

getValue

protected Object getValue(String columnName,
                          int columnType,
                          ResultSet resultSet)
                   throws SQLException
Parameters:
columnName -
columnType -
resultSet -
Returns:
Object
Throws:
SQLException

setValue

protected void setValue(PreparedStatement statement,
                        int paramIndex,
                        Object value)
                 throws SQLException
Parameters:
statement -
paramIndex -
value -
Throws:
SQLException

executeQuery

protected void executeQuery(SQLQuery query)
                     throws SQLException
Parameters:
query -
Throws:
SQLException

getInteger

protected Integer getInteger(String queryName)
                      throws SQLException
Parameters:
queryName -
Returns:
Integer
Throws:
SQLException

loadProperties

protected void loadProperties(ResultSet resultSet,
                              ResultSetMetaData metaData,
                              ModelObject object)
                       throws SQLException
Parameters:
resultSet -
metaData -
object -
Throws:
SQLException