Subclass contains and extend the expand method

Hi All,
I'm wondering if anybody out there has subclassed the contains query to overriding the expand() method to control the query expressions? I'm trying to include boolean search expressions along with the (+,-,~ and *) expressions. Any help would be great. Code samples, examples above the normal Oracle doc.
Thanks for your help.

I still don't understand your problem and apparently nobody else does either since there are no responses. Why don't you write a simple program (like I did for you on your last post) that demonstrates the problem.
"A picture is worth a thousand words".

Similar Messages

  • Exception Handling Standards -The exception Exception should never been thrown. Always Subclass Exception and throw the subclassed Classes.

    In the current project my exception handling implementation is as follows :
    Exception Handling Layer wise :
    DL layer :
    catch (Exception ex)
    bool rethrow = ExceptionPolicy.HandleException(ex, "Ui Policy");
    if (rethrow)
    throw;
    BL Layer
    catch (Exception ex)
    bool rethrow = ExceptionPolicy.HandleException(ex, "Ui Policy");
    if (rethrow)
    throw;
    UI Layer
    catch (Exception ex)
    bool rethrow = ExceptionPolicy.HandleException(ex, "Ui Policy");
    if (rethrow)
    Response.Redirect("ErrorPage.aspx", false);
    We have a tool to check the standards. And tool output is as follows :
    The exception Exception should never been thrown. Always Subclass Exception and throw the subclassed Classes.
    I need suggestions on how to implement the same according to standards.

    Your tool is wrong if it says to never throw Exception.  This was a common recommendation back in the .NET v1 days but has long since been thrown out.  It is perfectly fine to use Exception when you have a general exception that provides no information
    that an application can use to make an informed opinion.
    The general rules of exception throwing is to throw the most specific exception that makes sense. If there is no specific exception that applies and it would be useful for the caller to handle the exception differently than other exceptions then creating
    a custom exception type is warranted.  Otherwise throwing Exception is reasonable. As an example you might have an application that pulls back product data given an ID. There is no built in exception that says the ID is invalid. However an invalid ID
    is something that an application may want to handle differently than, say, an exception about the product being discontinued.  Therefore it might make sense to create an ItemNotFoundException exception that the application can react to.
    Conversely there is no benefit in having different exception types for disk full and disk quota met. The application will respond the same in either case.
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • I can't turn on my MacBook Air despite trying to hold down the power button and using the SMC method. BTW my battery charger lights up to a green when plugged into the laptop.

    I can't turn on my MacBook Air despite trying to hold down the power button and using the SMC method. BTW my battery charger lights up to a green when plugged into the laptop.

    Hello cass528,
    I would be concerned too if my MacBook Air would not power on.  I recommend following the steps in this article when experiencing an issue like this:
    Troubleshooting: My computer won't turn on
    http://support.apple.com/kb/TS1367
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Will the express stream music to my receiver and extend the signal radius?

    Will the AirPort Express steam music to my receiver and extend the signal radius?

    Do you have a wireless router that is providing your wirelss network at this time?
    If yes, what is the make and model number of this device?

  • Mouse Coordinates and using the getPoint method

    Hello,
    I have a mouseClicked event that uses the getPoint method to get the coordinates of the mouse. Because the mouse is a shape (the cursor), it contains more than 1 pair of coordinates, so getPoint is supposed to return the coordinates of what is called the "hit point" of the mouse. Now because I use the standard mouse cursor (an arrow), the "hit point" is supposed to be its point edge, but I get the coordinates of the other edge!
    Now if I have a big JPanel in the window (without controls) that the user can press and the program needs to respond to the clicks, there are situations that the user presses somewhere and expects to get a specific response, but instead gets another one. That's because he/she is accustomed from other applications to use the point edge, but if the 2 edges of the cursor are in different regions in the panel (and thus generate different responses), they get the response of the other edge's region.
    Is there a way to solve this?
    Thanks.

    I still don't understand your problem and apparently nobody else does either since there are no responses. Why don't you write a simple program (like I did for you on your last post) that demonstrates the problem.
    "A picture is worth a thousand words".

  • How do i use my time capsule and extend the network with airport express

    I have a new iMac and Time Capsule, how do i extend the network with airport express. My time capsule does have a guest net work, and logins and passwords? I am no computer person. So for me it would have to be spelled out.

    Use the search as this has been done to death ..
    Bob Timmons is the expert on this.. look at his answers here.
    https://discussions.apple.com/thread/4274187?start=0&tstart=0
    https://discussions.apple.com/message/21856077#21856077
    This has been automated in the v6 utility. I am used to doing it manually in v5 utility which is also fairly easy.
    Apple doco is also good to read.
    http://support.apple.com/kb/HT4145
    http://support.apple.com/kb/HT4259
    Note.
    You cannot extend the guest network unless everything is up to date 7.6.3 firmware. And that is only with the TC as the main router in the network.
    All apple routers can be configured as the main wireless or as the extend wireless.. so don't worry if a post uses express or extreme or TC.. they are for wireless, the same thing.

  • How and when the realDelete method gets called for a custom adapter?

    Hi,
    I am a newbie in sun identity manager and is in the process of writing a custom adapter for documentum resource.
    While I am successful in creating the resource,then provisioning the resource to an user(i.e creating an account of the user on documentum ) updating the user through idm I am not being able to deprovision the resource.
    Actually in the trace I am not seeing the realDelete method getting called anywhere,but I am sure if it gets called it would do its designated job bcos as a standalone code it's working.
    Does this mean I am not properly doing deprovisioning in sun-idm?
    What method I am employing is in the assignment list of the user,i am putting the resource from assigned to unassigned side(i.e right to left side) just as in case of provisioning I have put it from left to right.
    Is it the standard way of deprovisioning or am I missing something here?
    Any sort of help would be highly appreciated.
    Thanks
    anjan

    You need to read that manual with more caution. It has all info you need.
    1. Table modification info stays in shared pool and flushed into dictionary by Oracle automatically. You can explicity do it by calling dbms_stats.flush_database_monitoring_info.
    2. dba_tab_modifications view = How many DML are applied to target table?
    dba_tab_statistics.stale_stats = Is statistics stale?
    3. When you call dbms_stats.gather... familiy, Oracle flushed the stale info to disk. You gnerally don't need to care about that.
    4. Statistics is considered to be stale, when the change is over 10% of current rows.
    (As of 11g, this value can be customized per objects. Cool feature)
    create table t_stat(id int);
    insert into t_stat select rownum from all_objects where rownum <= 100;
    commit;
    exec dbms_stats.gather_table_stats(user, 'T_STAT');
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    No row selected
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    NO
    insert into t_stat select rownum from all_objects where rownum <= 20;
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    No rows selected <-- Oops
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    NO  <-- Oops
    exec dbms_stats.flush_database_monitoring_info;
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    TABLE_OWNER     TABLE_NAME     PARTITION_NAME     SUBPARTITION_NAME     INSERTS     UPDATES     DELETES     TIMESTAMP     TRUNCATED     DROP_SEGMENTS
    UKJA     T_STAT               20     0     0     2008-01-18 PM 11:30:19     NO     0
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    YES

  • Edit entity object and use the Create() method for generating ID's

    Hello,
    I have and InserPage.jsp and defined the datasoucre correctly.
    <jbo:InputText datasource="ds" dataitem="Clientid" /> gives me
    the unique ClientID from the FIRST client-record in my table ,
    although this page is for inserting a NEW Client, with a new
    ClientID.
    So, on the Clients Entity i made a create() method and put the
    following code in it:
    public Number getClientid() {
    return (Number)getAttributeInternal(CLIENTID);
    public void create(AttributeList attributeList) {
    SequenceImpl seq = new SequenceImpl
    ("Clientid",getDBTransaction());
    Integer i=(Integer)seq.getData();
    setClientid(new Number(i.intValue()));
    super.create(attributeList);
    the getData() Returns a sequence value, but what sequence value?
    Do i have to create a sequence on the ClientID column in my
    Oracle Table in the DB too?
    The problem is, the first ClientID # is 819 and the current last
    one seems to be 2899, so how do i achieve that when opening the
    insert.jsp the new ClientID shows up (ie. 2900)?
    How can i achieve this?
    thx

    OK, managed to track down the HowTo on triggers? I created the
    trigger.
    create sequence client_seq
    start with 8900
    increment by 1
    nomaxvalue
    nocycle;
    I changed the create() method for the entity object to:
    public void create(AttributeList attributeList) {
    SequenceImpl seq = new SequenceImpl
    ("Clientid",getDBTransaction());
    SequenceImpl s = new SequenceImpl("client_seq",
    getDBTransaction());
    Integer next = (Integer)s.getData();
    setClientid(new Number(next.intValue()));
    and running the tester for the module works fine. ;-)
    But...
    The Insert.jsp page has to insert/show this sequenced value!
    After i defined the datasource and let us say:
    <jbo:InputText datasource="ds" dataitem="Clientid" />
    ...the number 819 shows up, which is the FIRST record, so i do
    not get the new ClientID with the correct number.
    Any help is always nice. ;-)

  • Can I use an airport express to add airplay to (and extend the range of) a network with a netgear N750 Router?

    I have a Netgear N750 router. Can I buy an airport express and configure it to extend the range of my current network and allow me to use AirPlay from anywhere on that SSID?

    You can configure the AirPort Express to "join" the wireless network that is being provided by the Netgear router for use with AirTunes.
    But, the Express will not be able to "extend" the range of your wireless network.
    The "extend a wireless network" feature only works if you have an Apple router as your main device. This feature is not compatible with devices from other manufacturers.

  • Sky broadband, airport extreme and extending the wireless network.

    Hi - I am a recent apple convert and as such new to all things mac. My current setup is sky broadband, net gear router, w7 notebook, ipad2 and mac mini. My mac mini is in the studio at the bottom of the Garden and currently has no signal. I am trying to extend the signal using an airport extreme but keep falling at the first hurdle. Connecting the sky router by Ethernet to Airport and trying to setup via utility has got me stumped, the unit just flashes orange. In essence what I am trying to achieve is a network off the sky router through airport that enables all my units to work wirelessly and attach a wireless printer and USB hard drive. Is this going to be achievable or have I wasted my money on the airport extreme unit?
    Any help or guidance greatly received.
    Thanks
    AdeP

    AdeP wrote:
    Hi - thanks for your reply. I have my sky (netgear) broadband router connected to the telephone/broadband point. I have then attached an ethernet cable from the router to the wan port on the back of the airport extreme. When I log into the airport utility it recognises the AEB but it just flashes orange which is where I am stuck.
    You mean the Netgear is a broadband modem and router?  If that is the case try disabling the Sky broadband router function as it is not compatible with the AEB. If your router is a wireless router, you will have to disable this function then see if you can connect. If your modem is separate from the router, you have to connect directly to the ethernet port of the modem and skip the Netgear router all together.

  • In Firefox4, can I lose the folder icons from the Bookmarks Bar while keeping icons everywhere else (because the folder icons are superfluous and extend the horizontal list of bookmark folders beyond the width of the window)?

    I've just installed Firefox4 for Mac (OS 10.6.7) and can no longer see all my bookmark folders at once across the top -- because the folder icons make the Bookmarks Bar too wide. Yet, I like the icons on the other bars, so I don't want to turn them off globally. Is there a way to just lose the folder icons -- which don't appear to serve a purpose anyway?

    Small correction to original post. Machine is an iMac 2.4ghz Intel Core 2 Duo. (I was at home when I made the first post.) But the bookmarks menu behavior still exists today and FF 5 is essentially unusable.
    System details next to the post are not for machine with the bug in question.
    Found a copy of FF4 to use until a solution is found. Turned off automatic updates to preserve this version.

  • JLayeredPane - keeping all contained components filling the layeredPane

    I'm having some troubles keeping contained components inside a JLayeredPane so they're all filling the pane.
    The desired effect I want is to have a region of the window that contains two panels -- one for standard view/editing, and an overlayed transparent panel above it, which, at times, will show icons overlayed over the base panel -- basically an OSD layer over a panel that will be showing video.
    I've gone the approach of using a JLayeredPane and adding the base panel, but I'm having troubles getting it to make sure it fills the entirety of the JLayeredPane.
    I thought of several approaches:
    1.) Set up the JLayeredPane with a BorderLayout, and set the components all to CENTER, but then I realized that with BorderLayout, each position can only have one component assigned to it.
    So, this approach is a no-go. :(
    2.) Set up a ComponentListener on the JLayeredPane, listening for componentResized, and resizing the contained panels to event.getComponent().getSize(). This approach did result in a resize happening on the component I was testing, but alas, it resizes it to the original, pre-resized size! Reading the docs, and what others have said on the msg board, this seems to be going against what I'm reading and hearing about.
    Does anyone have any ideas for me? I'm all ears.
    Is there a radically different approach I could take?
    What I'm going after is kinda like the glassPane feature on a Frame, but I'm not working with a frame, just one panel inside the frame of my main application window.. And I'd like it so I could encapsulate the OSD panel in it's own derived class -- that's what I'm doing right now -- so I can have custom methods for manipulating the OSD.

    bsampieri wrote:
    For this type of situation, I usually subclass JLayeredPane and override the doLayout() method. In there, assuming you want to have everything on it's layer fill the layer it's on, just set it's bounds to (0, 0, w, h) with the width/height of the layered pane itself. Aha! That worked like a charm! Just what I was after. I need to get more comfortable altering the inner-workings of swing components through subclassing.
    If you need something more advanced, you'd have to have a way to determine which components should go where/what size.Nope -- I didn't need to subclass in this case -- I want each and every item in the JLayeredPane to fill the entirety of the container. I sorta figured that there should be a relatively easy solution to it, but I hadn't been able to figure out how, and googling it up didn't seem to result in any useful information on the subject.
    Thank you very much bsamieri!
    Here's exactly what I ended up doing:
    package com.tripleplayint.newvideopreviewermockup;
    import java.awt.Component;
    import javax.swing.JLayeredPane;
    * A panel widget that allows components to be layered on top of one another,
    * where each component fills the entirety of this container.
    * This is only useful when all but the lowest layer is set transparent, as
    * the highest opaque layer will obscure any layers below it.
    * @NOTE If one wants to move the layers to choose which one is visible, your
    * better option is to use a JPanel with the CardLayout.
    * @author kkyzivat
    public class FilledLayeredPane extends JLayeredPane {
         * Layout each of the components in this JLayeredPane so that they all fill
         * the entire extents of the layered pane -- from (0,0) to (getWidth(), getHeight())
        @Override
        public void doLayout() {
            // Synchronizing on getTreeLock, because I see other layouts doing that.
            // see BorderLayout::layoutContainer(Container)
            synchronized(getTreeLock()) {
                int w = getWidth();
                int h = getHeight();
                for(Component c : getComponents()) {
                    c.setBounds(0, 0, w, h);
    }

  • How to refresh the data in a container and to update the new data

    Hi,
    I have created a Module Pool Program in which i have two containers to display the long text.
    Initially this container is filled and based on some condition i want to update the text in the same conatiner.
    I am using the below two classes to do all this.
    cl_gui_textedit,
    cl_gui_custom_container,
    Could someone help me how to remove the long text in the container and update the new long text.
    I am getting the new long text but not able display it in the same container. Please someone help me how to refresh and update the container.
    Thanks in advance.

    Hi
    Try this.
      IF cl_gui_textedit  IS INITIAL.
      create control container
        CREATE OBJECT cl_gui_custom_container
           EXPORTING
                container_name = 'Container Name''
           EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
    create text_edit control
        CREATE OBJECT cl_gui_textedit
           EXPORTING
                parent = cl_gui_custom_container
                wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
                wordwrap_to_linebreak_mode = cl_gui_textedit=>false
           EXCEPTIONS
                error_cntl_create      = 1
                error_cntl_init        = 2
                error_cntl_link        = 3
                error_dp_create        = 4
                gui_type_not_supported = 5.
      ENDIF.
    *--use method to set the text
      CALL METHOD cl_text_edit->set_text_as_stream
        EXPORTING
          text            =  t_lines ( Internal table with long text).
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.
    regards,
    Raghu.

  • My iPod touch got wet and I used the rice method to save it.

    After 3 days, I plugged it back in and it worked. But the problem is that the home and lock buttons don't work anymore. What can I do? It charges just fine but iTunes cannot detect it seems... So I can't backup my songs and all, which ***** considering the fact that I have over 1k of memories in there.
    Does anybody have a suggestion? I don't mind paying for repairs at Apple, but I definitely want to get my songs.
    The touch-screen works just fine although it has white stripes on it now.

    - It doesn't, no. It feels like something is preventing full movement.
    - No I didn't, but what do you mean by cycling the switches?
    - I think it is, but there were sort of pale stripes in the back of the screen. Would that be water by any chance?
    - Dammit what a shame, is it not possible to extract the iPod's HDD or memory stick (whatever it contains) and recover the songs?

  • I have a airport time capsule, an older airport extreme, and an airport express.  I want to hard wire my Mac Mini to the network.  What is the best arrangement of the devices?  which ones should be hard wired to optimize extending the network?

    I have a airport time capsule, an older airport extreme, and an older airport express.  I want to hard wire my Mac Mini to the network.  What is the best arrangement of the devices?  which ones should be hard wired to optimize extending the network?

    I am using TM Unifi with an ASUS RT-N18U Wi-Fi router.  I would like to know could I use Apple AirPort Time Capsule to extend (repeater, booster) my Wi-Fi to a part of the house where the Wi-Fi signal is poor
    Yes,, if you plan to connect the AirPort Time Capsule to the ASUS router using an Ethernet cable connection that will remain fixed and permanently installed at all times.
    No, if you were planning to have the AirPort Time Capsule connect wirelessly and extend the Asus WiFi signal, since it would not be compatible with another manufacturer's router for that purpose.
    Another way of saying the same thing here would be that if you want to extend the network wirelessly, it will take two Apple routers to do so

Maybe you are looking for

  • No space left on device

    Attempting to upgrade some packages from AUR  and it failed ! This is a long one . [wesley@ratdog ~]$ yaourt -Syu --aur :: Synchronizing package databases... testing is up to date core is up to date extra is up to date community-testing is up to date

  • How do I install the newset version of ITUNES?

    I downloaded the newset version of itunes and I tried to view it and a box came up that says it was corrupted or installed incorrectly.  I reinstall it  but the same message pops up when I try to view it

  • Admin tab missing in BI Publisher 10.1.3.4.1 in windows xp 32 bit

    Folks, I am unable to see the Admin tab in BI Publisher 10.1.3.4.1 in windows xp 32 bit. I am trying to login from OBIEE --> More products --> Bi Publisher. If I try to reinstall BI publisher desktop It says you have already installed. All my OBIEE s

  • Nasty page flash on swf pop up in IE 7 - fix?

    Go to http://www.enhancedwireless.net/Technology/patentPortfolio.shtml and rollover 71 Countries... I know that it works on IE 7, but when you rollover the "71 countries," the entire page has a nasty flash to it as the pop up is activated - in other

  • Trying to understand Java servers

    I have been trying to get an understanding of Java ServerSockets and have hit a dead-end here. This is just the first part of the server code and I can't see what the compiler does not like about this. The compiler dies and puts the arrow on the "a"