com.ibm.di.connector.ccmdb.provider
Class CCMDBActualCIProvider
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CCMDBActualCIProvider
public CCMDBActualCIProvider()
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