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