Class 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.
    • Constructor Detail

      • CCMDBActualCIProvider

        public CCMDBActualCIProvider()
    • 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 -
      • 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