Package org.rhq.core.db

Examples of org.rhq.core.db.DatabaseType


            return;
        }

        validateAttributes();

        DatabaseType db_type = getDatabaseType();
        Connection conn = getConnection();
        int jdbc_type_int = translateSqlType(columnType);

        try {
            // Check to see if the column exists.
            boolean foundColumn = db_type.checkColumnExists(conn, table, column);
            if (!foundColumn) {
                throw new BuildException(MSG.getMsg(DbAntI18NResourceKeys.UPDATE_COLUMN_DOES_NOT_EXIST, column, table));
            }

            log(MSG.getMsg(DbAntI18NResourceKeys.UPDATE_EXECUTING, columnType, jdbc_type_int, table, column, value,
                where));
            db_type.update(conn, table, column, where, value, jdbc_type_int);
        } catch (Exception e) {
            throw new BuildException(MSG.getMsg(DbAntI18NResourceKeys.UPDATE_ERROR, table, column, e), e);
        }
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.db.DatabaseType

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.