Examples of CachedRowSet


Examples of javax.sql.rowset.CachedRowSet

          throw errorVar;
        }
      } else {
        // AD:20/11/2008: Allow for CachedRowSet to be updated if the DBDataSet has already been populated.
        if (resultSet instanceof CachedRowSet) {
          CachedRowSet cachedRowSet = (CachedRowSet) resultSet;
          try {
            cachedRowSet.updateBoolean(pColOrdinal, pValue);
          } catch (SQLException e) {
            UsageException errorVar = new UsageException(e.getMessage(), net.helipilot50.stocktrade.framework.Constants.SP_ER_USER, net.helipilot50.stocktrade.framework.Constants.SP_ER_PARAMETERERROR, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
          }
View Full Code Here

Examples of javax.sql.rowset.CachedRowSet

          throw errorVar;
        }
      } else {
        // AD:20/11/2008: Allow for CachedRowSet to be updated if the DBDataSet has already been populated.
        if (resultSet instanceof CachedRowSet) {
          CachedRowSet cachedRowSet = (CachedRowSet) resultSet;
          try {
            cachedRowSet.updateShort(pColOrdinal, pValue);
          } catch (SQLException e) {
            UsageException errorVar = new UsageException(e.getMessage(), net.helipilot50.stocktrade.framework.Constants.SP_ER_USER, net.helipilot50.stocktrade.framework.Constants.SP_ER_PARAMETERERROR, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
          }
View Full Code Here

Examples of sun.jdbc.rowset.CachedRowSet

public class RowSetFactory extends Factory {

        public Object create( String type, Parameter[] parameters )
           throws Throwable {
                Connection conn = null;
                CachedRowSet crs = new CachedRowSet();
                RowSetFactoryMapping factoryMapping= ( RowSetFactoryMapping )getFactoryMapping();
                String dataSourceName = factoryMapping.getDataSource();

                DataSource dataSource = ((ServletServiceManager)getFactoryService().getServiceManager()).getStrutsDataSource( dataSourceName );
                       

                if( dataSource==null )
                        throw new ServletException( "DataSource '" +
                                   dataSourceName + "' not found!");

                try {
                        conn = dataSource.getConnection();

                        crs.setCommand( (String)parameters[0].getValue() );

                        for( int i = 1; i < parameters.length; i++ ) {
                                crs.setObject( i, parameters[i].getValue() );
                        }

                        crs.execute( conn );

                } catch ( SQLException e ) {
                        try {
                                conn.close();
                        } catch ( Exception t ) {
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.