Query API question (OMG) ?

Can I create a query such as this:
select m from Message m where m.folder.owner.id = :subjectName order by :orderCriterion asc...where orderCriterion is the criterion of the "order by" clause ?
I.e. dynamicly supplying the order criterion..
Is this legal in JPAQL ?

No. Not as a input parameter. Input parameters can only be used in the WHERE and HAVING clause.
You have to dynamically construct the query string yourself to achieve this.
- Roy

Similar Messages

  • PeopleCode :: Query API :: Query Expression collection problems

    Hi all,
    I'm trying to use the Query API in PeopleCode to tack on an expression to the end of an existing query. Thus far I have been successful doing just a QueryField without any problems. Here is some example code of what I have done with the Query Expression collection and where I am stuck:
    &Criteria = &MainQrySel.AddCriteria("criteria1");
    &Criteria.Logical = %Query_CombAnd;
    &Criteria.Expr1Type = %Query_Expression;
    &crit = &Criteria.AddExpr1Expression();
    &Criteria.Expr1Expression = &crit;
    &crit.Text = -some expression-;
    &Criteria.Operator = %Query_CondEqual;
    &Criteria.Expr2Type = %Query_ExprConstant;
    &crit = &Criteria.AddExpr2Expression();
    &Criteria.Expr2Expression1 = &crit;
    &crit.Text = -some criteria-;
    So what's happening is that the left hand part of the expression is added to the entire statement along with the operator (the equals sign). The odd part is that the right hand part of the expression is not (basically the -some criteria- part).
    If anyone has any ideas on how to solve this mystery, please let me know...I'm rather confuzzled!
    Thanks in advance!

    Well, I finally discovered he solution on my own, by reverse-engineering Oracle's own search.jsp (which does not use Oracle's custom tag library, btw) (probably because same doesn't really work, or at least it doesn't what's in the documentation doesn't work) (which isn't surprising).
    You have to do the "From" part of the query as an "attribute filter".
    oracle.ultrasearch.query.Query searchQuery=
    new oracle.ultrasearch.query.Contains(searchString, metadata);
    oracle.ultrasearch.query.Query attrQuery=
    new oracle.ultrasearch.query.From(metadata.getGroup(groupToSearch));
    oracle.ultrasearch.query.Request searchRequest=new oracle.ultrasearch.query.Request();
    searchRequest.setQuery(searchQuery);
    searchRequest.setFilter (attrQuery);
    Maybe that will do somebody some good somewhere...
    Troy

  • On Hand Query API - LPN ATR

    Hi All,
    I am using the On Hand Query API inv_quantity_tree_pub.query_quantities in our custom code, to get the ATR (Available to Reserve) Quantities. It is working fine to get the ATR Quantities specific to Item, Lot, Sub Inventory, Locator.
    But If I go one level below to LPN, it is not returning the ATR specific to the LPN (eventhough I pass P_LPN_ID). Suppose if there are 3 LPNs for 1 Lot, if I call the API by giving all the details including the LPN (IN parameter P_LPN_ID), it is returning the ATR (OUT parameter X_ATR) for the whole Lot (i.e same value for all the 3 LPNs), not specific to the LPN. Below is the API call, I am using in our code.
    I am expecting the same ATR value, as I could see in the On Hand Availability Form. Please let me know, if I am missing any thing on this.
    inv_quantity_tree_grp.clear_quantity_cache;
    inv_quantity_tree_pub.query_quantities
    p_api_version_number => 1.0
    ,p_init_msg_lst => apps.fnd_api.g_false
    ,x_return_status => l_api_ret_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data
    ,p_organization_id => p_organization_id
    ,p_inventory_item_id => p_inventory_item_id
    ,p_tree_mode => 2--inv_quantity_tree_pub.g_transaction_mode
    ,p_onhand_source => 3--inv_quantity_tree_pvt.g_all_subs
    ,p_is_revision_control => FALSE
    ,p_is_lot_control => TRUE
    ,p_is_serial_control => FALSE
    ,p_revision => NULL
    ,p_lot_number => p_lot_number
    ,p_lot_expiration_date => SYSDATE
    ,p_lpn_id => p_lpn_id
    ,p_subinventory_code => p_subinventory
    ,p_locator_id => p_locator_id
    ,p_grade_code => NULL
    ,x_qoh => l_qty_oh
    ,x_rqoh => l_qty_res_oh
    ,x_qr => l_qty_res
    ,x_qs => l_qty_sug
    ,x_att => l_qty_att
    ,x_atr => l_qty_atr
    ,x_sqoh => l_sqty_oh
    ,x_srqoh => l_sqty_res_oh
    ,x_sqr => l_sqty_res
    ,x_sqs => l_sqty_sug
    ,x_satt => l_sqty_att
    ,x_satr => l_sqty_atr
    Appreciate your help on this.
    Thanks,
    Gowri.

    Hi
    you cannot associate a lot number to an LPN unless this LPN is a Container Item.
    You can generate the using GENERATE_LPN API, this will populate WMS_LICENSE_PLATE_NUMBERS. then you will have to insert a record with Item and Lot to WMS_LPN_CONTENTS
    with reference WMS_LPN_CONTENTS.PARENT_LPN_ID to WMS_LICENSE_PLATE_NUMBERS.LPN_ID
    Hareesh

  • cache-query-results question

    I have another post for general descriptor tag information but I do have a specific question. In a project I am looking at I see:
    <cache-usage> check cache by primary key </cache-usage>
    <cache-query-results>false</cache-query-results>
    <maintain-cache>true</maintain-cache>
    I'm not sure how to interpret this. Does this mean that a cache is in place or not? cache-query-rests is set to false which implies no caching, yet the other parameters imply a cache is in place. What overrides here?
    Thanks

    The XML maps directly to the API so the JavaDocs and related documentation are the best tools:
    cache-usage: query.setCacheUsage(int)
    This option indicates how the object cache should be used when processing the query. This is how in-memory query is configured as well as support for cache-hits on ReadObjectQuery.
    cache-query-result: query.setShouldCacheQueryResults(boolean)
    This option allows you to indicate that the results returned from the query execution should be held. When the query is executed again these results will be returned without going to the database or searching the object cache. This is just caching the results locally within the query.
    maintain-cache: query.maintainCache() or query.dontMaintainCache()
    This setting determines if the results returned from the query should be cached in the shared object cache. It is on by default and turning this off is very rare. Occasionally done to compare the cache version with the database verision when handling an optimistic locking failure.
    Doug

  • Cannot get Java Query API to work

    I am trying to use the ultrasearch java api and am having no luck. I get this error:
    Exception in thread "main" oracle.ultrasearch.query.SearchException: WKG17005: connection failure: Closed Connection
    at oracle.ultrasearch.query.Instance.connect(Instance.java:383)
    at oracle.ultrasearch.query.Instance.getResult(Instance.java:561)
    at oracle.ultrasearch.query.Instance.getResult(Instance.java:725)
    at oracle.ultrasearch.query.Instance.getResult(Instance.java:677)
    at Test.search(Test.java:77)
    at Test.main(Test.java:92)
    Here is my code:
    oracle.ultrasearch.query.Instance searcher=new oracle.ultrasearch.query.Instance();
    Connection conn=getConnection();
    try {
    searcher.setConnection(conn);
    searcher.setInstanceName("ULTRASEARCH_DOTORG");
    oracle.ultrasearch.query.Request searchRequest=new oracle.ultrasearch.query.Request();
    oracle.ultrasearch.query.Query searchQuery=new oracle.ultrasearch.query.Contains("water", searcher.getMetaData());
    searchRequest.setQuery(searchQuery);
    oracle.ultrasearch.query.Result searchResults=searcher.getResult(searchRequest);
    } finally {
    conn.close();
    Note that "getConnection()" is using the standard OracleDataSource class supplied with the current 10g driver; I've used it to connect to other oracle databases without trouble. I am working within a standard Windows JDK 1.5 (also tried 1.4.2) environment.
    I've also tried using QueryInstance instead of Instance - exception and code follow:
    Exception in thread "main" oracle.ultrasearch.query.SearchException: WKG17005: connection failure: User credentials doesn't match the existi
    ng ones
    at oracle.ultrasearch.query.Instance.connect(Instance.java:383)
    at oracle.ultrasearch.query.Instance.getMetaData(Instance.java:432)
    at Test.search2(Test.java:89)
    at Test.main(Test.java:94)
    oracle.ultrasearch.query.QueryInstance searcher=new oracle.ultrasearch.query.QueryInstance();
    searcher.setConnectionString(jdbcURL);
    searcher.setUser(jdbcUserName);
    searcher.setPassword(jdbcUserPass);
    searcher.setInstanceName("ULTRASEARCH_DOTORG");
    oracle.ultrasearch.query.Request searchRequest=new oracle.ultrasearch.query.Request();
    oracle.ultrasearch.query.Query searchQuery=new oracle.ultrasearch.query.Contains("water", searcher.getMetaData());
    searchRequest.setQuery(searchQuery);
    oracle.ultrasearch.query.Result searchResults=searcher.getResult(searchRequest);
    Any ideas?

    As always I find the answer right after I post a question....
    This post explained it pretty well:
    Connection Pooling and QueryInstance
    My first example will work as long as I call Instance.setCloseConnection(false). Apparently the second example can only work in OC4J, although I haven't verified such.
    It would be a really good idea for Oracle to get it together and add this information to their JavaDocs.

  • Query panel questions?

    hi , i am using jdev11g r2, and ADF BC
    i can drag and drop the view criteria on a page as a query with table result, I can make query perfectly.
    my question is if I want to bold the lable of the criteria input fields in the af:query. How to do that, Thanks!
    Rgds!

    you have to use it like
    .label af|query::criterion-label{
    font-weight: bold;
    }and use the .criteria in ur af:query component like
    <af:query styleClass="label">for detailed information on how to use css changes refer
    Re: How to make panelHeader title to be in Red color.

  • MVA SQL Server Query Assessment question

    Hi Guys
    I was doing a course on MVA, Querying Microsoft SQL Server Quick Start. This question came up in the assessment:
    True or False: You use the INTERSECT operator to combine results from two SELECT statements. Only rows that appear in both results sets are displayed.
    I answered it as TRUE but it marked it wrong.
    Am I not right??
    Thanks

    Hi,
    Choose yourself :-)
    http://technet.microsoft.com/en-us/library/ms188055.aspx
    [Personal Site] [Blog] [Facebook]

  • Bi Query Design Question

    Hi,
                I have a question regarding a query design issue I was faced with today. I was asked to designed a Query, however all the fields required are all defined as characteristics but I would like to display one as a key figure. I would have a characteristic for a row, the column also for a characteristic and have another characteristic displayed instead of the key figured…… Is that possible?
    Thanks for any feedback

    Hi Serge,
    This question would be more appripriate -- and you will get a quicker answer -- in the BI Forums.  Please open your question there.
    Best Regards,
    Matt

  • Update several rows with single query (easy question, I guess)

    Hi all!
    I have table with two columns - name and value.
    I populate it with several sql queries:
    insert into settings (name, value) values ('company_name', 'My Company');
    insert into settings (name, value) values ('company_address', 'Company Address 12');
    insert into settings (name, value) values ('company_city', 'South Park');
    How can update rows with company_name and company_city in single query?
    Thank you in advance!

    How can update rows with company_name and company_city in single query?I guess something like this was meant:
    update settings set value = ??? where name in ('company_name ', 'company_city');But it's still unclear to me what should be used instead of question marks... :)
    Regards.

  • Query View questions

    Hi,
         Can anyone tell me how I can find out what query belongs to a query view?  A table out there? 
    Found the answer to this question: Table RSZWVIEW.
         Also,  if a person has access to the query do they automatically get access to the view?
    Thanks!

    You are correct about the table.  There is a trick for query views.  You must insert an entry into the RSADMIN table in order to start checking for authorizations based on query views, otherwise, it simply uses the query.  There is an OSS note: 601090.  Hope this helps. 
    Thanks,
    Jeff

  • Simple Query Caching Question

    I have a .cfm template that is used to render a handful of
    pages of my website. Each page is a department, for example, like
    "Arts & Entertainment", "Health", "Finance", and so on. On each
    of these pages (rendered by this same template) there is a common
    element... a list of our top ten articles. I have used the
    "cachedwithin" feature to cache the query for a 3-hour period.
    My question is this...
    Since it is a single template generating these department
    pages, the "top articles" query is exactly the same in terms of
    query name, datasource... only the SQL statement (which uses a
    "WHERE department_id = X" statement) is different. Let's say I have
    ten departments rendered by this template... should it be caching
    all ten queries, regardless of the names being the same?

    Hopefully you only have one cfquery tag and it is located in
    the .cfm template and you are using a variable in your where
    clause. If not, you are not being efficient with your code.
    If you do have just one cfquery tag, and you have a
    cachedwithin attribute, cold fusion will cache a query each time
    your variable changes.

  • API Question

    Does the configurator provide a means of accessing the PS API..? I was contemplating createing a UI using C#/C++ or Delphi and COM but if this tool will give me the UI ability while exposing the SDK API for PS then that would be prefered. I looked through the threads and didnt see this question, apologies if its a dupe.
    Also, is there an example of running scripts and actions for PS from a UI element created with the configurator...?
    Thanks
    David

    Hi David,
    may I suggest you to get a look to the Photoshop Panel Developer's Guide here:
    http://www.adobe.com/devnet/photoshop/pdfs/photoshop_panel_developers_guide.pdf
    It gives you advices and examples on how to build photoshop panels in Flash/Flex (with Flex you've plenty of UI element to play with - sliders, drop down lists, etc). I don't think you need patchpanel, or at least I've been able to do my own stuff without it: I've some javascript functions that are called by the panel depending on few sliders and checkbox.
    Anyway, something that prooved to be impossible without writing some temporary image files and managing in fancy ways the input-output stream is to embed in the panel a PixelBender kernel - something that would make the panel a close brother of a Photoshop plugin
    Regards,
    Davide Barranca
    Bologna, Italy

  • Swing API question

    hello.
    my name is james mcfadden and i am a final year computing student at letterkenny IT in ireland. i have a program here that i want you to take a look at. i am using this program among many programs in my final year project. the program compiles and runs. but when it compiles, i get a message from the jGRASP compiler (which always works well for me) saying that i was using a depracated API function. i found out what that depracated API function was. it was the show() function. this function was used in version 1.4.2 of java, but was dropped out of java 5.0. i checked up the java 5.0 API on the web and discovered that the show() function had been replaced by the setVisible(boolean b) function. i don't know how to use this new API function in my code. the question that i have to ask you is: how do i replace the show() function in my code with the setVisible(boolean b) function? Below is the code and the result i got back from the compiler when i compiled the code. thank you very much for your help.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class LogOn extends JPanel{
       private static JTextField username=null;
       private static JPasswordField password=null;
       private static JButton button=null;
       public LogOn(){
          setSize(260,160);
          username=new JTextField(15);
          password=new JPasswordField(15);
          JLabel usernameLabel=new JLabel("Username: ");
          JLabel passwordLabel=new JLabel("Password: ");
          add(usernameLabel);
          add(username);
          add(passwordLabel);
          add(password);
          show();
          button=new JButton("Ok");
          add(button);
          button.addActionListener(new ButtonListener());
          JFrame frame=new JFrame("Welcome to Home Entertainment");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.add(this);
          frame.pack();
          frame.setVisible(true);
       private class ButtonListener implements ActionListener{
          public void actionPerformed(ActionEvent e){
             try{
                Demo d = new Demo();
                d.getChoice();
             catch(Exception ex){}
    }----jGRASP exec: javac -g X:\CP4B Project\LogOn.java
    Note: X:\CP4B Project\LogOn.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    ----jGRASP: operation complete.

    Hi James,
    your class extends JPanel. JPanel inherits show from java.awt.Component. If you have a look at the API documentation. The extension path of JPanel is
    java.lang.Object
    java.awt.Component
    java.awt.Container
    javax.swing.JComponent
    javax.swing.JPanel
    javax.swing.JComponent has a method setVisible(<boolean>). That means JPanel has all methods,that are Implemented in JComponent
    So (although I have not yet used it)
    replacing
    show() ;
    by
    setVisible(true) ;
    in your code should do the trick...

  • JDeveloper10g VCS Extension API Question

    Hi.
    I wrote a VCS system for JDeveloper9.0.3 against Microsoft Visual Source Safe, which worked fine. We've now upgraded to 10g, and this system does no longer work, because the JDev's extension API has changed.
    I'm therefore rewriting the system to support the 10g API. But I'm a bit overwhelmed by the changes made to the API. Where do I start?
    1. I wish to implement a new panel in JDev's preferences screen under VersionControl systems which can configure my plugin.
    2. I wish to present files in the Navigator window with overlay icons on files checked in, checked out, not present and such.
    4. I wish to add my plugin to the context menu for the Navigator, so that users can be presented with the choice to perform file operations against VSS.
    3. I wish to present one dialog for single file operations and one for multiple file operations.
    Which classes do I need to extend? Which interfaces do I need to implement?
    Can someone give me directions? The help file for the extension API does not give sufficient answers.

    To answer your other questions:
    The VCSPropertyCustomizer object I've written contains properties I need to use during any VSS operations. Does the IDE store these properties in an easily retrievable place, or do I need to handle this myself.
    You can get a VCSPropertyMap from the Ide like this:
      ((VCSPropertyMap)Ide.getSettings().getData( YOUR_DATA_KEY );
    And another thing, the example above does not describe dialogs on operations like checkin, checkout and so on.
    Would this be implemented in the doitImpl() method in my implementation of VCSAbstractCommand?
    Yes... Below is a snippet from the code for the ClearCase client.
    FWIW, sorry it's so much work to do this. I'm working on an (optional, i.e won't break existing code) way of just writing a simple xml file to integrate version control clients into JDeveloper that should hopefully make everyone's life easier in the future :P
      protected int doitImpl() throws Exception
        final Collection nodes = getNodesToCheckIn();
        if ( nodes.size() <= 0 )
          return NOOP;
        if (! saveDirtyDocuments( nodes ))
          return Command.CANCEL;
        final Map timestampMap = VCSBufferUtils.storeTimestamps( nodes );
        final VCSDirectoryInvokableState invokableState =
            new VCSDirectoryInvokableState( VCSModelUtils.convertNodesToURLs(
                nodes ) );
        final VCSCommandState state = new VCSCommandState( invokableState,
            timestampMap );
        if ( context.getView() instanceof ClearCaseChangeListWindow &&
          !((ClearCaseChangeListWindow)context.getView()).isUsingCheckInDialog() )
          return checkInSilently( nodes, state,
            ClearCaseClient.getInstance().getChangeListCustomizer() );
        else
          return checkIn( nodes, state );
      protected void noOpImpl() throws ClearCaseValidationException
        throw new ClearCaseValidationException(
            ResourcePicker.get().getString( "ERROR_CHECKIN_FILTERED_TITLE" ), //NOTRANS
            ResourcePicker.get().getString( "ERROR_CHECKIN_FILTERED" ) ); //NOTRANS
      private int checkInSilently(
        final Collection nodes,
        final VCSCommandState state,
        final VCSOptionsCustomizer customizer )
        Ide.getWaitCursor().show();
        Runnable r = new Runnable()
          public void run()
            try
              doCommitOperationImpl( Ide.getMainWindow(), customizer.getOptions(),
                state );
            catch ( Exception e )
              getExceptionHandler().handleException( e, Ide.getMainWindow() );
            finally
              EventQueue.invokeLater( new Runnable()
                public void run()
                  Ide.getWaitCursor().hide();
                  postCheckIn( state );
        Thread t = new Thread( r, "ClearCase Check In Committer" ); // NOTRANS
        t.start();
        return OK;
      private int checkIn( final Collection nodes,
          final VCSCommandState state )
        throws Exception
        boolean multiCheckin = ( nodes.size() > 1 );
        final VCSOptionsCustomizer customizer =
            new VCSCommentsCustomizer( new ClearCaseCheckinCustomizer(),
            multiCheckin );
        if ( getContext().getView() instanceof ClearCaseChangeListWindow )
          customizer.setOptions(
            ClearCaseClient.getInstance().getChangeListCustomizer().getOptions()
        final JEWTDialog dialog = VCSComponents.createOperationDialog(
          VCSWindowUtils.getCurrentWindow(),
          ResourcePicker.get().getString( "CHECKIN_CAPTION" ), //NOTRANS
          ResourcePicker.get().getString( "CHECKIN_LONG_PROMPT" ), //NOTRANS
          VCSComponents.createFileListerComponent( nodes ),
          customizer.getComponent(),
          "f1_clearcasechkin_html", //NOTRANS
          customizer.getInitialFocusComponent()
        Map options = null;
        if ( ! multiCheckin )
          String checkoutComments = retrieveCheckoutComments( ((Locatable)nodes.
              iterator().next()).getURL() );
          // bug 3067323 - check in dialog does not prepopulate with check out comments
          if ( checkoutComments != null )
            customizer.setOptions( Collections.singletonMap( KEY_SETTING_COMMENTS,
                checkoutComments ) );
        else
          customizer.setOptions( Collections.singletonMap(
              KEY_SETTING_REUSE_COMMENTS, _optionReuseComments ) );
        dialog.addVetoableChangeListener( new VCSDialogCommitter()
          protected final boolean doCommitOperation() throws Exception
            return doCommitOperationImpl(
                dialog, customizer.getOptions(), state);
        boolean dialogSuccessful = ClearCaseDialogRunner.runDialog( dialog );
        postCheckIn( state );
        _optionReuseComments = (Boolean)customizer.getOptions().get(
            KEY_SETTING_REUSE_COMMENTS );
        return (! dialogSuccessful ? Command.CANCEL : Command.OK);
      private void postCheckIn( VCSCommandState state )
        Collection processedUrls = state.getInvokableState().getProcessedURLs();
        if ( processedUrls.size() > 0 )
          VCSBufferUtils.reloadBuffers( state.getTimestampMap() );
        URLFilter filter = VCSURLFilters.createSpecificURLFilter(
          (URL[])processedUrls.toArray( new URL[0] ) );
        ClearCaseClient.getInstance().getStatusCache().clear( filter );
      private boolean doCommitOperationImpl(
          Component dialog, Map options, VCSCommandState state )
          throws Exception
        DeterminateProgressMonitor monitor = new DeterminateProgressMonitor(
          dialog,
          ResourcePicker.get().getString( "CHECKIN_PROGRESS_TITLE" ), //NOTRANS
          ResourcePicker.get().getString( "CHECKIN_WATCHER_DESCRIPTION" ), //NOTRANS
          0,
          -1
        final ClearCaseShellRunner runner = new ClearCaseShellRunner();
        List cmd = new ArrayList();
        cmd.add( "ci" ); //NOTRANS
        Boolean b = (Boolean)options.get( KEY_SETTING_IDENTICAL_CHECKIN );
        if (b != null && b.booleanValue())
          cmd.add( "-ide" ); //NOTRANS
        b = (Boolean)options.get( KEY_SETTING_REUSE_COMMENTS );
        String s = null;
        if (b == null || ! b.booleanValue())
          s = (String)options.get( KEY_SETTING_COMMENTS );
        URL commentFile = writeCommentsFile( s, cmd );
        runner.setCmdList( cmd );
        VCSDirectoryInvokable invokable = new ClearCaseDirectoryInvokable(
            state.getInvokableState(), ClearCaseUtil.FILE_COMMAND_BATCH_SIZE )
          protected final boolean doInvocation2( URL parent, URL[] invokeUrls )
              throws Exception
            String[] filenames = VCSFileSystemUtils.getURLFileNames( invokeUrls );
            runner.setDirURL( parent );
            runner.setOptions( Arrays.asList( filenames ) );
            doInvocationImpl( runner );
            return true;
        invokable.setProgressMonitor( monitor );
        try
          if (! invokable.runInvokable())
            return false;
        finally
          if ( commentFile != null )
            URLFileSystem.delete( commentFile );
        return true;
      private void doInvocationImpl( ClearCaseShellRunner runner ) throws Exception
        runner.exec();
        String error = runner.getErrorText();
        if ( error != null &&
             error.indexOf( "The most recent version on branch" ) >= 0 && //NOTRANS
             error.indexOf( "is not the predecessor of this version" ) >= 0 ) //NOTRANS
          throw new ClearCaseOperationException(
            ResourcePicker.get().getString( "ERROR_CHECKIN_FAILED_TITLE" ), //NOTRANS
            ResourcePicker.getPicker( ClearCaseOperationCheckin.class ).getString(
                "ERROR_CHECKIN_FAILED_SUBSUMED" ) ); //NOTRANS
        if (runner.getExitCode() == null ||
            runner.getExitCode().intValue() != 0)
          throw new ClearCaseProcessException(
            ResourcePicker.get().getString( "ERROR_CHECKIN_FAILED_TITLE" ), //NOTRANS
            ResourcePicker.getPicker( ClearCaseOperationCheckin.class ).getString(
                "ERROR_CHECKIN_FAILED" ), runner.getErrorText() ); //NOTRANS
      private String retrieveCheckoutComments( URL url )
        // bug 3067323 - check in dialog does not prepopulate with check out comments
        String[] cmd = new String[] { "lsco", "-me", "-fmt", "%c", "-cvi", //NOTRANS
            URLFileSystem.getPlatformPathName( url ) };
        try
          ClearCaseShellRunner runner = new ClearCaseShellRunner();
          URL parent = URLFileSystem.getParent( url );
          if ( url == null )
            return null;
          runner.setCmdArray( cmd );
          runner.setDirURL( parent );
          runner.setQuiet( true );
          runner.exec();
          String output = runner.getOutputText();
          if ( output != null && output.equals( "" ) )
            return null;
          return output;
        catch ( Exception e )
          oracle.ide.util.Assert.printStackTrace( e );
          return null;

  • Query Filter Question

    I need to query a knowledge base folder and I use this query to filter it. QueryFilter stringFilter = new StringQueryFilter( ObjectProperty.Created, Operator.Contains, keyword ); //wherein keyword is defined as the string that the user enters in a search textbox. Is this the right way of querying a folder with the use of a string keyword? Do you have any other suggestions?

    ObjectProperty.Created is a date property - if you really meant you want to do a range query against the creation date, then I would guess you want to use DateQueryFilter instead.
    However, if you want to do a "contains" query against some other text property, you might get better results (in 5.0.2 and higher) by using the prc.search API. This runs the query against the Search Server. Check out class IPortalSearchRequest for more info.

Maybe you are looking for

  • Reason code 34952

    hello in reports i have seen reason code 34952 but i do not see 34952 in predefined codes in ucce admin guide. this code not put in by us and does not show in registry keys. has any body seen 34952 before? we use cad 9 -aashish

  • Type in russian

    After a Skype update, I cannot type in Russian.

  • Binding- Slow Log-In when Offline

    Our school has roughly 300 MacBooks assigned out to students. Each MacBook is bound to our Xserve through Open Directory and also to our Active Directory Server. All log-in/ account info comes through active directory. The first time students log in,

  • New laptop, transer photoshop?

    I am thinking about getting a new laptop, but i'm unsure if that will affect my Photoshop subscription at all? I do not have a code to use because I bought Photoshop directly off of the adobe website. Therefore what will I have to do to get Photoshop

  • Adobe flash will not instal( compaq presario sr1103wm) windows xp os

    trying to get adobe flash to install. I have several downloads then when I go thru procedure to instal it never completes. Does anyone have a patch or driver to remedy this or is this computer a throw away. Failed to initialize ! is the message i get