Question about Interface

Hi everyone,
I have a question about interface :
an interface can only have abstract methods, right ?
so how come ResultSet (which is an interface) has methods like next() which can't be abstract otherwise it wouldn't do anything ?
thanks for answering !

an interface can only have abstract methods, right ?Yes. All methods in an interface are inherently public and abstract.
so how come ResultSet (which is an interface) has
methods like next() which can't be abstract otherwise
it wouldn't do anything ?It defines the next() method for classes that implement the interface. When you get a ResultSet reference returned from a method call, you're not getting a reference to an interface; you're getting a reference to an object that implements that interface (or null, as the case may be).

Similar Messages

  • The question about Interface Mapping in BPM

    Hello,
    I am a few confused about  an Interface Mapping in BPM at the Design step.
    I have a task to transmit and trasform two messages of two sender file adapter to  two IDOCs messages and then to send them to SAP system.
    I use BPM.
    But I don't understand what types of message interfaces should I use for source and target interfaces in Interface Mapping? As to the target interface I understand it must be abstract but which of interfaces exactly?
    Actually there are some questions here:
    1) If the source interface should be abstract or real in Interface Mapping?
    2) If the target interface should be  the abstract interface of Receive Step object or the abstract interface of Send Step object?
    3) And what the message types should I use for the source and target message interfaces in Interface Mapping? If I understand correctly that these message types

    hi igor,
    you have to import the IDOC Types under the imported objects in the integration repository objects,
    what are all the data that coming out from the file adapter, you design the datatype.
    the target IDOC should be real and you do the mapping for the all necessary fields.
    refer: --
    File to IDOC:
    Re: how to Sending XML data to idoc
    IDOC Mapping:
    http://help.sap.com/saphelp_crm40/helpdata/en/77/a1d48b1ce06d40932e0a26f3c117ce/frameset.htm

  • Question about interface for recording electric guitar and vocals

    Ok, I've been messing around with Garageband all day, totally stoked and I'm ready to get into it. Right now I'm using a First Act quarter inch plug to USB cord to hook up my guitar and start recording and after some messing around I got it to work.
    Here's my question... to really make quality recordings, what's the best way to hook up the guitar? Is the way I'm doing it now fine with the USB cord or is some sort of interface better? Can someone recommend one that's on the cheap side? Also, I haven't tried yet, but what's the best way to record vocals? Should I invest in a USB mic? Can anyone recommend one? I have a Shure SM58 already, what's the best way to hook that up?
    Really excited about this, can't wait to start cranking out some songs!
    PS: When I use the USB cord, I don't see any way to control the recording level, and sometimes I get a Feedback control warning. How can I lower the level so I don't get that? Thanks!
    Message was edited by: xSlamx

    I have a total now of 4 interfaces - I recently purchased a FOCUSRITE SAPPHIRE 6 USB - it's amazing quality and I only paid $149 for it at my local Guitar Center. I use it with my Guitar and everything sounds fantastic - they say the preamps are really high-quality for Mics too... I recommend it. I have a firewire interface too but the Sapphire is my man baby now - don't let the USB 1.1 fool you - it works flawlessly with my Mac and my Windows 7 machine too. It also comes with a selection of software including Ableton Live Lite and 4 really nice Focusrite plug-ins too.

  • Questions about interfaces,monitors,keyboards,cables help please

    I just bought a macbook pro 1.87ghz. w/ 1 gb I would like to record music primararly acoustic stuff (john mayer type stuff) I was wondering what types of
    interfaces or keyboards, mics, monitors, cables ,should I buy to get the most professional sound with. I have a budget of about 1200.00 I want to spend any recommendations? Please Help I appreciate your time:)

    What I would probably go with in this situation, using the limited information you have given:
    Interface - Presonus Firebox $300
    Keyboard - M-Audio Oxygen 8 v2 $150
    Mics - Studio Projects B1 and C1 $300
    Monitors - Event ALP5 $300
    (really would depend on whatever small monitor sounds best to you)
    Cables (firewire, usb, mic, stands, etc.) - $100
    Now you will probably get as many different answers as you will responders but the best advice I can give is to read everything you can on recording and mixing. During this time, save up another $800 or so and treat your recording and mixing area.

  • E-Commerce Gateway Question about Interface File Definition.

    Hello Gurus,
    Does anyone know if Oracle e-Commerce Gateway (11.5.10.2) deliver the Interface File Definition for Inbound Purchase Orders (850/ORDERS) - _'IN: Purchase Orders (850/ORDERS)'_ out of the box?
    I see Interface File Definition for OPM Purchase Order along with a bunch of other trx sets (like ASNI, INI, INO) but not Purchase Orders (850/ORDERS) in the instance that I am working... so just wanted to verify.
    Thanks
    Dave

    Following are some of the pros of using XML Gateway:
    1) XML is being accepted and more and more technologies are moving towards XML, so that "seems" to a future ready solution
    2) XML processing is real-time.
    3) Most of the maps for universally accepted standards are seeded in Oracle.
    4) You can use Oracle Supplier Network(Free service provided by Oracle) with your XML gateway to transmit/receive xml documents to a supplier who may or may not be accepting the format you are generating(e.g. if your PO is in OAG standard and your supplier is accepting cXML format, OSN takes care of translating your document)
    You might want to consider these points while deciding the technology.
    Nitin S. Darji

  • Upgrade MBP HD...question about interface

    I need some advice from those of you who have upgraded drives in their MBPs.
    I have a 17" MBP with the stock Hitachi HTS541616J9SA00 160Gig drive. The interface speed is 1.5 Gigabit/sec.
    I know Hitachi makes the Travelstar 7K320 in both 1.5Gb/s 3Gb/s, but I can't find a 1.5Gb anywhere. Is the 3Gb/s drive backward compatible with the 1.5Gb interface?
    Thanks for your advice...
    Lew

    A 3Gb/s drive is backwards compatible. You should be fine with any 2.5" SATA 3Gb/s drive.

  • Hava a question about interface

    hello,
    abstract interface E{}
    why interface could delcare as "abstract"?
    Thanks a lot.

    From the JLS:
    Every interface is implicitly abstract. This modifier [abstract, levi_h] is obsolete and should not be used in new programs.
    Kind regards,
      Levi

  • A question about Interfaces - Theory and Utility

    Ok, so I am trying to get a handle on interfaces with AS3 and am kind of at a sticking point.
    Someone tried to explain them to me using “legos” and conceptually I get the idea of consistent interaction. Where I seem to get stuck is, I don’t really see how the implementation of “interfaces” accomplishes this.
    Please correct me where I am wrong, But I don’t really get the usefulness of something that doesn’t seem to do anything but create labels for methods. What advantage does it really provide if you still have to define the functionality of an interfaces methods in each of your classes that implements it? What am I missing here because it seems like code for the sake of code? Intuitively it seems like Interfaces should actually define universal methods (with a way to override them like legos) instead of just naming them. Are they just a way to list planned consistencies in large scale projects? Just a way to of custom error checking to ensure certain classes contain certain methods? Are they just a way to list a group of consistent public methods between classes?
    Now, admittedly, I come from a more procedural background and work almost exclusively in flash, but it seems to make much more sense to develop a class of a group of methods (with the implementations already in place) that can be subclassed, or from public methods of the classes themselves.
    What am I missing here?
    Any insight or practical applications is appreciated.
    M.

    interfaces are useful for large projects, especially projects that are shared among several programmers and especially if you have to edit a class a few years after you created it.  an interface provides quick easy to read summary of everything that's needed to define the properties and methods of a class that implements the interface.
    look at as a help file.

  • Question about IDashedAttributeValues interface

    Hi to everyone,<br />I have a question about IDashedAttributeValues interface.<br />If I would like to apply custom dashes kDashedAttributeValuesBoss to a page item. I would expect that my code will look like this:<br /><br />InterfacePtr<IDashedAttributeValues> pAttribute(::CreateObject(kDashedAttributeValuesBoss));<br /><br />pAttribute->SetPhase( nPhase );<br />pAttribute->SetCornerAdjustment((IDashedAttributeValues::CornerAdjustment)nCornerAdjust ment);<br />pAttribute->SetValue( 0, nDash0 );<br /><br />But InDesign crashes at SetValue code. I could understand InDesign. It is out of range. But, how to specify the length of value array or to add value into array?<br /><br />Thanks in advance,<br />Alexander Staroverov<br />Developer Engineer<br />Comosoft GmbH

    Thank you to all, I have found the answer in SDK samples:<br /><br />void SnpGraphicHelper::AddDashedValues(const K2Vector<PMReal>& dashAndGapValues)<br />{<br />IDataBase* db = fItemList.GetDataBase();<br />InterfacePtr<IDocument> theDocument(db, db->GetRootUID(), UseDefaultIID());<br />     InterfacePtr<IUIDData> uidData(::CreateObject2<IUIDData>(kDashedAttributeValuesBoss));<br />     ASSERT(uidData != nil);<br />     uidData->Set(::GetUIDRef(theDocument));<br />     InterfacePtr<IDashedAttributeValues> dashedAttributeValues(uidData, UseDefaultIID());<br />     if (dashedAttributeValues != nil && dashAndGapValues.size() > 0) {<br />          for (int32 i = 0; i < dashAndGapValues.size(); i++) {<br />               dashedAttributeValues->SetValue(i, dashAndGapValues[i]);<br />          }<br />          this->AddAnAttribute(dashedAttributeValues);<br />     }<br />}

  • CBWFQ: Question about the output of "show policy-map interface" command

    Hi everyone,
    I have a question about the output of "show policy-map interface" command.
    The following is the output of this command and lower side of the output shows
    (total queued/total drops/no-buffer drops) 0/342/0
    If the packets drop occur due to the situation of no enough buffer,
    "no-buffer drops" counted up. But "no-buffer drops" has not been counted up.
    The "no-buffer drops" is 0 (zero) but "total drops" are counted as 342.
    I guess there are other factors except "no-buffer drops" to add "total drops".
    But I can not find any information about "other factors".
    So I would like to know the "other factors" added to "total drops".
    reserch-3725#sh policy-map interface fastethernet0/1
    FastEthernet0/1
    Service-policy output: shaping
    Class-map: kdpc (match-all)
    146956873 packets, 115209221595 bytes
    5 minute offered rate 156000 bps, drop rate 0 bps
    Match: access-group name YOKOHAMA_to_CHINO
    Traffic Shaping
    Target/Average Byte Sustain Excess Interval Increment
    Rate Limit bits/int bits/int (ms) (bytes)
    9360000/9360000 58500 234000 234000 25 29250
    Adapt Queue Packets Bytes Packets Bytes Shaping
    Active Depth Delayed Delayed Active
    - 0 146956724 3539850811 2960247 3851843541 no
    Class-map: class-default (match-any)
    552458414 packets, 249687580329 bytes
    5 minute offered rate 242000 bps, drop rate 0 bps
    Match: any
    Traffic Shaping
    Target/Average Byte Sustain Excess Interval Increment
    Rate Limit bits/int bits/int (ms) (bytes)
    3072000/3072000 19200 76800 76800 25 9600
    Adapt Queue Packets Bytes Packets Bytes Shaping
    Active Depth Delayed Delayed Active
    - 0 552453209 573909865 30358216 2926188156 no
    Service-policy : policy1
    Class-map: dlsw (match-all)
    979578 packets, 264843255 bytes
    5 minute offered rate 0 bps, drop rate 0 bps
    Match: access-group name acl-dlsw
    Queueing
    Output Queue: Conversation 137
    Bandwidth 128 (kbps) Max Threshold 64 (packets)
    (pkts matched/bytes matched) 20922/17371500
    (depth/total drops/no-buffer drops) 0/0/0
    Class-map: telnet (match-all)
    29938 packets, 1806058 bytes
    5 minute offered rate 0 bps, drop rate 0 bps
    Match: access-group name acl-telnet
    Queueing
    Output Queue: Conversation 138
    Bandwidth 64 (kbps) Max Threshold 64 (packets)
    (pkts matched/bytes matched) 639/38900
    (depth/total drops/no-buffer drops) 0/0/0
    Class-map: class-default (match-any)
    551448911 packets, 249420939729 bytes
    5 minute offered rate 242000 bps, drop rate 0 bps
    Match: any
    Queueing
    Flow Based Fair Queueing
    Maximum Number of Hashed Queues 128
    (total queued/total drops/no-buffer drops) 0/342/0
    Your information would be appreciated.

    Details infomatiuon regarding show policy-map interface
    http://www.cisco.com/en/US/tech/tk543/tk545/technologies_tech_note09186a008010dd6a.shtml
    http://www.cisco.com/en/US/tech/tk543/tk760/technologies_tech_note09186a0080108e2d.shtml
    http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/qos_r/qos_s2g.htm#wp1146884

  • Re: Question about the Satellite P300-18Z

    Hello everyone,
    I have a couple of questions about the Satellite P300-18Z.
    What "video out" does this laptop have? (DVI, s-video or d-sub)
    Can I link the laptop up to a LCD-TV and watch movies on a resolution of 1080p? (full-HD)
    What is the warranty on this laptop?

    Hello
    According the notebook specification Satellite P300-18Z has follow interfaces:
    DVI - No DVI port available
    HDMI - HDMI-out (HDMI out port available)
    Headphone Jack - External Headphone Jack (Stereo) available
    .link - iLink (Firewire) port available
    Line in Jack - No Line in Jack port available
    Line out Jack - No Line Out Jack available
    Microphone Jack - External Micrphone Jack
    TV-out - port available (S-Video port)
    VGA - VGA (External monitor port RGB port)
    Also you can connect it to your LCD TV using HDMI cable.
    Warranty is country specific and clarifies this with your local dealer but I know that all Toshiba products have 1 year standard warranty and also 1 year international warranty. you can of course expand it.

  • PL/SQL web service: question about stub

    hello,
    I'm currently learning how to work with PL/SQL Web Services.
    I have a question about stubs. The point is, I can deploy a web service to the OC4J server and it works. It also works when I create a stub following the WSDL I made with creating the PL/SQL web service. If I go to the endpoint in my webbrowser, the functionality is the same, with or without using a stub.
    My question is: what is the function of the stub?

    A stub is leveraged by a client application to communicate with a corresponding server side object (in this case, the web service implementation). If you think back to CORBA or RMI applications they follow a similar pattern.
    In the case of a web service you would use the stub to write a client application that could invoke the methods of the remote service and return the responses as java data types. The methods the stub class offers are the same as the methods of the web service interface. It's a common way for providing RPC like functionality.

  • A question about grub and USB

    Hi All
    I have a quick question about grub and USB that I can't quite find the answer to by searching.   Most of the FAQs discuss booting a full linux dristribution from USB. My situation is this.  I am getting a new computer with two drives, the second will be arch and the first will be Vista (for my wife).  I want the computer to boot the same way that my wife's machine boots at work so I don't want to install grub on the MBR.  So, is there a way to have all of the grub config files and kernels installed on the second drive and simply install to grub boot loader to the MBR of a USB stick?  My goal would be to simply plug the USB stick into the new PC and boot arch from the second drive. 
    Thanks
    Kev

    i cant say for hp's
    havent worked on any in a while
    recent machines have been coupleof dell's , vaio & emachine
    which dells do offer it at least the ones i tried , my laptop does(dell)
    all home pc's are built by me which do offer to boot individual drives
    what hp you getting it may tell in specs
    are both discs sata? if so it might not offer this option with 2 drives of same interface
    check your power supply alot of these preconfigured machines put cheap under reated power supplies in there
    & will burn your motherboard i just replaced PS(250 watt) & mobo(845gvsr) in an emachines <cheap stuff<
    i hope you researched the pc before buying ie : mobo, power supply are the biggest concerns
    i find it much more benificial to build my own machine gives me peace at mind. the cost is sometimes more in $ but not always , your biggest expense is time researching hardware
    if you live in usa the best places to start looking are bensbargains.net & pricewatch.com
    i am not affiliated with either & niether sell the hardware they are just advertisers a place to buy
    for costomized machines that i would trust is unitedmicro.com theyll asemble & test before shipping
    i have gotten 2 machines so far from them with NO PROBLEMS with hardware (knock knock)
    you may want to consider this in your next venture for pc

  • Few questions about difference between Satellite P70 , L70, S70

    Hello, i have many questions about the series P70 , L70, S70 that come with a 1920x1080 panel.
    1) What are the differences between the L70 and S70 series? Except of the HDD capacity and RAM, the notebooks look pretty identical.
    2) Do P70 , L70, S70 support a 2nd HDD or is it just the P70 series that support it ?
    3) Do all three (P70, L70, S70 series) come with the same TFT Panels ?
    4) Which of the above series supports mSata ?
    5) Do all of the model of each series come with a mSata support? E.g. Could it be that L70-a-13m supports mSata while the L70-a-146 does not ?
    6) All of the above, come with a S-ATA II or S-ATA III interface ?
    7) Which is the best of those series listed ? I am trying to understand what makes the big difference from S70 to P70 except of the casing for example.
    Thank you in advance.

    >1) What are the differences between the L70 and S70 series? Except of the HDD capacity and RAM, the notebooks look pretty identical.
    What Sat L70 and S70 models do you mean exactly? There are different L70-xxx and S70-xxx models on the market which supports different hardware specifications.
    >2) Do P70 , L70, S70 support a 2nd HDD or is it just the P70 series that support it?
    As you can see in this [Sat P70 HDD replacement document,|http://aps2.toshiba-tro.de/kb0/CRU3903II0000R01.htm] the P70 series supports 2nd HDD bay BUT even if there is an 2nd HDD bay this does not mean that you could use 2nd HDD. In case the 2nd HDD bay would be equipped with HDD connector, you could use the 2nd HDD
    I found also the [Sat L70/S70 HDD replacement |http://aps2.toshiba-tro.de/kb0/CRU3703HG0000R01.htm] document on Toshiba page and there I can see that 2nd HDD bay is not available
    > 3) Do all three (P70, L70, S70 series) come with the same TFT Panels?
    See point 1). Different P70, L70, S70 models were equipped with different hardware parts.
    > 4) Which of the above series supports mSata?
    As far as I know only some P70 models are equipped with an 256GB mSATA-SSD.
    > 5) Do all of the model of each series come with a mSata support? E.g. Could it be that L70-a-13m supports mSata while the L70-a-146 does not ?
    See point 4) not all models supports the same hardware specifications
    > 6) All of the above, come with a S-ATA II or S-ATA III interface ?
    I dont think that SATA III is supported. I guess it would be SATA II
    > 7) Which is the best of those series listed ? I am trying to understand what makes the big difference from S70 to P70 except of the casing for example.
    Not easy to answer because there are too many models released in Europea.
    And not all models are available in each country. So I guess you will need to look for models which were released in your country.

  • A question about compatiblilty of JDBC

    Hi, there,
    I have a question about JDBC 3.0 in JDK1.4.1.
    We build a .jar using JDK1.4.1 and this .jar file
    provides JDBC 3.0 interface.
    I then tried to call the interface under JDK1.3.1
    but it keeps asking me about the getParameterMetaData()
    in PreparedStatement.
    (The error message like this:
    Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/ParameterMetaData dbmaker.sql.JdbcOdbcConnection.prepareStatement(JdbcOdbcConnection.java:257)
    I did implement the getParameterMetaData() method,
    but I didn't call this method in my testing program.
    It's quite strange since when JDK1.2 was release,
    we implemented the getBlob() method in
    ResultSet class and there's no problem when we
    use JDK1.1 run time to call this ResultSet object.
    Could any one tell me why? Is this caused by a
    compatibility problem between JDK1.4 and the
    older versions of JDK?

    Hi, there,
    Let me outline the condition by examples so that maybe you can help me. PLEASE! Could somebody tell us what's wrong?
    - CASE 1:
    In JDK1.2, we implemented a new method getBlob which returns the type of Blob (this is done according to JDBC 2.0 specification.) in ResultSet class. We can use the .jar compiled by jdk1.2 in jdk1.1 environment.
    e.g. We make a xyz.jar by jdk1.2 and the xyz.jar includes new method getBlob in ReaultSet class. Then, one java application including ResultSet class CAN run under jdk1.1 with xyz.jar, if the method ResultSet.getBlob() is not called.
    - CASE 2:
    BUT, the following case which is the same as in the above condition will fail in jdk1.3 environment.
    In JDK 1.4, we implemented a new method getParameterMetaData() which returns the type of ParameterMetaData. (BTW, this is done according to JDBC 3.0 specification.) in PreparedStatement class. We CANNOT use the .jar compiled by jdk1.4 in jdk1.3 environment.
    e.g. We make a ttt.jar by jdk1.4 and ttt.jar includes the new method getParameterMetaData() in PreparedStatement class. Then, one java application including PreparedStatement class CANNOT be run under jdk1.3 with ttt.jar, even when the method PreparedStatement.getParameterMetaData() is not called.

Maybe you are looking for

  • Error: The operation can't be completed because the original item cannot be found

    Hi folks. I had to get a new MacBook Pro (old one died twice in two weeks despite being loved and cared for) today (ouch-  skint!) and now need to install Final Cut Studio to it.  "No problem" thought I, "I will use Remote Disc!" Assuming that my eve

  • Re: How to send images

    Hi Murray, thanks, for your idea, I found already some solutions. Why could'nt I incident this possibility? :-) Ciao, servus und salut Janis "Murray *ACE*" <[email protected]> schrieb im Newsbeitrag news:fuhq03$6al$[email protected].. > Google "File

  • SOAP to FILE using BPM to catch exception and save error into the table

    Hi All My scenario SOAP to FILE using BPB is working fine but now I have a requirement to catch an exception if something wrong happened on a runtime and save it into the tracking table, is that possible, if it is please point me to the similar step

  • How can I passcode an entire folder?

    I Want to passcode an entire folder instead of each individual  item in the folder.  Is this possible?

  • Upgrade from CS2 (PC) to CS5 Master Collection (Mac) ?

    Hi,  I'm currently having CS2 Creative Suite Premium (PC version), and I'm  interested to upgrade to CS5 Master Collection (Mac version). Am I  entitled for upgrade using Adobe product no 65065593, or should I use something else?  I'm a company user