What is the real difference between the card and the ORDER of the member functions?

Hi all

According to the documentation http://docs.oracle.com/cd/B28359_01/appdev.111/b28371/adobjbas.htm#CHDFGJFB

Control methods make comparisons of direct one-to-one object. Unlike the methods of the card, they cannot determine the agenda of a number of objects. They simply tell you that the current object is equal or less than the object that it is being compared, based on the criterion used.

A method of control is a function of an object ( SELF ), with a declared parameter that is an object of the same type. The method should return a negative number, zero, or a positive number. This value means that the object (the implied no said SELF parameter) is less than, equal, or greater than the declared parameter object.

I still can't find all the differences between them. Because the documentation said that makle methods to ORDER one to an object comparisons. However, you can also do it with the map member function the (as illustrated below). Can someone clarify this please?

create rectangular type is object
(
number of width,
number of height,
Order member function camparison (r rectangular) return number
);

create or replace type rectangular body is
order member function camparison (r rectangular)
Return number
is
Start
If (self.width + self.height) > (r.width and r.height) then
Return 1;
elsif (self.width + self.height) < (r.width and r.height) then
Returns - 1;
on the other
return 0;
end if;
end;
end;

OR

create or replace the rectangular type is object
(
number of width,
number of height,
card camparison return number of member function
);

create or replace type rectangular body is
map member function camparison
Return number


is
Start
Return self.width + self.height;
end;
end;

For the two I use the following block of code right? So, what is the difference?

Set serveroutput on;
declare
rectangular rect1;
rectangular rect2;
Start

rect1: rectangular = (3, 5);
rect2: rectangular = (4, 8);

If rect1 > rect2 then
dbms_output.put_line ('rect1 Büyük');
on the other
dbms_output.put_line ('Büyük rect2');
end if;

end;

My 2nd question is: in the function member order what is the parameter reference? When we compared how it corresponds to?

camparison of Member (rectangular r) function order

When comparing the two objects is the function parameter is the object of the comparison sign right?

If rect1 > rect2 then

Thanks in advance

Order compare 2 objects.

Card returns a value that can be used to control any number of objects.

Tags: Database

