Class CCMDBActualCIProvider
- java.lang.Object
-
- com.ibm.di.connector.ccmdb.provider.CCMDBActualCIProvider
-
public class CCMDBActualCIProvider extends java.lang.Object
This class defines CRUD methods for Actual CIs and relationships. It is responsible for connection to the CCMDB database.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CLASS_ACTUAL_CI
static java.lang.String
CLASS_CI_RELATION
static java.lang.String
CLASS_OMP
static java.lang.String
CLASS_OMPRELATION
static java.lang.String
CLASSS_DELETED_ACTUAL_CI
static java.lang.String
ITDI
-
Constructor Summary
Constructors Constructor Description CCMDBActualCIProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnection()
protected void
executeQuery(SQLQuery query)
ActciProvider
getActciProvider()
ActciRelationProvider
getActciRelationProvider()
ClassificationProvider
getClassificationProvider()
java.sql.Connection
getConnection()
ExecutionContext
getContext()
DefinitionProvider
getDefinitionProvider()
protected java.lang.Integer
getInteger(java.lang.String queryName)
protected java.lang.String
getSQL(java.lang.String queryName)
protected java.lang.Object
getValue(java.lang.String columnName, int columnType, java.sql.ResultSet resultSet)
void
init(ExecutionContext context)
boolean
isIgnoreFieldErrors()
protected void
loadProperties(java.sql.ResultSet resultSet, java.sql.ResultSetMetaData metaData, ModelObject object)
void
setIgnoreFieldErrors(boolean ignoreFieldErrors)
protected void
setValue(java.sql.PreparedStatement statement, int paramIndex, java.lang.Object value)
-
-
-
Field Detail
-
ITDI
public static final java.lang.String ITDI
- See Also:
- Constant Field Values
-
CLASS_ACTUAL_CI
public static final java.lang.String CLASS_ACTUAL_CI
- See Also:
- Constant Field Values
-
CLASS_CI_RELATION
public static final java.lang.String CLASS_CI_RELATION
- See Also:
- Constant Field Values
-
CLASSS_DELETED_ACTUAL_CI
public static final java.lang.String CLASSS_DELETED_ACTUAL_CI
- See Also:
- Constant Field Values
-
CLASS_OMPRELATION
public static final java.lang.String CLASS_OMPRELATION
- See Also:
- Constant Field Values
-
CLASS_OMP
public static final java.lang.String CLASS_OMP
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(ExecutionContext context) throws java.lang.ClassNotFoundException, java.util.InvalidPropertiesFormatException, java.io.IOException, java.sql.SQLException
- Parameters:
context
-- Throws:
java.lang.ClassNotFoundException
java.util.InvalidPropertiesFormatException
java.io.IOException
java.sql.SQLException
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLException
- Returns:
- Connection
- Throws:
java.sql.SQLException
-
closeConnection
public void closeConnection() throws java.sql.SQLException
- Throws:
java.sql.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 java.lang.String getSQL(java.lang.String queryName)
- Parameters:
queryName
-- Returns:
- String
-
getValue
protected java.lang.Object getValue(java.lang.String columnName, int columnType, java.sql.ResultSet resultSet) throws java.sql.SQLException
- Parameters:
columnName
-columnType
-resultSet
-- Returns:
- Object
- Throws:
java.sql.SQLException
-
setValue
protected void setValue(java.sql.PreparedStatement statement, int paramIndex, java.lang.Object value) throws java.sql.SQLException
- Parameters:
statement
-paramIndex
-value
-- Throws:
java.sql.SQLException
-
executeQuery
protected void executeQuery(SQLQuery query) throws java.sql.SQLException
- Parameters:
query
-- Throws:
java.sql.SQLException
-
getInteger
protected java.lang.Integer getInteger(java.lang.String queryName) throws java.sql.SQLException
- Parameters:
queryName
-- Returns:
- Integer
- Throws:
java.sql.SQLException
-
loadProperties
protected void loadProperties(java.sql.ResultSet resultSet, java.sql.ResultSetMetaData metaData, ModelObject object) throws java.sql.SQLException
- Parameters:
resultSet
-metaData
-object
-- Throws:
java.sql.SQLException
-
-