Examples of SQLDataLoader


Examples of org.jboss.dashboard.provider.sql.SQLDataLoader

        if (StringUtils.isBlank(sqlQuery)) {
            throw new Exception( getErrorMessage("query.blank") );
        }

        // Set the SQL and try to load the new dataset.
        SQLDataLoader sqlLoader = getSQLDataLoader();

        // Ensure data retrieved is refreshed.
        try {
            if (dataSource != null) sqlLoader.setDataSource(dataSource);
            sqlLoader.setSQLQuery(sqlQuery);

            Chronometer crono = new Chronometer(); crono.start();
            DataSet ds = dataProvider.refreshDataSet();
            crono.stop();
            elapsedTime = crono.elapsedTime();
View Full Code Here

Examples of org.jboss.dashboard.provider.sql.SQLDataLoader

        // Get the parameters
        String dataSource = request.getRequestObject().getParameter("dataSource");
        String sqlQuery = request.getRequestObject().getParameter("sqlQuery");

        // Set the SQL and try to load the new dataset.
        SQLDataLoader sqlLoader = getSQLDataLoader();
        if (dataSource != null) sqlLoader.setDataSource(dataSource);
        if (sqlQuery != null) sqlLoader.setSQLQuery(sqlQuery);
        try {
            // Clear previous errors
            setQueryError(null);

            // Ensure data retrieved is refreshed.
View Full Code Here

Examples of org.jboss.dashboard.provider.sql.SQLDataLoader

        // Get the parameters
        String dataSource = request.getRequestObject().getParameter("dataSource");
        String sqlQuery = request.getRequestObject().getParameter("sqlQuery");

        // Set the SQL and try to load the new dataset.
        SQLDataLoader sqlLoader = getSQLDataLoader();
        if (dataSource != null) sqlLoader.setDataSource(dataSource);
        if (sqlQuery != null) sqlLoader.setSQLQuery(sqlQuery);

        // Clear previous errors
        setQueryError(null);

        // Ensure data retrieved is refreshed.
View Full Code Here

Examples of org.kuali.rice.test.SQLDataLoader

   * @see org.kuali.test.KRADTestCase#loadSuiteTestData()
   */
  @Override
  protected void loadSuiteTestData() throws Exception {
    super.loadSuiteTestData();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/perms-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/test-perms-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/notifications.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/type-test-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/event-type-default-data.sql", ";").runSql();
   
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/default-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/status-default-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/consideration-type-test-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/consideration-type-perms-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/transaction-type-test-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/transaction-type-perms-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/event-type-perms-roles.sql", ";").runSql();

    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-annex-type-test-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-type-test-data.sql", ";").runSql();
   
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-test-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-work-test-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-perms-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-event-test-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-transaction-test-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-assignee-test-data.sql", ";").runSql();
 
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-assignee-perms-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-consideration-perms-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-event-perms-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-type-perms-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/matter-annex-type-perms-roles.sql", ";").runSql();
   
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/conveyance-test-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/note-atts-test-data.sql", ";").runSql();
   
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/contract-test-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/contract-perms-roles.sql", ";").runSql();
   
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/court-case-test-data.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/land-case-perms-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/notification-content-event-type.sql", ";").runSql();
   
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/calendar-event-test-data.sql", ";").runSql();
   
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/test-identity-mgr-perm-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/identity-mgr-perm-roles.sql", ";").runSql();
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/openid-activation-test-data.sql", ";").runSql();
   
    new SQLDataLoader("classpath:org/martinlaw/scripts/sql/openid-setup.sql", ";").runSql();
   
    new SQLDataLoader("classpath:org/martinlaw/ldap/ldap.sql", ";").runSql();
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.