Package com.volantis.mcs.repository.jdbc

Examples of com.volantis.mcs.repository.jdbc.JDBCRepositoryConnection


    // Javadoc inherited from super class.
    public RepositoryEnumeration enumerateDeviceNames(RepositoryConnection connection)
            throws RepositoryException {

        JDBCRepositoryConnection jdbcConnection
                = (JDBCRepositoryConnection) connection;

        String name = resolveFieldName(jdbcConnection, NAME_COLUMN_NAMES);

        return repository.selectUniqueValues(jdbcConnection, name,
View Full Code Here


    // Cast the repository connection to a JDBC Connection in
    // order to get the java.sql.Connection out.
    Connection sqlConnection = ((JDBCRepositoryConnection) connection).
                                    getConnection ();

    JDBCRepositoryConnection jdbcConnection
        = (JDBCRepositoryConnection) connection;

    String projectName = getProjectName();

    Statement stmt = null;
View Full Code Here

    // javadoc inherited.
    public RepositoryEnumeration enumerateDeviceTACs(
            final RepositoryConnection connection)
            throws RepositoryException {

        JDBCRepositoryConnection jdbcConnection =
                (JDBCRepositoryConnection) connection;

        final String projectName = getProjectName();

        // resolve field names
View Full Code Here

    // Cast the repository connection to a JDBC Connection in
    // order to get the java.sql.Connection out.
    Connection sqlConnection = ((JDBCRepositoryConnection) connection).
                                    getConnection ();

    JDBCRepositoryConnection jdbcConnection
            = (JDBCRepositoryConnection) connection;

    String projectName = getProjectName();

    Statement stmt = null;
View Full Code Here

                           String policyName)
    throws RepositoryException {

    String projectName = getProjectName();

    JDBCRepositoryConnection jdbcConnection
        = (JDBCRepositoryConnection) connection;

    Statement stmt = null;
    try {
      // remove from VMPOLICY_VALUES
View Full Code Here

    // order to get the java.sql.Connection out.
    Connection sqlConnection = ((JDBCRepositoryConnection) connection).
                                    getConnection ();


    JDBCRepositoryConnection jdbcConnection
        = (JDBCRepositoryConnection) connection;

    String projectName = getProjectName();

    Statement stmt = null;
View Full Code Here

    // javadoc inherited.
    public RepositoryEnumeration enumeratePolicyNames(
            RepositoryConnection connection) throws RepositoryException {

        // Cast the repository connection to a JDBC Connection.
        JDBCRepositoryConnection jdbcConnection
                = (JDBCRepositoryConnection) connection;

        // Get the java.sql.Connection out of the JDBC Connection.
        Connection sqlConnection = jdbcConnection.getConnection();

        // resolve field names
        String policyField = resolveFieldName(jdbcConnection, POLICY_COLUMN_NAMES);
        String projectField = resolveFieldName(jdbcConnection, PROJECT_COLUMN_NAMES);
View Full Code Here

    public RepositoryEnumeration enumeratePolicyNames(
            RepositoryConnection connection, String categoryName)
            throws RepositoryException {

        // Cast the repository connection to a JDBC Connection.
        JDBCRepositoryConnection jdbcConnection
                = (JDBCRepositoryConnection) connection;

        // Get the java.sql.Connection out of the JDBC Connection.
        Connection sqlConnection = jdbcConnection.getConnection();

        // resolve field names
        String policyField = resolveFieldName(jdbcConnection, POLICY_COLUMN_NAMES);
        String projectField = resolveFieldName(jdbcConnection, PROJECT_COLUMN_NAMES);
        String categoryNameField = resolveFieldName(jdbcConnection, CATEGORY_NAME_COLUMN_NAMES);
View Full Code Here

            throws RepositoryException {

        DefaultPolicyDescriptor descriptor = null;

         // Cast the repository connection to a JDBC Connection.
        JDBCRepositoryConnection jdbcConnection
                = (JDBCRepositoryConnection) connection;

        // Cast the repository connection to a JDBC Connection in
        // order to get the java.sql.Connection out.
        Connection sqlConnection = ((JDBCRepositoryConnection) connection).
View Full Code Here

        DefaultCategoryDescriptor descriptor = null;

        // at first we have to check if the category name is valid

        // Cast the repository connection to a JDBC Connection.
        final JDBCRepositoryConnection jdbcConnection
               = (JDBCRepositoryConnection) connection;

        // Resolve field names.
        final String categoryNameField =
            resolveFieldName(jdbcConnection, CATEGORY_NAME_COLUMN_NAMES);
        final String projectField =
            resolveFieldName(jdbcConnection, PROJECT_COLUMN_NAMES);
        final String categoryIDField =
            resolveFieldName(jdbcConnection, CATEGORY_ID_COLUMN_NAMES);
        final String languageIDField =
            resolveFieldName(jdbcConnection, LANGUAGE_COLUMN_NAMES);

        // Resolve table name.
        final String vmPolicyCategoryTable =
            resolveTableName(jdbcConnection, VMPOLICY_CATEGORY);

        // Get the java.sql.Connection out of the JDBC Connection.
        final Connection sqlConnection = jdbcConnection.getConnection();

        Statement stmt = null;
        String categoryId = null;
        try {
            stmt = sqlConnection.createStatement();
View Full Code Here

TOP

Related Classes of com.volantis.mcs.repository.jdbc.JDBCRepositoryConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.