Inheritance hierarchy in Collections

Consider the following hierarchy as in Collections:
1. public abstract class AbstractSet extends AbstractCollection implements Set
2. public class HashSet extends AbstractSet implements Set, Cloneable, java.io.Serializable
What is need for HashSet class to implement the Set interface when AbstractSet class is already implementing the Set interface?

There is no need. Although actually, there is no way not to do it. I don't know why Joshua Bloch mentioned that implementation specifically. One could argue that this way AbstractSet might change its implementation without affecting the interface API of Hashset, but that's not really true.

Similar Messages

  • How to move entire Collections to a new catalog, including hierarchy, smart collections and also Publish set ups?

    I want to move a large number of Collections, including all their hierarchy and smart collection settting, plus the photos, to a new catalog. I can only find a way of importing the actual photos themselves from the old catalog.
    Also is there a way to have the publish settings migrated to the new catalog too?

    Thanks for that.
    I agree that a single catalog is the standard approach (all my personal photography is contained in a single catalog over the years). However this is for a large corporate event which we hold each year. This year I want to use extensively the face recognition and I don't want it assessing or confusing people with those who attended the event last year. The even is over 4 days and results in several thousand images from multiple photographers. It's just cleaner to keep the events in their own catalogs for now (good for archiving and backing up too)
    Thanks again. Appreciate your help.

  • EJB 3.0 Entity Bean Inheritance Table Mapping

    What I want to do (I think)...
    In a distilled example form...
    - class A defines field x
    - class B defines field y, extends A, inheriting field x
    - class C defines field z, extends A, inheriting field x
    - I want class B to map to tbl_b which has columns x, y
    - I want class C to map to tbl_c which has columns x, z
    What I **don't** want to do (I think)...
    - make a base table for class A that is joined to tbl_b and tbl_c
    - map class B and class C to a single table that has a discriminator column
    Questions...
    1) Is there a conceptual problem with what I want to do?
    2) Is there a way to do what I want to do? I've tried via annotations. Maybe via the XML mapping alternative to annotations?

    Thanks for the reply Simon.
    Just to re-word what I want to do... I want to use a single table **for each lineage** in the hierarchy. In my original example that would be two tables.
    Table per class is what I tried but couldn't get to work - at least using annotations. I want to map some columns in the single table to base fields and some to derived fields.
    It seems that only 'single table with discriminator', or the 'join table' methods are sanctioned ways to handle an inheritance hierarchy.
    I didn't yet try using the XML method. I might be able to use the single table method by mapping base class properties as if they were derived class properties. This approach would work with a native Hibernate mapping XML.
    Back to the conceptual question. Is there a reason why I shouldn't do what I want here?
    What I'm trying to avoid...
    1) joining tables for performance issues
    2) having one table with columns that only make sense for certain records - ugly and potentially database storage waste.

  • How to process a collection of objects of a derived class?

    I'm trying to clean up some duplicated code.
    I have several classes that have a common parent class. I have in my application several searching and sorting functions that operate on these child classes. But I realized that this is code duplication, as these functions only need data members of the common parent class. So I figured I could make these functions operate on collections of the parent class.
    But during refactoring, I ran into a compiler error that surprised me. This is the SSCCE:
    import java.util.*;
    public class Tinker {
      static class ParentClass {}
      static class ChildClass extends ParentClass {}
      static void processClassCollection( Collection< ParentClass > c ) {}
      public static void main( String[] args ) {
        Collection< ParentClass > parentClassCollection = new Vector< ParentClass >();
        Collection< ChildClass > childClassCollection = new Vector< ChildClass >();
        processClassCollection( parentClassCollection );
        processClassCollection( childClassCollection ); // Why won't this compile?
    }Every object of type ChildClass is also of type ParentClass, right? Every function that requires a ParentClass object, can be passed a ChildClass, right?
    Then, if a function requires a Collection< ParentClass >, why can't I pass it a Collection< ChildClass >?
    Apparently there is a gap of my understanding, either of inheritance, or of Collections. I would very much appreciate clarification, and any suggestion how to deal with such a case.
    -Ron.

    ejp wrote:
    Why can't a Collection< ChildClass > be used where a Collection< ParentClass > is expected?Because Collection< ChildClass > doesn't extend Collection< ParentClass >. They are separate unrelated types.And I think part of the reason this is not allowed. i.e. you can pass ChildClass to a method which expects a ParentClass. is that java doesn't know if you are just looking at the Collection or modifying it. If you could add anything which extends ParentClass to the collection, the collection of ChildClass would not be valid any more.
    The difference is that in the first case, you are passing the reference by value and changing it in the method has no impact on the caller. However, in the case of the Collection, you could corrupt it if you can add objects which the caller does not expect to be in it.

  • In Explorer drop dowl list is not visible for Entities, Hierarchies, Collection

    I am using SQL Server 2012 MDS on Windows 8.1 Pro. The drop down list of entities, Hierarchies, and collections is not visible on explorer screen. When I hover over the Entity menu the drop down seems to appear but hiding behind the rest of the screen.
    Same issue with Hierarchy and Collections menu. To get to entities list I have to click on explorer menu and then the drop downs start showing up.

    Hi Bhagunde,
    Does the entities, Hierarchies and collections show correctly by using other browsers? Such as FireFox, Chorme and etc.
    Elvis Long
    TechNet Community Support

  • Issue in PowerShell with setting inheritance

    I have a script that I need some assistance in configuring permission inheritance on a collection of folders and subfolders
    Here's what I have so far:
    cls
    Set-Location "C:\Set-ACL"
    $log = "C:\Set-ACL\Folders.txt"
    #Gets the ACL's from a folder with correct permissions set
    $ACL = Get-Acl -Path "C:\Folder\subfolder\subfolder\subfolder"
    $Folders = Get-ChildItem -Path "E:\Folder\Subfolder\*\*" | Select-String -pattern "01-"
    $Folders >> $log
    Start-Process $log -Wait
    #Function to pause script while ignoring certain keys like Ctrl etc.
    'Function Pause4user($M = "Press any key to continue setting ACL's Ctrl + C to quit . . . ") { If ($psISE) { $S = New-Object -ComObject "WScript.Shell"; $B = $S.Popup("Click OK to continue.", 0, "Script Paused", 0); Return }; Write-Host -NoNewline $M; $I = 16, 17, 18, 20, 91, 92, 93, 144, 145, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183; While ($K.VirtualKeyCode -Eq $Null -Or $I -Contains $K.VirtualKeyCode) { $K = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") }; Write-Host }'
    Pause4user
    foreach ($Folder in $Folders)
    Set-ACL -Path $Folders -AclObject $ACL
    Write-Host "ACL's Set"
    Remove-Item $log
    The issue i'm finding is that the permissions I have defined in the variable $ACL are not passed to all subfolders and using -recurse after the Get-ChildItem looks like it would do the job but doesnt work because of the 260 character limit in the path.
    Is there a way to set the permissions on the folders returned in the $Folders variable and inherit these permissions to everything underneath it therefore not running into the path limit?
    P.S. Go easy on the script it was put together quickly!
    Thanks in advance

    Hi Jack,
    you can enforce childfolders accepting inheritance by getting their respective Acl, und using the
    SetAccessRuleProtection method on the target folders.
    If path length is escalating, you may want to consider doing one of these:
    Temporarily create junctions to shorten the path.
    Redesign your storage to be (or appear) more flat
    I think there are other tools out there that can handle the path issue, but I don't have one at hand I can recommend - I have never had to design paths that long.
    Cheers,
    Fred
    Ps.: Some shameless advertisement:
    This function will create junctions for you, if you need something for that. You can remove them afterwards like any other shortcut.
    There's no place like 127.0.0.1

  • Product hierarchy IN MATERIAL MASTER ?

    Hi experts
    Can some body explain me about the Product hierarchy in material master under basic data view .??
    Explain me about the purpose of Product hierarchy??
    Which ind of industries will do with Product hierarchy??
    And What the configuration has to done and where ??
    What are the tyransaction in front to maintain the Product hierarchy??
    In short without any links can some body explain ../
    Many Thanks

    Implement the Product Allocation Functionality
    We are required to implement product allocation functionality in SAP R/3 (Enterprise Version). 
    We tried to do the elaborate steps as per the implementation guide but are not successful. Can you kindly help by giving the simple steps for implementation. 
    Please see if the following helps: 
    Configuration Overview; Allocation Specific Usage 
    1.Allocation Procedure (OV1Z) The product allocation procedure is the parent of the entire allocation process. All materials that are to be included in the allocation scheme are required to have an allocation procedure assigned to it in the material master. In addition, as of release 4.0, it is in the procedure that the method of allocation is defined. The user has the opportunity to set an indicator to identify their choice of two different methods (discrete and cumulative allocation) to evaluate the quantities to be considered for product allocation. 
    2.Allocation Object (OV2Z) The allocation object is the root level of the allocation process where actual data is entered and planned in LIS. The object allows the user to further break down a procedure into smaller parts for future validation of components comprising a specific material 
    3.Allocation Hierarchy Mapping (OV3Z) Primarily, this transaction permits the assignment of an allocation procedure to an LIS information structure. Secondly, a character is assigned to the information structure to permit collective planning. Finally, the user can assign a step level to the procedure and information structure to sequence the order in which allocation quantities are checked. This functionality allows the user the opportunity to check product allocation against several product allocation scenarios, before the required quantity is confirmed 
    4.Define Consumption Periods (OV5Z) The allocation consumption periods functionality is only valid if the allocation method flag has been set (OV1Z). If you have de-selected the method field, this functionality is not available. The consumption window indicates the number of past and future periods to be used in the allocation check. 
    5.Control Product Allocation (OV4Z) In order for the allocation process to function properly, allocation control records are created primarily to map allocation procedure steps to their corresponding objects so that the allocation data records can be located for validation. Secondly, validity periods must be established to indicate when the allocation control records are active. Finally, the user has the option of establishing a conversion factor per allocation control record to accommodate BOM listings of constrained materials 
    6.Activate Allocation for Requirement Class (OVZ0) In order to turn on allocation in the standard order processing functionality, the requirements class must have a flag indicating that allocation is relevant. 
    7.Activate Allocation for Schedule Line Category (OVZ8) In order to turn on allocation in the standard order processing functionality, the schedule line must have a flag indicating that allocation is relevant 
    8.Create Planning Hierarchy (MC61) In order to adequately establish allocation quantities, the user must initially determine the level at which the allocation is to take place and the aggregation factor of the allocation quantities. In this step, the levels for the collective allocation search procedure are also identified. 
    9.Generate Masking Character (OV7Z) Upon completion of the level determination for the planning hierarchy, the collective allocation masking character must be generated to allow aggregation indicators to be established. This transaction simply reads the hierarchy established in the planning table and then generates a collective mask character for each level of the hierarchy 
    10.Modify Planning Hierarchy (MC62) This step is a repeat of MC61 where the initial hierarchy was established. In order to complete the hierarchical set up, the collective allocation (mask character) hierarchy must now be maintained with the appropriate aggregation factors 
    11.Allocation Procedure Assignment to Material Master (MM02) At the root level of the allocation process are the materials. Each material that is to be considered in allocation scenario must be mapped to an allocation procedure. In order entry, then, when a material is entered with a valid allocation procedure in the material master, the allocation data is verified prior to confirming the line item ordered 
    12.List of Suitable Structures (OV9Z) This report is used to identify potential LIS information structures that can be used in the product allocation process. This report simply reads through the data dictionary and selects all the active information structures that contain the field product allocation object (KONOB) as the first field. This data can then be utilized in the mapping transaction (OV3Z) to link the allocation procedure step to an information structure (previous step).

  • Small inheritance question

    Got a small quesiton about inheritance.
    I have a 'User' Class and extending that class is 'Player' and 'Enemy'.
    Player class and Enemy class contains extra stuff like different image and moves different.
    When I create a new player do I create an instance of the 'User' class or the 'Player' class?
    Also,
    If values change in the 'Player' class do the values also change in te 'User' class?
    I am fairly new to java.
    Thanks

    MarcLeslie120 wrote:
    Got a small quesiton about inheritance.
    I have a 'User' Class and extending that class is 'Player' and 'Enemy'.Sounds odd. Aren't some players also your enemy? Or is Player me, and everybody else is Enemy?
    Player class and Enemy class contains extra stuff like different image and moves different.Okay. If it's just different, that's one thing. If it's adding extra methods, you probably don't want to inherit.
    When I create a new player do I create an instance of the 'User' class or the 'Player' class?If it's going to be a Player, you need to create a Player.
    If values change in the 'Player' class do the values also change in te 'User' class?If you mean an instance variable (a non-static member variable), then there aren't two separate objects. There's just one object, that is both a Player and a User. The variable exists only once.
    Your inheritance hierarchy smells funny, but without more details about what these classes represent and what you're trying to accomplish, it's hard to provide concrete advice.

  • Data refresh bug when using inheritance?

    I am getting unexpected behaviour when using the pm.refresh(Object) method.
    Refresh works correctly and reloads data if the lock has been updated on
    tables/objects with no inheritance. However, if I try to use refresh on an
    object that is part of an inheritance hierarchy, the query that is executed
    to get the jdolockx value is missing the table join.
    Example:
    Table Entity
    id
    displayname
    jdolockx
    jdoclassx
    Table Individual (inherits from Entity)
    id
    firstName
    lastName
    jdolockx
    Query executed when calling refresh and passing in Individual
    SELECT
    t0.JDOLOCKX
    FROM
    ENTITY t0,
    INDIVIDUAL t1
    WHERE
    t1.ID = 1151
    Problem
    Missing crucial join t1.ID = t0.ID
    These classes work correctly with correct SQL when inserting/selecting.
    Any help is greatly appreciated.
    Regards
    Nathan Boyes

    Sorry, forgot to mention Kodo version
    Kodo 2.5.3
    SQLServer2000
    "nathan boyes" <[email protected]> wrote in message
    news:bmj215$qq3$[email protected]..
    I am getting unexpected behaviour when using the pm.refresh(Object)method.
    Refresh works correctly and reloads data if the lock has been updated on
    tables/objects with no inheritance. However, if I try to use refresh onan
    object that is part of an inheritance hierarchy, the query that isexecuted
    to get the jdolockx value is missing the table join.
    Example:
    Table Entity
    id
    displayname
    jdolockx
    jdoclassx
    Table Individual (inherits from Entity)
    id
    firstName
    lastName
    jdolockx
    Query executed when calling refresh and passing in Individual
    SELECT
    t0.JDOLOCKX
    FROM
    ENTITY t0,
    INDIVIDUAL t1
    WHERE
    t1.ID = 1151
    Problem
    Missing crucial join t1.ID = t0.ID
    These classes work correctly with correct SQL when inserting/selecting.
    Any help is greatly appreciated.
    Regards
    Nathan Boyes

  • Class Extraction In A Hierarchy with Aggregation

    Hi All,
    I have a situation in which i use a class extraction method to determine which sub class will be intantiated in an inheritance hierarchy in which the root is an aggregate of some other object. (ie the root and its sub class's descriptors are aggregate descriptors). Because a class indicator will not work for me due to multiple classes corresponding to one indicator type, i went for the class extraction method option.
    The problem i am experiencing is that, when i try to map the DB fields of the source object's table to the properties of the aggregate or target object, toplink automatically provides an entry for the class indicator type under the Fields tab prompting me for a class indicator DB column which i do not have or better do not want to provide because i am using a class extractor method and not a class indicator. The only column i can provide here is already used and i cannot have 2 writable mappings to one field.
    I would appreciate any help from the forum.
    Thanks.

    Hi All,
    I have a situation in which i use a class extraction method to determine which sub class will be intantiated in an inheritance hierarchy in which the root is an aggregate of some other object. (ie the root and its sub class's descriptors are aggregate descriptors). Because a class indicator will not work for me due to multiple classes corresponding to one indicator type, i went for the class extraction method option.
    The problem i am experiencing is that, when i try to map the DB fields of the source object's table to the properties of the aggregate or target object, toplink automatically provides an entry for the class indicator type under the Fields tab prompting me for a class indicator DB column which i do not have or better do not want to provide because i am using a class extractor method and not a class indicator. The only column i can provide here is already used and i cannot have 2 writable mappings to one field.
    I would appreciate any help from the forum.
    Thanks.

  • A question about inheritance and overwriting

    Hello,
    My question is a bit complicated, so let's first explain the situation with a little pseudo code:
    class A {...}
    class B extends A{...}
    class C extends B {...}
    class D extends C {...}
    class E extends B {...}
    class F {
      ArrayList objects; // contains only objects of classes A to E
      void updateObjects() {
        for(int i = 0; i < objects.size(); i++)
          A object = (A) objects.get(i); // A as superclass
         update(A);
      void update(A object) { ... }
      void update(B object) { ... }
      void update(D object) { ... }
    }My question now:
    For all objects in the objects list the update(? object) method is called. Is it now called with parameter class A each time because the object was casted to A before, or is Java looking for the best fitting routine depending on the objects real class?
    Regards,
    Kai

    Why extends is evil
    Improve your code by replacing concrete base classes with interfaces
    Summary
    Most good designers avoid implementation inheritance (the extends relationship) like the plague. As much as 80 percent of your code should be written entirely in terms of interfaces, not concrete base classes. The Gang of Four Design Patterns book, in fact, is largely about how to replace implementation inheritance with interface inheritance. This article describes why designers have such odd beliefs. (2,300 words; August 1, 2003)
    By Allen Holub
    http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-toolbox.html
    Reveal the magic behind subtype polymorphism
    Behold polymorphism from a type-oriented point of view
    http://www.javaworld.com/javaworld/jw-04-2001/jw-0413-polymorph_p.html
    Summary
    Java developers all too often associate the term polymorphism with an object's ability to magically execute correct method behavior at appropriate points in a program. That behavior is usually associated with overriding inherited class method implementations. However, a careful examination of polymorphism demystifies the magic and reveals that polymorphic behavior is best understood in terms of type, rather than as dependent on overriding implementation inheritance. That understanding allows developers to fully take advantage of polymorphism. (3,600 words) By Wm. Paul Rogers
    multiple inheritance and interfaces
    http://www.javaworld.com/javaqa/2002-07/02-qa-0719-multinheritance.html
    http://java.sun.com/docs/books/tutorial/java/interpack/interfaceDef.html
    http://www.artima.com/intv/abcs.html
    http://www.artima.com/designtechniques/interfaces.html
    http://www.javaworld.com/javaqa/2001-03/02-qa-0323-diamond_p.html
    http://csis.pace.edu/~bergin/patterns/multipleinheritance.html
    http://www.cs.rice.edu/~cork/teachjava/2002/notes/current/node48.html
    http://www.cyberdyne-object-sys.com/oofaq2/DynInh.htm
    http://www.gotw.ca/gotw/037.htm
    http://www.javajunkies.org/index.pl?lastnode_id=2826&node_id=2842
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=001588
    http://pbl.cc.gatech.edu/cs170/75
    Downcasting and run-time
    http://www.codeguru.com/java/tij/tij0083.shtml
    type identification
    Since you lose the specific type information via an upcast (moving up the inheritance hierarchy), it makes sense that to retrieve the type information ? that is, to move back down the inheritance hierarchy ? you use a downcast. However, you know an upcast is always safe; the base class cannot have a bigger interface than the derived class, therefore every message you send through the base class interface is guaranteed to be accepted. But with a downcast, you don?t really know that a shape (for example) is actually a circle. It could instead be a triangle or square or some other type.
    To solve this problem there must be some way to guarantee that a downcast is correct, so you won?t accidentally cast to the wrong type and then send a message that the object can?t accept. This would be quite unsafe.
    In some languages (like C++) you must perform a special operation in order to get a type-safe downcast, but in Java every cast is checked! So even though it looks like you?re just performing an ordinary parenthesized cast, at run time this cast is checked to ensure that it is in fact the type you think it is. If it isn?t, you get a ClassCastException. This act of checking types at run time is called run-time type identification (RTTI). The following example demonstrates the behavior of RTTI:
    //: RTTI.java
    // Downcasting & Run-Time Type
    // Identification (RTTI)
    import java.util.*;
    class Useful {
    public void f() {}
    public void g() {}
    class MoreUseful extends Useful {
    public void f() {}
    public void g() {}
    public void u() {}
    public void v() {}
    public void w() {}
    public class RTTI {
    public static void main(String[] args) {
    Useful[] x = {
    new Useful(),
    new MoreUseful()
    x[0].f();
    x[1].g();
    // Compile-time: method not found in Useful:
    //! x[1].u();
    ((MoreUseful)x[1]).u(); // Downcast/RTTI
    ((MoreUseful)x[0]).u(); // Exception thrown
    } ///:~
    As in the diagram, MoreUseful extends the interface of Useful. But since it?s inherited, it can also be upcast to a Useful. You can see this happening in the initialization of the array x in main( ). Since both objects in the array are of class Useful, you can send the f( ) and g( ) methods to both, and if you try to call u( ) (which exists only in MoreUseful) you?ll get a compile-time error message.
    If you want to access the extended interface of a MoreUseful object, you can try to downcast. If it?s the correct type, it will be successful. Otherwise, you?ll get a ClassCastException. You don?t need to write any special code for this exception, since it indicates a programmer error that could happen anywhere in a program.
    There?s more to RTTI than a simple cast. For example, there?s a way to see what type you?re dealing with before you try to downcast it. All of Chapter 11 is devoted to the study of different aspects of Java run-time type identification.
    One common principle used to determine when inheritence is being applied correctly is the Liskov Substitution Principle (LSP). This states that an instance of a subclass should be substitutible for an instance of the base class in all circumstances. If not, then it is generally inappropriate to use inheritence - or at least not without properly re-distributing responsibilities across your classes.
    Another common mistake with inheritence are definitions like Employee and Customer as subclasses of People (or whatever). In these cases, it is generally better to employ the Party-Roll pattern where a Person and an Organization or types of Party and a party can be associated with other entities via separate Role classes of which Employee and Customer are two examples.

  • JOINED inheritance; no primary key joins being generated?

    I'm working with the Sun Application Server version 9. I'm using the javax.persistence APIs in conjunction with EJB3. I've told the app server to generate tables automatically (via toplink; I've set it to drop-and-create tables).
    I have a three-level-deep inheritance hierarchy (like Person extends Party extends BaseObject). BaseObject has its @Inheritance strategy set to JOINED. Everything comes out OK, but I am not seeing any foreign keys being created between the subclass primary keys.
    That is, there is no foreign key that enforces that a Person's PK must refer to a Party's PK, which must, in turn, refer to a BaseObject's PK.
    I've also tried using the @PrimaryKeyJoin annotation, but that doesn't seem to affect the outcome.
    So far this is not a big deal, but I'd like to know if it is a bug in Glassfish/Sun App Server or whether this is by design.
    Thanks,
    Laird

    OK,
    My apologies it seems in the aim of simplifying the explanation of what is
    occuring I missed some important pieces of information. It seems as though
    the redundant joins are only occuring when do a mapping that contains a
    constant value.
    ie
    <field name="classB">
    <jdbc-field-map type="one-one" column.columnA="columnA"
    column.columnB="XXXXXXXX" />
    </field>
    And looking at the Section 7.5 of the reference manual the SQL generated
    has the redundant join also. Can someone explain why the join is necessary
    in these circumstances. All the values of the join columns in tableB are
    known, so why does tableA need to be referenced at all?

  • SQL incorrect using pm.refresh on inheritance tree 2.5.3

    Hi, Sorry for the repeat post, but didn't get a response from the last one
    and I'm still searching for a solution
    I am getting unexpected behaviour when using the pm.refresh(Object) method.
    Refresh works correctly and reloads data if the lock has been updated on
    tables/objects with no inheritance. However, if I try to use refresh on an
    object that is part of an inheritance hierarchy, the query that is executed
    to get the jdolockx value is missing the table join.
    Example:
    Table Entity
    id
    displayname
    jdolockx
    jdoclassx
    Table Individual (inherits from Entity)
    id
    firstName
    lastName
    jdolockx
    Query executed when calling refresh and passing in Individual
    SELECT
    t0.JDOLOCKX
    FROM
    ENTITY t0,
    INDIVIDUAL t1
    WHERE
    t1.ID = 1151
    Problem
    Missing crucial join t1.ID = t0.ID
    These classes work correctly with correct SQL when inserting/selecting.
    Any help is greatly appreciated.
    Regards
    Nathan Boyes

    I've changed the metadata configuration so that jdolockx is defined only in
    the base class and the query is still missing the join.
    I have attached the metadata files I'm using.
    (SELECT t0.JDOLOCKX FROM Bean t0, MQBean t1 WHERE t1.id = ?):
    [reused=1;params={(int)460}]
    "Stephen Kim" <[email protected]> wrote in message
    news:[email protected]...
    How is your metadata configured? JDOLOCKX should only be defined at the
    base class level.
    begin 666 MQBean.jdo
    M/#]X;6P@=F5R<VEO;CTB,2XP(B!E;F-O9&EN9STB551&+3@B/SX-"@T*/&ID
    M;SX-"B @(" \<&%C:V%G92!N86UE/2)T82YE=F5N="(^#0H@(" @(" @(#QC
    M;&%S<R!N86UE/2)-44)E86XB('!E<G-I<W1E;F-E+6-A<&%B;&4M<W5P97)C
    M;&%S<STB0F5A;B(@:61E;G1I='DM='EP93TB87!P;&EC871I;VXB/@T*(" @
    M(" @(" @(" @/&5X=&5N<VEO;B!V96YD;W(M;F%M93TB:V]D;R(@:V5Y/2)T
    M86)L92(@=F%L=64](DU10F5A;B(O/@T*(" @(" @(" @(" @/&9I96QD(&YA
    M;64](G-E<G9E<B(^#0H@(" @(" @(" @(" @(" @/&5X=&5N<VEO;B!V96YD
    M;W(M;F%M93TB:V]D;R(@:V5Y/2)I9"UD871A+6-O;'5M;B(@=F%L=64](E-%
    M4E9%4DE$(B\^#0H@(" @(" @(" @(" \+V9I96QD/@T*(" @(" @(" @(" @
    M/&9I96QD(&YA;64](F5V96YT5'EP92(^#0H@(" @(" @(" @(" @(" @/&5X
    M=&5N<VEO;B!V96YD;W(M;F%M93TB:V]D;R(@:V5Y/2)I9"UD871A+6-O;'5M
    M;B(@=F%L=64](D5614Y45%E014E$(B\^#0H@(" @(" @(" @(" \+V9I96QD
    M/@T*(" @(" @(" @(" @/&9I96QD(&YA;64](G%U975E36%N86=E<B(^#0H@
    M(" @(" @(" @(" @(" @/&5X=&5N<VEO;B!V96YD;W(M;F%M93TB:V]D;R(@
    M:V5Y/2)D871A+6-O;'5M;B(@=F%L=64](E%5155%34%.04=%4B(O/@T*(" @
    M(" @(" @(" @/"]F:65L9#X-"B @(" @(" @(" @(#QF:65L9"!N86UE/2)Q
    M=65U94YA;64B/@T*(" @(" @(" @(" @(" @(#QE>'1E;G-I;VX@=F5N9&]R
    M+6YA;64](FMO9&\B(&ME>3TB9&%T82UC;VQU;6XB('9A;'5E/2)1545514Y!
    M344B+SX-"B @(" @(" @(" @(#PO9FEE;&0^#0H@(" @(" @(" @(" \9FEE
    M;&0@;F%M93TB8VAA;FYE;"(^#0H@(" @(" @(" @(" @(" @/&5X=&5N<VEO
    M;B!V96YD;W(M;F%M93TB:V]D;R(@:V5Y/2)D871A+6-O;'5M;B(@=F%L=64]
    M(D-(04Y.14PB+SX-"B @(" @(" @(" @(#PO9FEE;&0^#0H@(" @(" @(" @
    M(" \9FEE;&0@;F%M93TB;VY-97-S86=E365T:&]D(CX-"B @(" @(" @(" @
    M(" @(" \97AT96YS:6]N('9E;F1O<BUN86UE/2)K;V1O(B!K97D](F1A=&$M
    M8V]L=6UN(B!V86QU93TB3TY-15-304=%34542$]$(B\^#0H@(" @(" @(" @
    M(" \+V9I96QD/@T*(" @(" @(" \+V-L87-S/@T*(" @(#PO<&%C:V%G93X-
    '"CPO:F1O/@``
    `
    end
    begin 666 Bean.jdo
    M/#]X;6P@=F5R<VEO;CTB,2XP(B!E;F-O9&EN9STB551&+3@B/SX-"@T*/&ID
    M;SX-"B @(" \<&%C:V%G92!N86UE/2)T82YE=F5N="(^#0H@(" @(" @(#QC
    M;&%S<R!N86UE/2)"96%N(B!O8FIE8W1I9"UC;&%S<STB=&$N:60N0F5A;DE$
    M(CX-"B @(" @(" @(" @(#QE>'1E;G-I;VX@=F5N9&]R+6YA;64](FMO9&\B
    M(&ME>3TB8VQA<W,M8V]L=6UN(B!V86QU93TB2D1/0TQ!4U-8(B\^#0H@(" @
    M(" @(" @(" \97AT96YS:6]N('9E;F1O<BUN86UE/2)K;V1O(B!K97D](FQO
    M8VLM8V]L=6UN(B!V86QU93TB2D1/3$]#2U@B+SX-"B @(" @(" @(" @(#QE
    M>'1E;G-I;VX@=F5N9&]R+6YA;64](FMO9&\B(&ME>3TB=&%B;&4B('9A;'5E
    M/2)"96%N(B\^#0H@(" @(" @(" @(" \9FEE;&0@;F%M93TB:60B('!R:6UA
    M<GDM:V5Y/2)T<G5E(CX-"B @(" @(" @(" @(" @(" \97AT96YS:6]N('9E
    M;F1O<BUN86UE/2)K;V1O(B!K97D](F1A=&$M8V]L=6UN(B!V86QU93TB:60B
    M+SX-"B @(" @(" @(" @(#PO9FEE;&0^#0H@(" @(" @(" @(" \9FEE;&0@
    M;F%M93TB8V]N=')O;&QE<B(^#0H@(" @(" @(" @(" @(" @/&5X=&5N<VEO
    M;B!V96YD;W(M;F%M93TB:V]D;R(@:V5Y/2)I9"UD871A+6-O;'5M;B(@=F%L
    M=64](D-/3E123TQ,15))1"(O/@T*(" @(" @(" @(" @/"]F:65L9#X-"B @
    M(" @(" @(" @(#QF:65L9"!N86UE/2)E;F%B;&5D(CX-"B @(" @(" @(" @
    M(" @(" \97AT96YS:6]N('9E;F1O<BUN86UE/2)K;V1O(B!K97D](F1A=&$M
    M8V]L=6UN(B!V86QU93TB14Y!0DQ%1"(O/@T*(" @(" @(" @(" @/"]F:65L
    M9#X-"B @(" @(" @(" @(#QF:65L9"!N86UE/2)P;VQL:6YG26YT97)V86PB
    M/@T*(" @(" @(" @(" @(" @(#QE>'1E;G-I;VX@=F5N9&]R+6YA;64](FMO
    M9&\B(&ME>3TB9&%T82UC;VQU;6XB('9A;'5E/2)03TQ,24Y'24Y415)604PB
    M+SX-"B @(" @(" @(" @(#PO9FEE;&0^#0H@(" @(" @(#PO8VQA<W,^#0H@
    5(" @/"]P86-K86=E/@T*/"]J9&\^
    `
    end

  • Extendable event/listener hierarchy - alternatives to double dispatch?

    In the course of a research project we are currently implementing an event based integration framework. We would like to offer an event hierarchy that should be extendable by the user through inheritance. Also, the user should be able to implement and register event listeners that offer a number of overloaded methods to handle different incoming event types, including the user defined ones. The event listeners are also inherited from an existing listener hierarchy. We want to allow for the user to implement handler methods for only selected subtrees of the event hierarchy, leaving the rest to the default listener implementation.
    We would like to avoid using reflection in order to keep the code portable to C++.
    In a first approach, we tried to solve this using double dispatch, which does not work due to the extendability of the hierarchy. The new event types would need to be added to the base listener interface.
    Currently, we are thinking about implementing a table based dispatching, that requires the user to register new event types before using them. But this might become a bit complicated, as we would like the dispatching to respect the inheritance hierarchy (but not use reflection).
    Since this will be an essential part of the framework, which can not easily be changed, we would be glad to hear your opinion what might be the best approach to this problem. Are there any new features in the Java language we have missed, that might allow to use double dispatch here (e.g. generics)? Are there any generic approaches to table based dispatching, that avoid reflection? Are we totally missing something else?
    Thanks a lot in advance,
    Jan

    Hi,
    to do so, you need to declare those fields in the form CREATE_HIERARCHY.
    For example, to add FLDATE node, you should do:
        ON CHANGE OF LS_SFLIGHT-CARRID.
          PERFORM ADD_CARRID_LINE USING    LS_SFLIGHT
                                  CHANGING L_CARRID_KEY.
        ENDON.
        ON CHANGE OF LS_SFLIGHT-CONNID.
          PERFORM ADD_CONNID_LINE USING    LS_SFLIGHT
                                           L_CARRID_KEY
                                  CHANGING L_CONNID_KEY.
        ENDON.
        ON CHANGE OF LS_SFLIGHT-FLDATE.
          PERFORM ADD_FLDATE_LINE USING    LS_SFLIGHT
                                           L_CONNID_KEY
                                  CHANGING L_FLDATE_KEY.
        ENDON.
        ON CHANGE OF LS_SFLIGHT-PRICE.
          PERFORM ADD_PRICE_LINE USING     LS_SFLIGHT
                                           L_FLDATE_KEY
                                  CHANGING L_PRICE_KEY.
        ENDON.
    and then create the new FORMS PERFORM ADD_PRICE_LINE and
    PERFORM ADD_FLDATE_LINE  by copy of the existent
    PERFORM ADD_CONNID_LINE and change the  L_NODE_TEXT in the form.
    I suposed you are new to ALV's, so i have a sugestion for you.
    Instead of  CL_GUI_ALV_TREE try to use some examples of CL_GUI_ALV_TREE_SIMPLE. It's much more simple to understand and to work with. For example Report BCALV_TREE_SIMPLE_DEMO.
    In this case, to add more nodes to the the you just need to add 3 lines of code in
    perform build_sort_table.
    Regards,

  • Collection during import automatic in lightroom

    hey
    is here a way to get lightroom to automatic create a collection set with the same name as the folder where the new photos are storred
    cheers

    Subsea Lorenzen wrote:
    Well the idea was to have it so that all the high rated images would be easier to find
    There are plugins which do various things with collection sets, smart collections, mirroring disk folder hierarchy as collection sets... - but I would need to better understand what your aim is, before I could advise. For example, having a collection set which mirrors your folder hierarchy doesn't make it any easier to find high-rated images.
    I mean, the ratings filter makes it easier to find high-rated images - have you tried that?
    You also said:
    Subsea Lorenzen wrote:
    there i had a project (collection) with a smart folder inside
    i had a templet that i just used over and over agin and i was hoping to find a script or so that could do the same in lightroom
    Are you familiar with Lightroom's smart collections? There are "scripts" and such which may help to streamline, but at this point - I wouldn't know what to recommend.
    Subsea Lorenzen wrote:
    i would go straight to the iPad version aswell
    Consider TreeSyncPublisher (free by me): you define one set of collections which may or may not include smart collections, which can be used (re-used) when publishing/exporting copies for website, ipad, iphone, ... - so you don't have to synchronize multiple publish collections...... - I'm finishing up to release a new version which will polish it up some more.. Again, there are other options which may be better suited to your circumstances - dunno, yet..
    Rob

Maybe you are looking for

  • Software recommendation to remove duplicate files on HDD?

    Hello everyone I downloaded Singular for this prupose, but to be honest, it's not done me any good. I have transferred a lot of files over from various external HDDs and disk images, and in Logic Studio actually have duplicate channel strip settings

  • Attaching an external eSATA drive to my Mac Pro?

    Need to attach a LaCie 1TB eSATA drive to my Mac Pro for video editing with Final Cut Pro. So can I just buy a regular PC based eSATA card to conect it to the Mac Pro. Like this one on Amazon http://www.amazon.co.uk/Sitecom-CN-042-eSATA-PCI-Card/dp/B

  • ME57 ALV Grid adding some custom fields (columns)

    Hi all, does anyone know if it is possible to add some custom col's to the ALV where i see  the Overview of PO Requests in ME57 ? seems to me that i have to find a possibilty to expand the structure MEREQ3214 . can i do this with the exit MEREQ001 ? 

  • IPhoto '09 - no longer buy pictures or books

    For some reason we cannot purchase photos or books form iPhoto '09. It keeps responding that there is a problem with our billing account. It does work on a MAC with iPhoto '11

  • Re: ToolKit 2.5, sample app

    Hi Bill, The video file is stored locally with the installation of the WTK. In the Beta2, the location of the file is here: C:\WTK25-Beta2\apps\MobileMediaAPI\res\video. Stay tuned as we'll be releasing the final version of WTK 2.5 soon. Thanks, E-mi