How implement finder method with bean inheritance?

I have a ProductBean which is the super class of BookBean, ClothesBean and I want to create a find method like:
public ProductRemote findAllInCategory(Integer categoryID) throws FinderException, RemoteException;Since each bean is going to have its own table, what's the best way to do this? Is this even possible with CMP find methods?

I dont think inheritance is going to work here, cos when u write the ejb-ql for the method, there you have to provide the table names and u said each bean has different tables.

Similar Messages

  • Configuring Lazy Loading on Finder Methods with Annotations

    Hi!
    I would like to ask you if it is possible to "Configuring Lazy Loading on Finder Methods with Annotations" in Toplink Essentials, using annotations instead of deployment descriptor.
    Thank you,
    Florin

    I am not sure what you are asking. Lazy loading is configured on the mapping, not the queries.
    There are examples on how to configure lazy loading on mappings at www.otn.oracle.com/jpa. If this is not what youare trying to do, please give me a use case that you are trying to support. thanks
    Peter

  • How to find inbound with repect to goods receipt?

    Dear Gurus,
    how to find inbound with repect to goods receipt?
    Any report?
    Thanks,

    Once you do goods receipt inbound delivery no gets updated in Material document delivery note field.Use Table MKPF to get inbound delivery umber against material document
    Material document field :MKPF -MBLNR
    Inbound delivery Ref :MKPF-XBLNR

  • How to implement find methods in CMP?

    As OC4J does not support EJB-QL, we need to implement the find methods by ourselves. But how? Here is my thought.
    1) Still declare the find methods in EJB home, such as
    public Collection findBySponsor(String sponsorGuid);
    2) Do not add query part to ejb-jar.xml file;
    3) In the bean class, implement the find method using JDBC code.
    Does CMP allows explicit-implementation of finder methds?
    Does CMP allows explicit-call to JDBC code?
    Thanks,

    Henry -- Why go to that trouble? For the near term I would suggest that you just modify the generated
    orion-ejb-jar.xml descriptors which will include tags to allow you to either 1) enter a partial criteria or
    2) enter a complete SQL statement. This is much less work and when EJB-QL is available with the product,
    then you have to only add the EJB-QL to the ejb-jar.xml.
    Thanks -- Jeff

  • Using wildcards in custom find methods with CMP beans

    Hi,
    I'd like to create a custom find method called findByName which accepts a string. I'd typically want to use the string in a '%<name>%' scenario, where the user needn't type in the whole name. Does anybody know what the partial query should look like? I'm not sure how to concatenate the '%' symbol to the string taken in.
    Thanks in advance
    Gillian

    Gillian-
    Bind variables are of the form $1, $2, etc., so try using a query stmt like this:
    select * from YOURTABLE where name like '%$1%'
    Regards,
    -Jon

  • How to find sunstring with regular expression?

    How can I find a substring in a string with a regular expression?
    Example:
    I have a original string "<tr><th>RecordId: </th><td valign=middle>A4711</td></tr>"
    Now i want to extract the value "A4711" from this string with a regular expression. Everything except "A4711" is fixed, the id "A4711" itself is dynamic. How is it possible to get the substring "A4711" of the original string with a regular expression?

    i wrote a little method with the infos above to get such results:
         * Get all substrings of a string that matches a regular expression.
         * @param original String to inspect.
         * @param regExp Regular expression as search criteria.
         * @return All matches of <i>regExp</i> or null if one input parameter is null.
        public static String[] getSubstrings(String original, String regExp) {
            String[] result = null;
            if (original != null && regExp != null) {
                Pattern pattern = Pattern.compile(regExp);
                Matcher matcher = pattern.matcher(original);
                boolean matchFound = matcher.find();
                Vector matches = new Vector();
                while (matchFound) {
                    String match = matcher.group();        
                    matches.addElement(match);
                    matchFound = matcher.find();
                }//next match
                int count = matches.size();
                result = new String[count];
                for (int i = 0; i < count; i++) {
                    result[i] = (String) matches.elementAt(i);
                }//next match
            }//else: input unavailable
            return result;
        }//getSubstrings()

  • Find method with dates

    Hellow ,
    I want to create a find-method that should represent following statement :
    select * from emp where date > to_date( '24/01/2002', 'dd/MM/yyyy' );
    I defined in my EJB-home-method something like this ...
    public Collection findByStukEname( String date ) throws RemoteException, FinderException;
    Then I deployed to a J2ee-server ...
    and in the orion-ejb-jar.xml I changed the finder-method into ...
    <finder-method query="select * from emp where date > to_date( $1 , 'dd/MM/yyyy' )" partial="false">
    <method>
    <ejb-name>EMP</ejb-name>
    <method-name>findByStukEname</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method>
    </finder-method>
    But i doesn't work ? Did I make a mistake ?? Is there a beter way to do it ?? ( maybe working with java.util.Date ?? )
    Greetz
    Steven

    Hi Steven,
    OC4J uses an instance of java.sql.PreparedStatement to execute your
    "finder" method. Now you have defined a member of your bean class that will be inserted into your query string in place of the "$1".
    I'm guessing that this member is an instance of "Date" (either
    java.util.Date or java.sql.Date). If that is the case, then you need
    to change your query string to
    select * from emp where date > $1
    Also, you may not be aware of this, but I always use java.sql.Timestamp
    when mapping EJB members to DATE columns in the Oracle database tables.
    (Not java.sql.Date)
    Hope this helps,
    Avi.

  • How to find table with colum that not support by data pump network_link

    Hi Experts,
    We try to import a database to new DB by data pump network_link.
    as oracle statement, Tables with columns that are object types are not supported in a network export. An ORA-22804 error will be generated and the export will move on to the next table. To work around this restriction, you can manually create the dependent object types within the database from which the export is being run.
    My question, how to find these tables with colum that that are object types are not supported in a network export.
    We have LOB object and oracle spital SDO_GEOMETRY object type. our database size is about 300G. nornally exp will takes 30 hours.
    We try to use data pump with network_link to speed export process.
    How do we fix oracle spital users type SDO_GEOMETRY issue during data pump?
    our system is 32 bit window 2003 and 10GR2 database.
    Thanks
    Jim
    Edited by: user589812 on Nov 3, 2009 12:59 PM

    Hi,
    I remember there being issues with sdo_geometry and DataPump. You may want to contact oracle support with this issue.
    Dean

  • How to find roles with open field values

    Hello SAP gurus,
    I need to find a way to find roles with open field values. Some kind of report that returns me a list of all roles that, despite having a generated profile, it still contains empty field values in it.
    Is there anything like it available on SAP?
    Thanks
    Antonio

    Some kind of report that returns me a list of all roles that, despite having a generated profile, it still contains empty field values in it
    Hey I am not sure, but seems I might have seen some report like that. Can you try search report named PFCG* / PFUD*
    Again this is either report (SE38/SA38) or may be FM (SE37). I am away from system a bit while and can't recall.
    Regards,
    Arpan Paik

  • How to find routers with multiple bgp neighbors using baseline templates?

    Running LMS 4.1 5k on Windows
    We have around 400 routers on a MPLS network. Only few of these have more than one BGP neighbor. We need to enable some bgp traps so we know when a bgp neighbor is down. How would I write a baseline template to check if a router has more than one bgp neighbor?
    basically I want to know if a router has more than one statement of the following kind:
    router bgp xxxxx
    neighbor x.x.x.x remote-as xxxxx   <-- 1st neighbor
    neighbor y.y.y.y remote-as yyyyy    <-- 2nd neighbor

    Yes, it looks like the bug I mentioned previously.  The bug has nothing to do with RME.  You can use RME or not, and this bug will still be triggered.  While an upgrade is recommended, the Release notes detail a workaround:
    The 1711 router gives traceback when we process an snmpwalk at OID
    "cInetIcmpMsgOutPkts" (1.3.6.1.4.1.9.10.86.1.3.2.1.6) from CISCO-IETF-IP-MIB or
    when ciscoDslCpeMIB is queried (1.3.6.1.4.1.9.20.1.1).
    12.2(15) works well
    12.3(8)T4 and 12.0(3)T are giving this problem.
    Didn4t find a similar problem reported to this one.
    Workaround:
    The problem lies in CISCO-DSL-CPE-MIB, so if you don't need this mib you can
    exclude it from the default or created snmp view, thereby preventing the
    traceback. Here is an example of 1) changing default view and 2) creating a new
    view.
    -- change the default snmp view to exclude CISCO-DSL-CPE-MIB
    conf term
    snmp-server view v1default ciscoDslCpeMIB excluded
    end
    show snmp view
    -- create a new snmp view that excludes CISCO-DSL-CPE-MIB
    conf term
    no snmp-server view nodslmib
    snmp-server view nodslmib iso included
    snmp-server view nodslmib internet.6.3.15 excluded
    snmp-server view nodslmib internet.6.3.16 excluded
    snmp-server view nodslmib internet.6.3.18 excluded
    snmp-server view nodslmib ciscoMgmt.252 excluded
    snmp-server view nodslmib ciscoDslCpeMIB excluded
    no snmp-server community public
    snmp-server community public view nodslmib ro
    end
    show snmp view

  • HT204411 how to find movies with a french language track

    How do I find non-foreign moves in the itunes store with french language tracks?

    Jai,
    Each movie in the Store is listed with the language of the audio, the language of the subtitles (if any), and the language of the closed captioning (if any).  See example below.
    However, the Store does not offer any ability to search on language.

  • How to find photos with no original or digitized date?

    I have probably 500-1000 photos that have neither Original or Digitized Date info. They are scattered all throughout my iPhoto library (30,000). They do have Modified and Imported Dates; but of course, not only do those dates differ (sometimes substantially) from when the photo was taken, iPhoto seems to use the Modified Date for sorting purposes if the Original Date isn't there. That means these "dateless" photos are way out of sequence when View, Sort Photos is set to By Date.
    What I need is some way to easily find these photos. I can't set the date search feature to a "null" value, nor can I create a smart album that filters for a null date value. If I slowly scroll through all my photos and watch the numbers carefully, I can usually see which photos have no Original Date because they're out of sequence, but with 30,000 photos, that's going to take forever.
    Does anyone know any tricks or third-party software for this?
    Thanks!

    If a file doesn't have an EXIF date then the file created/modified date is used by iPhoto. Files that have been scanned or optimized for web use fall into that category.
    The demo version ofMedia Expression can catalog an iPhoto library and then with a search for Date is after 1/1/84 you will find all files with an EXIF date. After applying a label to all found you can display all files without a label which would be your files. How you would then identify those so that they can be found in iPhoto I don't know. Any keywords you might add or other metadata would not be recognized by iPhoto unless they were reimported. If you are interested in trying that post back and I can give you a workflow. It would involve creating a new library and importing the Originals folder of the old library after you run Expression Media on it to embed the keywords (those from iPhoto and those you add to the dateless files), titles and comments to the files. It can be done but might be a bit involved.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Problem with f:invoke - cannot find method with argument

    Hi,
    I have <f:invoke var="${bpmObj}" methodName="tempMethod" retAttName="... /> in my JSP.
    Now, in ALBPM I have this method tempMethod and I gave it one out argument so it can return something to my JSP variable given in retAttName.
    Problem is that it cannot find this method because it is something like tempMethod(out resultString) and my JSP invoke has no input/output attributes at all.
    It is working only when I delete all in/out args from definition of my method, but I want it to return something! How to do it? please help.
    regards,
    Paul

    Hi.
    Search under sap portal->admi->support->ROOT/WEB-INF/deployment/pcd/ for com.sap.km.cm.repository.service.base.par.bak
    Best regards,
    Aliaksandr Zhukau

  • How to find Stock with Customer as on Month End : 01/30/2009

    Hi All,
    i have a requirement where in my report output it has to display the details as shown below
    Stock with Customer as on Month End : 01/30/2009
    Material                          Qty
    Pallet                        xxxxx
    Cover sheet        xxxxx
    For this requirement do let me know is there any standard bapi,program or how to proceed.

    Hi Kumar,
    Please find the link below
    [Bapis|Re: Need a BAPI or Function Module for Checking Material Stock]
    [Link1|Re: Function module to get the month name when start date and end date given]
    [Link2|Getting Last Month End date]
    Hope they are very Useful
    Thanks
    Kalyan

  • How to find packages with errors?

    I have this problem:
    When I compile all invalid packages, I get an error message saying there is one package with some errors. How can I find out which one is it? There is no red cross on any of the package displayed in the package tree.
    Thanks for help

    Hi, after some time I would like to go back to this issue...
    Last week I got this problem again, so I started to look for the problem.
    The thing is we are using multiple schemes and I compiled by accident one of the package bodies to wrong scheme. So there is an invalid package body without its specification... SQL Developer doesn't display such body, maybe because it always supposes there is some spec. This is another disadvantage of the tree structure you are using - package body should be on the same level as package spec!
    Currently if you do such mistake like I did, and use the Compile invalid packages feature, you get an error message about package containing errors and it's hard to find what is going on.

