Examples of execute()


Examples of com.sun.org.apache.xpath.internal.objects.XObject.execute()

                     xctxt.getSAXLocator());
      // "Variable accessed before it is bound!", xctxt.getSAXLocator());

    // Lazy execution of variables.
    if (val.getType() == XObject.CLASS_UNRESOLVEDVARIABLE)
      return (_stackFrames[index] = val.execute(xctxt));

    return val;
  }

  /**
 
View Full Code Here

Examples of com.sun.rowset.JdbcRowSetImpl.execute()

         JdbcRowSet rowSet = new JdbcRowSetImpl()
         rowSet.setUrl( DATABASE_URL ); // set database URL
         rowSet.setUsername( USERNAME ); // set username
         rowSet.setPassword( PASSWORD ); // set password
         rowSet.setCommand( "SELECT * FROM authors" ); // set query
         rowSet.execute(); // execute query

         // process query results
         ResultSetMetaData metaData = rowSet.getMetaData();
         int numberOfColumns = metaData.getColumnCount();
         System.out.println( "Authors Table of Books Database:" );
View Full Code Here

Examples of com.sun.star.awt.XDialog.execute()

        XDialogProvider2 xDialogProvider = (XDialogProvider2)
          UnoRuntime.queryInterface( XDialogProvider2.class, obj );
           
        XDialog xDialog = xDialogProvider.createDialogWithHandler( DialogURL, this );
        if( xDialog != null )
          xDialog.execute();
      }
      catch (Exception e) {
        e.printStackTrace();
      }
      return "Created dialog \"" + DialogURL + "\"";
View Full Code Here

Examples of com.sun.star.awt.XMessageBox.execute()

              XMessageBox.class, xPeer);
            if ( null != xMsgBox )
            {
              xMsgBox.setCaptionText( sTitle );
              xMsgBox.setMessageText( sMessage );
              xMsgBox.execute();
            }
          }
        }
      } catch ( com.sun.star.uno.Exception e) {
        // do your error handling
View Full Code Here

Examples of com.sun.star.form.runtime.XFormOperations.execute()

            final String[][] fieldTypesDefinitions = impl_getFieldTypeDefinitions();
            final String[] fieldTypes = fieldTypesDefinitions[0];

            final String[] displayValues = impl_getDisplayValues();

            formOperations.execute( FormFeature.MoveToFirst );
            for ( int row=0; row<2; ++row )
            {
                StringBuffer failedFieldTypes = new StringBuffer();
                for ( int i=0; i<fieldTypes.length; ++i )
                {
View Full Code Here

Examples of com.sun.star.lib.TestBed.execute()

        return new String[] { "test" };
    }

    public void test() throws Exception {
        TestBed t = new TestBed();
        assure("test", t.execute(new Provider(t), false, Client.class, 0));
    }

    public static final class Client extends TestBed.Client {
        public static void main(String[] args) {
            new Client().execute();
View Full Code Here

Examples of com.sun.star.report.ReportJob.execute()

                    currentLocale = getLocaleFromRegistry(simpleReg,"org.openoffice.Office.Linguistic","General/DefaultLocale");
                }
                if ( currentLocale != null && !"".equals(currentLocale) )
                    System.setProperty("org.pentaho.reporting.libraries.formula.locale", currentLocale);
                final ReportJob job = createReportJob(namedValue);
                job.execute();

            }
            catch ( java.lang.Exception e )
            {
                LOGGER.error("ReportProcessing failed", e);
View Full Code Here

Examples of com.sun.star.sdbc.XPreparedStatement.execute()

                for ( int row=0; row<displayValues.length; ++row )
                {
                    statementParameters.setString( 1, keyValues[row] );
                    statementParameters.setString( 2, displayValues[row] );
                    statement.execute();
                }

                // remember a column descriptor for later creation of the table with the foreign keys
                foreignKeyColumns.addnew HsqlColumnDescriptor( columnFKName, columnType, HsqlColumnDescriptor.REQUIRED,
                    tableName, columnPKName ) );
View Full Code Here

Examples of com.sun.star.sdbc.XRowSet.execute()

                            return ev ;
                        }
                        public void changeRowSet() {
                            try {
                                xRowSet.execute() ;
                                xResSet.first() ;
                            } catch (com.sun.star.sdbc.SQLException e) {
                                logF.println("### _XRowSetApproveBroadcaster."+
                                    "RowSetApproveChecker.changeRowSet() :") ;
                                e.printStackTrace(logF) ;
View Full Code Here

Examples of com.sun.star.sdbc.XStatement.execute()

    /** executes the given SQL statement via the defaultConnection
     */
    public void executeSQL( String statementString ) throws SQLException
    {
        XStatement statement = defaultConnection().createStatement();
        statement.execute( statementString );
    }

    /** stores the database document
    */
    public void store() throws IOException
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.