Attribute common to all objects

Hi Folks,
May i know does anyone has any clue for this question?
"What need to be made to the class definition if the interest rate is to be stored as an attribute which is common to all objects of the different classes?"
Thanks
Louis

jokingelephant wrote:
so that all the instances under the class are not able to change the attribute value as interest rate value is sensitive.but now no one can change the value. By the way, no instances would change a static variable anyway since it is not a property of an instance but rather of the class. For instance, you don't call:
myObjectVariable.staticVariable = "foo";but rather you call it this way:
MyClass.staticVariable = "foo";

Similar Messages

  • Can't read all attribute of my serialized object

    Hello everybody,
    I've got a problem with my program. I try to serialized a MutableTreeNode root in order to save and then open my JTree.
    I serialize it and i have no problem but when i open it the parent hierarchy is saved (x is son of y...) but their name are null. I loose nodes' name... :/
                   try {
                        //Je cr�e un fichier temporaire dans le r�p�rtoire courant
                        //Ce fichier est l'arbre (selection de l'utilisateur) serializ�
                        //Flux cr�ant un fichier
                        FileOutputStream fos = new FileOutputStream(this.path);
                        //Flux dans lequel je stocke un objet
                        ObjectOutputStream oos = new ObjectOutputStream(fos);
                        //J'�cris dans mon flux mon objet
                        System.out.println("root before drag = "+this.root); 
                        oos.writeObject(this.root);
                        //On ferme le flux
                        oos.flush();
                        fos.close();
                   } catch (FileNotFoundException e1) {
                        System.err.println("FileNotFoundException");
                        e1.printStackTrace();
                        return null;
                   } catch (IOException e1) {
                        System.err.println("IOException");
                        return null;
                   } catch (ClassCastException e1) {
                        System.err.println("ClassCastException");
                        return null;
                   try {
                        FileInputStream fos = new FileInputStream(this.path);
                        ObjectInputStream oos = new ObjectInputStream(fos);
                        //J'�cris dans mon flux mon objet
                        MutableTreeNode sousArbre = (MutableTreeNode) oos.readObject();
                        //On ferme le flux
                        fos.close();
                        //On r�cup�re l'arbre
                        System.out.println("root after drag = " + sousArbre);
                        this.root = sousArbre;
                        modele = new DefaultTreeModel(root);
                        Arbre.setModel(modele);
                        Aide a = new Aide(Arbre);
                   } catch (FileNotFoundException e1) {
                        System.err.println("FileNotFoundException");
                        e1.printStackTrace();
                   } catch (IOException e1) {
                        System.err.println("IOException");
                        e1.printStackTrace();
                   } catch (ClassNotFoundException e1) {
                        System.err.println("ClassNotFoundException");
                        e1.printStackTrace();
                   } catch (ClassCastException e1) {
                        System.err.println("ClassCastException");
                        e1.printStackTrace();
                   }so:
    System.out.println("root before drag = "+this.root);
    return node name
    Mais :
    System.out.println("root after drag = " + sousArbre);
    return null
    Have you an idea ?
    Thx :)

    Please check your Node Object, I mean all Objects that you are going to save is serialized or not.

  • How to reference the Parent view Object attribute in Child View object

    Hi , I have the requirememt to generate Tree like struture to display Salary from joining date to retirement date in yearly form.I have writtent two Pl/SQL function to return parent node and child nodes(based on selected year).
    1.First function --> Input paramter (employee id, retirement date , joining date) --> return parent node row with start_date and end_date
    2. 2nd function --> input paarmter(employee id, startDate, end_date) --> return child node based on selected parent node i.e. start date and end date
    I have created two ADF view object based on two function return
    Parent Node --> select * from Table( EUPS.FN_GET_CONTR_SAL_BY_YR(employeeId,retirement Date, dateOf joining)) ;
    Child Node --> select * FROM TABLE( EUPS.FN_GET_CONTR_SAL_FOR_YEAR( employeId,startDate, endDate) ) based on selected parent node.
    I am giving binding variable as input for 2nd function (child node) . I don't know how to reference the binding variable value in child view from parent view.
    Like I have to refernce employeId,startDate, endDate values in 2nd function from parent view object. some thing like parentNode.selectedStart_date parentNode.employeeId.
    I know we can achive this writing the code in backing bean.But i want to know how can we refernce parent view object attribute values in child view object using Groovy or otherway?
    I will appreciate your help.
    Thanks

    I have two view com.ContractualSalaryByYearlyView for Parent Node and com.ContractualSalaryByYearlyView for child Node.
    I have created view link(ContractualSalYearlyByYearViewLink) betweem two view by giving common field empId, stDate , endDate.(below is the view link xml file).
    I tried give the binding attribute values using parent object reference like below in com.ContractualSalaryByYearlyView xml file but getting error
    Variable ContractualSalaryByYearlyView not recognized.I think i am using groovy expression.
    Thanks for quick response.
    com.ContractualSalaryByYearlyView xml
    <ViewObject
    <DesignTime>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <Variable
    Name="empId"
    Kind="where"
    Type="java.lang.Integer">
    <TransientExpression><![CDATA[adf.object.ContractualSalaryByYearlyView.EmpId]]></TransientExpression>
    </Variable>
    ContractualSalYearlyByYearViewLink.xml file
    <ViewLinkDefEnd
    Name="ContractualSalaryByYearlyView"
    Cardinality="1"
    Owner="com.ContractualSalaryByYearlyView"
    Source="true">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryByYearlyView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryByYearlyView.EmpId"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.StDate"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd
    Name="ContractualSalaryForYearView"
    Cardinality="-1"
    Owner="com.ContractualSalaryForYearView">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryForYearView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryForYearView.EmpId"/>
    <Item
    Value="com.ContractualSalaryForYearView.StDate"/>
    <Item
    Value="com.ContractualSalaryForYearView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>

  • Key focus is not visible for all objects when tabbing

    I'm using LabView 5.1.
    The key focus is not visible for all objects when tabbing through a "disabled and grayed-out" object.
    For example, let's say I create a panel with 3 buttons. If I create a "disabled" attribute for button 2 and assign the value "2" (disabled and grayed-out) to it. When I will run this VI, the key navigation will go through button 1 and button 3 (skipping button 2 as expected) but the key focus on button 3 will not be visible.
    Is this a bug with LabView or am I doing something wrong ?

    Hi Ben,
    Don't worry, time is not an issue... I'm posting an example of a VI with the problem I described. I noticed that the problem occurs only with "dialog buttons".
    When you have time, let me know if you see the same behavior. If you do, I will report the problem to National Instrument.
    Thanks for your time !
    BigBen
    Attachments:
    3buttons.vi ‏22 KB

  • Print All Objects

    <p>On some of my Analyzer 7.2.5 reports, when I try to print with"Print All Objects", the radio button grays out andfreezes, and I need to kill it through Windows Task Manager.</p><p> </p><p>This has consistently happened to the multiple-object (6objects) reports, but it also inconsistently happened to reportswith 3 objects - it happens to some 3-object reports, but not theother 3-object reports. It seems to work fine with other reportswith 1 single object.</p><p> </p><p>Does anyone know the limit, which it shouldn't, of thefunction?</p><p> </p><p>Thanks.</p>

    Gurram wrote:
    want to read .rex File. The file contains combination of SQL code with table Names, Packages,Functions,There are three basic ways to read an external file.
    You can use UTL_FILE and use standard/basic file I/O calls like fread() and fwrite() - common amongst most (if not all) programming languages.
    You can define an external table for the file, and SQL*Load the contents of the file dynamically via a SQL SELECT statement.
    You can load the file into a CLOB using DBMS_LOB and then process it - quite useful if the text file is XML as the XMLTYPE supports parsing a a CLOB containing XML.
    I want to pick Each object name put in a separate file line by line.That in turn will need to use UTL_FILE to create an external file.
    Keep in mind though that your in a database environment with PL/SQL. The very best place for data is inside the database in SQL tables. Not outside as external files. Thus you need to ask yourself whether dealing this way with external files is the best solution, and a robust and scalable one.
    Granted, many times from the database side we need to deal with external files. The optimal method usually is to load that file's data into a database table as structured data - data that can be accessed via SQL and sorted, filtered, aggregated and analysed.
    To provide a "file" as output - this should ideally be done directly from structured data (SQL tables). And can be done using HTTP (via a web enabled PL/SQL procedure that supplies the file content as a http Mime stream), using FTP (via <i>UTL_TCP</i>) or as a CLOB via a PL/SQL call interface. Using UTL_FILE is not necessarily the only option.

  • Direct and Flexible loading for  Attributes for a Info-object?

    Dear all,
          Is it possible to have both Direct and Flexible update for  Attributes of an Info-object from two different data sources from the same source system(R/3)  . The reason being that the first data source can not be extended in R/3.
    When this scenario is tried For Flexible loading The data loading  is not successful in BW.No errors/dumps found.
    Regards,
    Amu

    In this case I start and activate the whole data flow again to hopefully get an error message. If this still has no success I'd open an OSS message. Even if you have made a mistake you should get an error message somewhere.
    Some other places you might check:
    SM50 to see if the job is still running
    DB02 to see DB locks and tablespace problems
    Best regards
       Dirk

  • Need attribute list for User object

    Hi All,
    Where can I find the attribute list for the object "User"? I need this for silent mode domian configuration.
    Thanks!

    Hi All,
    Where can I find the attribute list for the object "User"? I need this for silent mode domian configuration.
    Thanks!

  • How to get attribute value from an object inside an object in Xpress

    Does anyone know how to get an attribute value from an object in Xpress in a workflow? I have an object structured as follows:
    <ResourceInfo accountId='mj628' tempId='3483372b787ce7dd:-5d99a0c5:130cb238483:-3600'>
    <ObjectRef type='Resource' name='Google Apps'/>
    </ResourceInfo>
    I need if possible to get the name='Google Apps', which is inside the ObjectRef, so I guess its an attribute value of an object inside an object.

    If the ResourceInfo object is accessible in a variable, i.e. named "myResInfo", you just have to check the Java API and call the relevant method:
    <invoke name='getResourceName'>
      <ref>myResInfo</ref>
    </invoke>

  • Determine all objects that a group has been assigned to

    I am trying to determine all objects that a group has been assigned to. For example, I would like to know what communities and portletes a group has been assigned to.
    I can retrieve the information directly from the plumtree database, however, I have not been able to determine how to accomplish this via the api.
    I have tried the following
    IPTObjectManager ptObjMng = ptSession.GetCommunities();
    for(inti = 0; i<3;i++)
    filter[i] = newObject[1];
    filter[0][0] = PT_PROPIDS.PT_PROPID_USERGROUP_GROUPID;
    filter[1][0] = PT_FILTEROPS.PT_FILTEROP_EQ;
    filter[2][0] = 1634; //group id for my group
    IPTQueryResult ptResult = ptObjMng.Query(PT_PROPIDS.PT_PROPID_ALL,-1,PT_PROPIDS.PT_PROPID_NAME,0,-1,filter);
    I have verified that the group has been assigned to the community, however, this query returns no records.
    How can I retrieve all communities or group that a specific group has been assigned too?
    thanks in advance

    This sure would be a handy feature! iTunes has it so that you can easily tell which playlists a song is in. It would be convenient for iPhoto as well.

  • How to delete all objects in a package?

    Hello,
    I've seen a similar question here. But is there a tool or a smart way to delete all objects in a dev class or a transport request?
    Best Regards
    Volker

    These are really 3 questions??
    1. To delete objects in a request there are a number of ways, here is one:
    Position cursor on modifiable request.
    Double click on request and choose 'Objects' tab
    Choose object line you want to delete and click 'Delete'
    Save your changes.
    2. To delete objects in a Dev Class:
    Go to work bench --> edit object, Class and give your class name, you will see delete option at the bottom of the screen.
    3. How to delete all objects in a package:
    here is a link with the steps you need for this: http://benxbrain.com/en/index.do?onInputProcessing(brai_object_thread)&001_threadid=0000161442&sysid=WP5&pgmid=R3TR&object=DOMA&obj_name=DEVCLASS&child_param=

  • Hello, 2 questionss here is it possible or is there a way to convert all object s outlines in all frames to fills at once and not frame by frame? and why sometimes erases the outline instead of converting it to fill?

    Hello, 2 questionss here>is it possible or is there a way to convert all object s outlines in all frames to fills at once and not frame by frame? and why sometimes erases the outline instead of converting it to fill?

    Hello, 2 questionss here>is it possible or is there a way to convert all object s outlines in all frames to fills at once and not frame by frame? and why sometimes erases the outline instead of converting it to fill?

  • How to select the all object at a time while installing business content

    Hi All,
    how to select the all object at a time while installing business content Please let me know if nay document is there
    Thanks Ahmed Pasha

    Hi,
    Please check out the below links
    [Business content Installation|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/102906a4-f13d-2e10-7199-ce316ff254b8?QuickLink=index&overridelayout=true ]
    [BI Content|http://wiki.sdn.sap.com/wiki/display/BI/InstallingBusinessContent]
    Hope it helps.
    Regards,
    AL

  • Undable to drop tablespace ORA-01561: failed to remove all objects in the

    hi,
    i am unable to drop table tablespace how can i do that??
    please advise
    DROP TABLESPACE tbs_tp2 INCLUDING CONTENTS AND datafiles
    ERROR at line 1:
    ORA-01561: failed to remove all objects in the tablespace specified
    Thanks in advance
    siva
    chennai

    Have you tried dropping the objects individually? You can see which objects still belong to this tablespace by using the DBA_SEGMENTS view as shown below:
    SELECT OWNER, SEGMENT_NAME, SEGMENT_TYPE, TABLESPACE_NAME
    FROM DBA_SEGMENTS
    WHERE TABLESPACE_NAME=tbs_tp2;HTH!

  • When releasing a transp. req.not all object in the request could  be locked

    When trying to release a transport request I get error message that "not all object in the request could  be locked. Do you want to release them anyway"
    I found an unreleased request (from someone else) containing few objects from my request. However I do not know the owner of that request (and I can not felete it). What to do?
    If I release the transport anyway what could happen?

    Hi Tina,
    If ur sure that u only want to release object which u have created and not the other objects then proceed in following way.
    1. Go to SE10 and click on create button
    2. u will get a popup select the 3rd radio button(ToC)
    3 Give the decsription of the Tp
    4. u will get  anext screen here in menu select request
    task->object lise ->Include object (new screen) here u select radio button freely selet obkect -> then new screen then selected the radio button selected objet. Here u give ur object and those object will be store in the created request then u can transport
    Regard
    Anees Ahned

  • INS-40925 - One or more nodes have interfaces not configured with a subnet that is common across all cluster nodes.

    Hi All,
    I am facing the below error while installing Oracle RAC in Silent Mode.
    SEVERE: There are no common subnets represented by network interfaces across all cluster nodes.
    SEVERE: [FATAL] [INS-40925] One or more nodes have interfaces not configured with a subnet that is common across all cluster nodes.
       CAUSE: Not all nodes have network interfaces that are configured on subnets that are common to all nodes in the cluster.
       ACTION: Ensure all cluster nodes have a public interface defined with the same subnet accessible by all nodes in the cluster.
    My /etc/hosts is given below.
    127.0.0.1        localhost    localhost.localdomain
    #Public
    192.168.1.101      rac1        rac1.localdomain
    192.168.1.102    rac2        rac2.localdomain
    #Private
    192.168.2.101    rac1-priv    rac1-priv.localdomain
    192.168.2.102    rac2-priv    rac2-priv.localdomain
    #Virtual
    192.168.1.103      rac1-vip    rac1-vip.localdomain
    192.168.1.104    rac2-vip    rac2-vip.localdomain
    #SCAN
    192.168.1.105    rac-scan    rac-scan.localdomain
    Could you please help me to get rid of the error INS-40925....Any Idea...???

    Hi Ramesh,
    Please find the result of ifconfig -a from both nodes RAC1 & RAC2.
    ifconfig -a in RAC1
    [oracle@rac1 Desktop]$ ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 08:00:27:17:7A:D5
              inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:fe17:7ad5/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:102 errors:0 dropped:0 overruns:0 frame:0
              TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:25472 (24.8 KiB)  TX bytes:3322 (3.2 KiB)
              Interrupt:19 Base address:0xd020
    eth1      Link encap:Ethernet  HWaddr 08:00:27:C0:AC:DB
              inet addr:192.168.2.101  Bcast:192.168.2.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:fec0:acdb/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:4 errors:0 dropped:0 overruns:0 frame:0
              TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:240 (240.0 b)  TX bytes:816 (816.0 b)
              Interrupt:16 Base address:0xd240
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:56 errors:0 dropped:0 overruns:0 frame:0
              TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:6394 (6.2 KiB)  TX bytes:6394 (6.2 KiB)
    virbr0    Link encap:Ethernet  HWaddr 52:54:00:CC:BD:FB
              inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    virbr0-nic Link encap:Ethernet  HWaddr 52:54:00:CC:BD:FB
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:500
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    ifconfig -a in RAC2
    [oracle@rac2 Desktop]$ ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 08:00:27:C9:38:82
              inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:fec9:3882/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:122 errors:0 dropped:0 overruns:0 frame:0
              TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:32617 (31.8 KiB)  TX bytes:5157 (5.0 KiB)
              Interrupt:19 Base address:0xd020
    eth1      Link encap:Ethernet  HWaddr 08:00:27:90:B5:A0
              inet addr:192.168.2.102  Bcast:192.168.2.255  Mask:255.255.255.0
              inet6 addr: fe80::a00:27ff:fe90:b5a0/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:4 errors:0 dropped:0 overruns:0 frame:0
              TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:240 (240.0 b)  TX bytes:746 (746.0 b)
              Interrupt:16 Base address:0xd240
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:56 errors:0 dropped:0 overruns:0 frame:0
              TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:6390 (6.2 KiB)  TX bytes:6390 (6.2 KiB)
    virbr0    Link encap:Ethernet  HWaddr 52:54:00:CC:BD:FB
              inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    virbr0-nic Link encap:Ethernet  HWaddr 52:54:00:CC:BD:FB
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:500
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Maybe you are looking for

  • How to split a PO into 2 iDocs ??

    Hello, We use EDI to send PO's outbound to suppliers via ORDERS05 iDoc.  Problem is that most of our suppliers cannot accept EDI PO if it contains more than one "Delivery Address". I need 2 or more Orders05 iDocs to be created (1 for each Delivery Ad

  • Contacts no longer Sync to iPhone

    Until yesterday I never had any problems syncing contacts with my iPhone. Now it doesn't matter what I do, I can't get my contacts to Sync. This problem started after I signed up for .Mac and did my first Sync using .Mac. I can Sync changes from my i

  • JTA: branch qualifier

              Seems to me WLS 7.0 TM thinks a transaction ID with the same transaction ID and           different branch qualifier to be two different transactions, which is not compliant           to JTA spec.           According to JTA specification, '

  • AW won't open on network

    In our office we have 3 Macs, all running 10.3.9 and using AW 6.2.9. If Mac #1 hooks up to mine (#2) to access any file, no AW file will open regardless of which machine created it or which it lives on. If they disconnect from the network, AW files l

  • How to config for DSL !!!

    I am using DSL with the verizon. I just install 5.8 x86 on my PC. But could not browse on the Web. I need to know whatelse I need to do ? Do I have to Configure DHCP ? How can I do it ? Please advise. Thanks again. From Pranav