Maybe you are looking for

  • HT201303 was just having this problem until today. It is now all sorted and I can explain what to do very simply and easily.

    I was just having this problem until today. It is now all sorted and I can explain what to do very simply and easily. I remembered the answers to my questions, I just forgot "EXACTLY" how I entered the text - so I had to have them reset. The easiest

  • Package com.businessobjects.samples does not exist

    <p>I am trying to run a jsp with parameters passed to a rpt file but Iam getting an error: package com.businessobjects.samples does not exist, import com.businessobjects.samples.*; //[ /Sample Reports/E2ECompliance-SelectionPage-viewer.jsp; Line: 6]<

  • Problem: Field not a member of external service

    Hello, using the NWCE 7.1 SP 5 and the corresponding NWDS I have successfully imported an external RFC "/EDC/GET_IT_MAT_WF" into my composite application. For the imported RFC I have created an application service and mapped it to the RFC. Another ap

  • Installing printers from a VBScript HTA

    Hi,  I have just started with VBScript, and I'm trying to make a simple portal for printer installation. The problem is that we have a setup with different printservers, with printers with some standard names. So the HTA lets you choose where you sit

  • Transfer of Surcharge from CCM to EBP

    Hi, The following scenario exists. We have a Vendor catalogue. The terms and conditions of this vendor are that if i buy material below a certain price say 100 Euros, there is an additional surcharge. The requirement is: When a item is selected from