Is there any statement to indentify if a class implements an interface?

Is there any statement to indentify if a class implements a particular interface?

If you want to check if a class implements an interface, look up the interface here:
http://java.sun.com/j2se/1.4.2/docs/api/index.html
and look under "All Known Subinterfaces:"
If you want to check if an object is of that interface:if(yourObject instanceof SomeInterface)
    // do something
}

Similar Messages

  • Is there any statement to transfer the data from unix server to another

    Hi All,
    Is there any statement or function module avaliable in sap to transfer the data from one unix server to another unix server apart from FTP(file transfer protocol).?
    My requirement :  I need to fetch the data from one unix server to another sap server. i have a option of FTP but i need to transfer the unix data to another server internal table.
    I need to move the unix data to another sap sevrver internal table
    Regards
    Raja

    not sure what your exact requirement is, but
    if both servers are in the same system group, you could potentially just mount the unix directory from the source machine to the target with nfs mount or something.
    if not, you could consider remote function call. create a remotable function module on the source machine to read the data into an internal table, and call that function module from the target machine. this requires creating entries in the RFCDES table (i think via SM59?). on the target machine, you would call function y_whatever destination xyz, where xyz is the RFCDES you set up. it works great.
    dave

  • Is there any advantage to use database helper class

    Is there any advantage to use database helper class ( e.g. database.bookDB in Duke's bookstore)in servlet design? What if I setup a DB connection for every servlet?

    If there is not much relation between servlets.For example one servlet working on authentication againist user name/password in database another one work on searching book by keywords?
    and if we want to have servlets written by difference programmers?

  • Is there any way to identify the two classes are compiled by same vm

    Is there any way to identify the two classes are compiled by same vm?
    Thank's a lot.

    I think this is the better forum than java compiler. The answer to the question you asked is no.
    But that question is not the best way to address your problem.
    If this were me, I'd use a tool like ASM (http://asm.objectweb.org/) to read in that file, and replace the getToday() method, with one like this
    long getToday() {
        return 20080101;
    }and replace the class file with this new one. (keep the old one, they might be using a class loader that verifies class signatures or something)
    (They said the code you are looking at could have been changed by you - so take the hint and change it back).
    If they've ripped you off, this will restore justice much more cheaply and effectively than involving the lawyers. If they then sue you for breaching the license agreement, that would probably force them to disclose their underhand tactics.
    OTOH, if you're lying to us about the purchase, and needing to pay for upgrades to fix the performance issue, and instead are trying to crack some trial software, then I hope they are using a custom class loader that checks the integrity of the classes.
    If you are being ripped off, why are you not telling us the name of the company? I am not sure who is being ripped off here.
    Bruce

  • Is there any way an iPhone app developer can implement low power class 3 Bluetooth?

    Is there any way an iPhone app developer can implement low power class 3 Bluetooth?

    Ah-HA!  I knew there had to be a way!
    Not quite the same in 10.6, but close enough to find it:
    It's iTunes>apps, not iTunes>iPhone>apps.  I didn't realize there were different windows.
    Not double-click, but control-click.  Close enough.
    Easy-Peasy, now that you showed me how.
    Thanks, Barry.
    --Gil

  • Are there any shortcuts for creating Value Object Classes?

    Hi,
    I'm using a Remote Object to connect to my server
    (pyAMF/Django). I'm getting stuck with the creation of Value Object
    Classes. It doesn't seem very DRY to have a class on my server
    representing the data model and then have to recreate that class
    and all its properties in my Flex app.
    Are there any shortcuts for creating client side VOs from
    server side data?
    I was thinking about declaring an empty VO class in Flex, and
    then dynamically assigning/casting my Proxy object to that class.
    It seems like that approach may cause problems for the Flex
    compiler though.
    Any hints?
    Thanks!

    quote:
    Originally posted by:
    tptackab
    Oh man, do I feel your pain. I'm not sure what middle-tier
    technology you're using, but I'm using Java (w/Spring) and I
    absolutely hate having to create and maintain two sets of VO (aka
    data transfer - DTO) object for Java and Flex.
    One thing that has helped me in that area is a free tool from
    Farata Systems called
    DTO2Fx. If you're using Java and Eclipse, it's a great time saver.
    You simply install a (very lightweight) Eclipse plugin, add a
    single annotation to your Java VO classes, and it automatically
    generates your Flex VOs. It even creates a base and extended
    version of each VO on the AS3 side so you can add code to the
    extended VO without fear of having your changes overwritten when it
    regenerates your Flex VOs.
    Here's a like to thier
    PDF that
    gives instructions and a download link. I had it up and running in
    my application in less than 30 minutes!
    I'm using Python/Django serverside (PYAMF is my AMF
    serializer).

  • Is there any bug in java.lang.String literal implementation

    Consider the following program:
    class StringTest
         public static void main(String[] args)
              long freeMemInitially=Runtime.getRuntime().freeMemory();
              String s="Amarnath";
              //char data[] = {'A', 'm', 'a','r','n','a','t','h'};
         //String s = new String(data);
              long usedMemAfterFirstString=freeMemInitially-Runtime.getRuntime().freeMemory();
              System.out.println("usedMemAfterFirstString:= "+usedMemAfterFirstString);
    Run the program it will return 0. But why? As the java docs and java specification says that string litterals is the reference to the instance of java.lang.String object.Then where does this string have been saved except the java runtime heap?
    Message was edited by:
    Amarnath_Bhattacharya

    basically, the simple explanation is this:
    the string literal "usedMemAfterFirstString" and the string literal "Amarnath" are both instantiated BEFORE the main method is called.
    hence, no object creation is done between the first and second invocations of Runtime.getRuntime().freeMemory().
    If you take a closer look at the spec, it will confirm this.
    - Adam

  • Is there any way to create a folder in presentation server - webdynpro abap

    Hello,
    My requirement is to create a folder in presentation server using webdynpro abap..
    I tried on this CL_GUI_FRONTEND_SERVICRES classes ..but its getting an short dump.
    Is there any way to create folder using classes / FM..
    Regards,
    Praveen kumar reddy s.

    Hi PRaveen,
    Check this.. WD_TEST_APPL_ACFEXECUTE
    Check Thamos article..
    http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
    go for help..
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b91539878a2d67e10000000a42189c/content.htm
    Cheers,
    Kris.
    Edited by: kissnas on May 10, 2011 2:24 PM

  • Are there any differences between these two kinds of constructor

    one pass x a value in a method;
    another not;
    are there any differences when using them?
    ===========
    class ConstructorA
         int x=1,z;
         public ConstructorA(int a){
              z=a;          
    class ConstructorB
         int x,z;
         public ConstructorA(int a){
              x=1;
              z=a;          
    }

    Well the problems would arrive when you add other constructors:
    - if the default value for x is really 1, whatever the way the object is initialized, then it's better to declare it in x's declaration. Otherwise if someone adds to this class a constructor that forgets to set x=1, x's value will remain 0 and bugs may occur.
    - if the default value for x depends on the way it is initialized, then on the contrary it's better to initialize it explicitly in the constructors, and not in x's declaration so as not to have several constructors with inconsistent code.

  • Is there any  way to Mask the Name when  a select statement is issued?

    Dear all,
    Is there any way to mask the name .. i mean if User issue a select statement in a customer table the real name should come like ' ABCXXXDEFXXCFXX'... Which is not the actual name?
    e.g if Name: CHIEV SONG MEE
    If user issue a statment select * from customers;
    The Result Should come something Like this:
    Name
    CHXXV SXNG MXX
    Thank You

    user3029023 wrote:
    but it seems there is no option in oracle it self which can be used as there they are saying to get a data masking software which we can't due to some internal issues....I would not say that. How one implements masking depends entirely on the requirements that need to be met.
    For example, schema A owns all the tables. Schema B can be created as a "trusted" schema - in other words, schema A trusts schema B and allows it full access (with grants) to its tables. Schema B implements data masking as views. For each table in A, a view exists in B that implements the required masking. B can now grant select access on these views to user C. User C will see the same data object names in B as it would have if it used A - only, by using the B data objects it uses masked data objects and not the original source data objects.
    Another example - schema Dev is to have all the data objects of schema Prod, but masked where needed. One can use CTAS (Create Table As Select) to create the required tables in Dev with masked values where relevant. This Dev schema can be "refreshed" on weekends by dropping all tables and getting a new fresh copy of production data and masking it - ready for the next week's development cycle.
    If the application use is for example APEX, then instead of coding SQL directly as reporting regions to display, a function is used instead. APEX supports reporting regions where it calls a function and this function provides the APEX run-time with the SQL to execute and contents to render. It is easy to use this approach to implement logic in functions that masked column data depending on who the APEX user is, the security/role attributes of the user, and so on.
    No there is not a single "+mask this column!+" feature in Oracle.. but that does not mean that such a feature is not supported and cannot be implemented. Oracle has a very comprehensive and rich set of tools - more so than most (if not all) other RDBMS products.
    It is up to the architect/designer/developer to use this toolkit in creating a system that meets the specific requirements at hand.

  • Need to take monthly report for SQL statements...Is there any possiblity?

    Hi,
    We have a requirement to find out the list of expensive sql statements in our ECC 6.0 system.
    I am aware that we can see expensive sql statements which are being executed online in the TCode ST04 or DB02old.
    But I want the list of statements on a monthly wise.
    Is there any possibility to find out the list of expensive sql statements for the previous 3 to 4 months?If so, how do we do that?
    Any report or Tcode with navigations.
    Please help.
    Regards,
    Sudheer.

    Hi,
    > We have a requirement to find out the list of expensive sql statements in our ECC 6.0 system.
    nice.
    > I am aware that we can see expensive sql statements which are being executed online in the TCode ST04 or DB02old.
    expensive SQL in DB02, really?
    > But I want the list of statements on a monthly wise.
    > Is there any possibility to find out the list of expensive sql statements for the previous 3 to 4 months?
    > If so, how do we do that?
    Up to now there is no transaction available with such information. The databases partially offer solutions.
    These are switched on by default of have to be setup before they could be used. So it depends on the
    database and the database version which are you using.
    On ORACLE 10g for example we have the AWR (Automatic Workload Repository) which should be switched on by default (depends again on the license). On ORACLE 9i statspack is available but has to be activated first.
    On DB6 (latest database and SAP release) we have the so called performance warehouse.
    On other databases there might be solutions too.
    Besides that you can always built your own solution and grab the top 10 SQL statements from the SQL cache and
    persist them in regular intervals. I have seen such solutions as well.
    Kind regards,
    Hermann

  • Is there any System setting for Update statement

    Is there any setting for update statement related to implicit commit because Update statement in my code behaves differently in different systems.
    My code is
    Data:  it_eaus like eaus occurs 0 with header line,
            wa_eaus type eaus.
    select * from eaus into table it_eaus where auszbeleg = '000000000001'  and storausz = 'X'.
    if sy-subrc = 0 .
    wa_eaus-aedat = ''.
    wa_eaus-aenam = ''.
    wa_eaus-storausz = ''.
    modify it_eaus from wa_eaus transporting aedat aenam storausz where auszbeleg = '000000000001'.
    update eaus from table it_eaus.
    endif.
    Data:  it_eausv like eausv occurs 0 with header line,
            wa_eausv type eausv.
    select * from eausv into table it_eausv where auszbeleg = '000000000001'  and storausz = 'X'.
    if sy-subrc = 0 .
    wa_eausv-aedat = ''.
    wa_eausv-aenam = ''.
    wa_eausv-storausz = ''.
    modify it_eausv from wa_eausv transporting aedat aenam storausz where auszbeleg = '000000000001'.
    update eausv from table it_eausv.
    endif.

    Hi
    It isn't an alternative way: u can only explicit the COMMIT just as I said before:
    Update DBTAB set COL.
    COMMIT WORK.
    Anyway just I said before the debugger can execute a COMMIT, from SAP help:
    The New Debugger can run in exclusive and non-exclusive mode. Exclusive mode means that the application that is being analyzed exclusively occupies a work process of the application server during debugging. In non-exclusive mode, the Debugger functions are limited. In non-exclusive mode, after each Debugger interaction, the system requests a roll-out in the application. Therefore, an implicit database commit must be executed. This has the following consequences:
    u25CF      Debugging is not possible between the statements SELECTand ENDSELECTbecause the database cursor needs to be closed when using an implicit database COMMIT statement.
    In this case, program execution is terminated.
    ·        Debugging is not possible for conversion or field exits.
    ·        Due to the implicit database commit, inconsistent datasets can occur in the database.
    For this reason, non-exclusive mode is not possible in productive systems.
    Max

  • Is there any diffrence in quality between apple products  that is buy from united states or one that i buy from Emirate?

    is there any diffrence in quality between apple products  that is buy from united states or one that i buy from Emirate?

    Not from this Forum .This is a User to User technical support Forum .There is no relevant Apple presence here
    All iOS devices are made at the same factories in China for world wide distribution .
    The only difference is that some Middle East governments forbid the shipping of devices with Facetime and Apple are required to remove it from shipments to certain Countries

  • HT201209 We have a gift card for iTunes that was purchased in the United States and we live in Canada and iTunes won't allow us to redeem it. Is there any way we can exchange it?

    We have a gift card for iTunes that was purchased in the United States and we live in Canada and iTunes won't allow us to redeem it. Is there any way we can exchange it?

    Sorry, but as KP guessed, Apple will not exchange the card, and you are correct that you can't use a US iTunes card in Canada. You will need to give or sell it to someone in the US.
    Regards.

  • Email settings, previously I could state how many emails to be saved/downloaded and under the ios 7 it no longer is there any ideas thank  you

    Under settings mail,contacts,calendars my iphone use to have a place to state how many emails to be saved/downloaded I believe there was a choice of 250,500 or 1000, now that I downloaded IOS 7 I don;t see where you can do that. Is there any other way of doing it, thanks

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430http://support.apple.com/kb/ht1430
     Cheers, Tom

Maybe you are looking for

  • Xp sp2 and clntrust

    Hi, we just got some new pc's with xp/sp2 on them and seem to be having lock-up problems with clntrust. Even if you disable the firewall, clntrust still hangs up. We are using client 4.9 with sp2 applied, nw5.1 sp7, bm3.5. Any ideas??? thanks, Bill

  • Oracle-java How to fetch data between two Timestamps

    hai... I am using a program where i have to get all the data entered into oracle db between two dates (The first date being manually inputted and the second one is inputdate-24hrs) . The code is as follows.... Connection c = null; PreparedStatement p

  • Reporting & Analysis workspace9 server not running on server at port 6800

    Hi all, i installed hyperion 9 system them with reporting and essbase .. after configured all .. configure shows sucess but after shared services configuration failed in BI unable to open workspace when i tried to open Workspace "Could not find a Hyp

  • Previous/back button for lock screen (Android)

    I would like to see a previous song button on the lock screen of Android. I dislike having to unlock my phone just to start a song over or to get back to another.

  • Working with project. The dependencies.

    Hi All, I'd like to ask you what is the reason/trigger of appearance the VIs in the dependencies section of the project. I know that in the dependencies section there are VIs collected which are not explicitly called from the VIs which are in the pro