Similar Questions

  • Difference between Pseudo-classes and pseudo-element

    Hello

    Does anyone know the real difference between Pseudo-classes and pseudo-element?

    The two are very different, but I can't yet tell them apart.

    And I read on some website that there is selection controls, selector of Pseudo-classes and pseudo-element. For good to mix people, understand me!


    The pseudo-element only I use are a: link, a: visited, a: hover. And I were Pseudo-classes appeal!


    Can someone can clarify for me please?


    Thank you!


    --

    Martin

    Pseudo-elements are so-called because they are not real HTML elements - for example there is no HTML didn't call first line tag, but using CSS you can apply a style to the first line of a paragraph, for example using: first-line. A pseudo-class is called a class because it does not select a property of an HTML tag (e.g. a: hover, targets of the HTML tag), but because the hover is not a class attribute, the designer has added to the markup, it is called 'Nick'). Using double colon for Pseudo-elements is the new syntax (standard CSS3) and is not always understood by all browsers yet, sometimes, you need to use a single colon.  The double colon comes to more easily differentiate Pseudo-elements (:) and Pseudo-classes (:).)

  • HOW smart card smart card slots look like? What are the differences between smart card slots and cards express?

    HOW smart card smart card slots look like? What are the differences between smart card slots and cards express?

    Hi Smitty,

    Yes, so ExpressCard is an interface that has a USB port to this topic where I can plug in external devices to be attached to my computer right? I did a search on google but could not find photo Card Slot smart. I need a picture to get an idea of how look like a smart card Slot.

    Next time try BING...

    http://tinyurl.com/95rgwxw
    http://tinyurl.com/9plc7zt

    http://tinyurl.com/8h96qsr

    Scroll to the left view (image 5)

    http://support.Dell.com/support/eDOCS/systems/latd610/en/ug_en/about.htm

  • What is the real difference between the following procedures?

    What is the real difference between the following procedures in the DBMS_STATS package:
    GATHER_SYSTEM_STATS
    GATHER_DICTIONARY_STATS

    GATHER_SYSTEM_STATS: System statistics to describe the characteristics of the system hardware, such as i/o and CPU performance and utilization of the query optimizer. When choosing an execution plan, the optimizer evaluates necessary IO and CPU resources for each request. Statistics system helps the query optimizer estimate the costs of IO and CPU, allowing the query optimizer to choose a best execution more accurately plan.
    GATHER_DICTIONARY_STATS: Collect statistics for all items in the dictionary.

  • What is the difference between After Effects and Premiere Pro?

    (note; Cross posted in other forums there)

    Okay, that's the substance of my question, now for clarification and the reasons behind it.

    Imagine for a moment that there is a person who has heard of all these amazing products and wants to work with them to possibly change careers. Now imagine that person is a noob and has only a little creativity, a pinch of imagination and absolutely no experience whatsoever in what anyone who resembles a professional graphic arts, media, career, etc. with the exception of a few dabbling autour with paintings in oil, watercolor, pastel, acrylic and sometimes charcoal.

    Unfortunately, or fortunately depending on your persepctive I work on computers, these basics are covered. So now you understand my absolute lack of knowledge.

    I was check and finally purchased Production Premium thinking I am able to express something in Flash. The problem I have is (other than an obsolete computer) what is the real difference between the two programs, I asked? It seems some overlap in their functions. Sort of a different route to accomplish the same thing. I read the text of presentation on the Web site and the two sound very similar to my ears without instruction (eyes? alert mixed simile).

    If someone could kindly explain the reasons for using either of the two products and what they can do differently to me I would be very happy. I bought CS5.5 Production Premium and currently have loaded on my laptop before installing Windows 64-bit on the desktop (both at 32 bits at the moment) so I currently have the trial on the laptop. I understand the difference between Illustrator and photoshop, but these two are confounding. I also understand the differences between After Effects/Premier Pro 32-bit and 64-bit seems to be the spiffy Mercury playback engine. (a quick thank you to Adobe for versions 32 bit CS4 for these programs for the luddites such as I have, including!).

    I'm waiting for your wisdom.

    Premiere Pro is a video editing solution.

    After Effects is a video compositing solution.

    http://en.Wikipedia.org/wiki/compositing

    http://en.Wikipedia.org/wiki/Video_editing

  • What are the differences between Windows 7 and Windows 8?

    What are the new features coming in windows 8? How is - this windows 8 is going to be better than winows 7? What are the main differences between winows 7 and winows 8? It'll be a mojor design?

    Hello

    Microsoft has not released any details about 8. All the information I've seen on the internet about 8
    were conjecture or an outing right hoax.

  • What is the exact difference between secure mode and diagnosis

    I am repairing a pc and have done everything I can do in terms of diagnosing the problem. The only thing she shrinks down is to start in safe mode but not in diagnosis or vga mode. It is the same even when you use another defective hard drive. It must be a hardware component on the motherboard. I deleted and all the other components. I disabled designed in bios and Device Manager. What is the difference between secure mode and diagnosis?

    Thanks in advance for any help

    It was the capacitors on the motherboard that needed to change. It works fine now.

  • What is the difference between an application and a widget?

    I'm a newbie trying my Tablet cleaning. to start:

    What is the difference between an application and a widget?

    Widget-based applications

    not always asked of widgets

    Widget is just an application interface to develop android home and have some readily available settings/info/etc.; If you do not need to type an application to access some of the data; but you can type the widget to run the application if necessary and if possible.

    It's like a windows program, you must run it to use it... If they is not a widget.

  • What is the difference between photo gallery and Webcam live live moviemaker

    What is the difference between photo gallery and Webcam live live moviemaker

    Post Windows Live questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • What is the difference between Foglight JavaEE and Foglight JMX monitoring?

    Hello

    I have a plan to monitor the 6.1.0.17 WebSphere Application Server (32 bit) and 7.0.0.5 (64-bit)

    But I understand not all Foglight for JavaEE and Foglight for JMX.

    Foglight for JavaEE or Foglight for JMX is able to monitor WebSphere?

    What is the difference between Foglight JavaEE and Foglight JMX monitoring?

    Thanks in advance

    Jeans

    Just to add to the excellent answers already posted.

    We have 2 agents which allows you to monitor Java:

    1. a JavaEE agent that runs inside the JAVA virtual machine and the information of both JMX and instrumentation.

    This Agent will give you JMX information like information of JVM (use of the bunch, son etc.), of the Application and server availability information and other information of JMX/PMI (connections pools, pools of ejb, servlets, jsp, JCA and more).

    Java EE & # 039agent also gives you information of the instrumentation - RFA count and response time, exceptional output and timeout information, distribution of queries (App/DB, component technology, server, application failure), object tracking, transaction flow and stransactional between servers and data sources) and ask traces (the ability to see the trees of the RFA at the method level to know where things are slow/stuck).

    2 JMX agent is running outside the JVM but can run on the same computer or on a remote computer, this agent requires access active, JMX. This agent gives you information JVM, availability server/applications, as well as some data as the application server published using JMX (pools of connections, JCA, EJB, servlets, etc.). The JMX agent also gives you the ability to see a list of the mbeans, get the data they expose (javaEE agent gets only a predefined list (same list that is used as a template for the application servers in the JMX agent)).

    Hope this helps

    Golan

  • What is the difference between NET USE and MOUNT? Why do they work differently?

    What is the difference between NET USE and MOUNT?  Why do they work differently?

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that you have a query.

    I suggest you re-post your query on The TechNet Forums because we have experts working on this type of questions and for you help the better.

    Check out the link:

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    You may consult:

    https://TechNet.Microsoft.com/en-us/library/bb490717.aspx?f=255&MSPPError=-2147217396

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • What is the difference between. MHT and. HTM?

    Original title: is anyone know about MHT files?

    What is the difference between. MHT and. HTM?

    Hi Sheryl,

    Welcome to the Windows 7 community!

    I understand that you would like to know the difference between file MHT and HTM file. I'm happy to help you.

    MHTML, short for MIME HTML, is a format to archive web page used to combine resources that are usually represented by external links (such as images, Flash animations, audio files, Java applets) as well as the HTML code in a single file. The content of an MHTML file is encoded as if it were an email message to HTML, using the MIME type multipart/related. The first part of the file is normally encoded HTML; subsequent parts are additional resources identified by their URL original and encoded in base64. This format is sometimes referred to as MHT, after the suffix .mht given to these files by default when created by Microsoft Word, Internet Explorer or Opera. MHTML is a proposed standard, distributed in an edition revised in 1999 as RFC 2557.

    HTML Web page that is used by Web browsers; contains the code markup that is stored in a plain text format; used to display and format the text and images in a Web browser.

    HTM files serve the same exact than purpose. HTML files. The extension ".htm" appeared with the use of the Web Microsoft, such as FrontPage, SharePoint Designer and Expression Web development software.

    HTM files are much less common than HTML files.

    It will be useful. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

     

     

    Kind regards!

  • BlackBerry 10 What's the difference between BB10 London and Liverpool?

    What is the difference between BlackBerry London and Liverpool BlackBerry? I have a hard time with this.

    Thank you!

    The only difference is the radio within each bands...

  • What is the difference between a-1000 and 1000 in Nexus7000?

    Hi What is difference between a-1000 and 1000 in Nexus7000 when you use the command show interface status? Please see the below highlighted. Thank you

    Eth6/43 connected dcba full 500 a-1000 10/100/1000

    Eth6/45 full connected abcd 501 1000 10/100/1000

    If I remember correctly, '-a' means auto-négocié - is it a "speed 1000" in the config of the Eth6/45? ".

  • What is the difference between native SDK and Cascades/qt?

    Hi all

    Can someone tell me what is the difference between native SDK and Cascades/QT?

    When I need to go to NativeSDK and when I go to waterfalls?

    These two works in BB 10 or only Tablet?

    Please delete me, I can't live without knowing this.

    Thanks in advance.

    Hi Smiley,

    Yes, you need to install the two NDKs. They coexist and separate IDEs and install files.

    See you soon

    Swann

  • What is the difference between Unicast RPF and Reverse Path Forwarding?

    I am confused between Unicast RPF and Reverse Path Forwarding function.

    What is the difference between Unicast RPF and Reverse Path Forwarding?

    Because they have all two please check the address of the source of each package before sending it to the destination too?

    Reverse Path Forwarding is used only when the network want to build a tree shared multicast communication and then we must use Unicast RPF after creation of the shared tree?

    The mechanism of the RPF is mainly used to ensure no loop of routing traffic.

    As you probably already read, it does by ensuring that his route to the source address of a packet received is accessible via the same interface that the packet is entered in the. Think of the notion of "root port" in STP. all root ports are similar to the root, sunflower follow the Sun. Therefore, it is naturally a loop prevention mechanism.

    With multicast traffic, it is quite likely to create multiple loops of routing the nature of 'destination' traffic. For this reason, using a mechanism as the RPF to ensure you are on the "road to the root" (to say) to the source originating multicast traffic. Otherwise if you're not then you either receive this traffic route in a loop, or a suboptimal path.

    uRPF works essentially the same way, except that it is done for unicast traffic instead. Now with unicast traffic your flow is from a source and directs to a single destination. Given that, as the fact that you are using a dynamic routing algorithm (which allows to select the path to a destination), you can have loops of your network for unicast traffic flow routing; of course there may be exceptions to pitfalls of configuration route redistribution.

    However RPF when it is applied to traffic unicast can add another advantage, and it's verification IP source. That's why we can use it as a security mechanism to ensure that data are from where it is supposed to come.

    On the limit of the L2, you then have mechanisms such as guard source IP to ensure that the correct host is not usurpation of their IP address.

    By analogy RPF can be used for checking at source for multicast traffic, and it is intrinsically that however, the most important role is so that it can be used to guarantee without loop routing of multicast traffic.

    I hope that helped clear things upwards and not confused you any more with all this.

Maybe you are looking for