Package org.apache.cayenne.util

Examples of org.apache.cayenne.util.PersistentObjectList


        ClientMtTable1 result = (ClientMtTable1) results.get(0);

        List<?> holder = result.getTable2ArrayDirect();
        assertNotNull(holder);
        assertTrue(holder instanceof PersistentObjectList);
        PersistentObjectList objectHolder = (PersistentObjectList) holder;
        assertFalse(objectHolder.isFault());
        assertEquals(2, objectHolder.size());
    }
View Full Code Here


    public List<Painting> getPaintings() {
        if(objectContext != null) {
            objectContext.prepareForAccess(this, "paintings", true);
        } else if (this.paintings == null) {
          this.paintings = new PersistentObjectList(this, "paintings");
    }

        return paintings;
    }
View Full Code Here

    }
    public void addToPaintings(Painting object) {
        if(objectContext != null) {
            objectContext.prepareForAccess(this, "paintings", true);
        } else if (this.paintings == null) {
          this.paintings = new PersistentObjectList(this, "paintings");
    }

        this.paintings.add(object);
    }
View Full Code Here

    }
    public void removeFromPaintings(Painting object) {
        if(objectContext != null) {
            objectContext.prepareForAccess(this, "paintings", true);
        } else if (this.paintings == null) {
          this.paintings = new PersistentObjectList(this, "paintings");
    }

        this.paintings.remove(object);
    }
View Full Code Here

    public List<Painting> getPaintings() {
        if(objectContext != null) {
            objectContext.prepareForAccess(this, "paintings", true);
        } else if (this.paintings == null) {
          this.paintings = new PersistentObjectList(this, "paintings");
    }

        return paintings;
    }
View Full Code Here

    }
    public void addToPaintings(Painting object) {
        if(objectContext != null) {
            objectContext.prepareForAccess(this, "paintings", true);
        } else if (this.paintings == null) {
          this.paintings = new PersistentObjectList(this, "paintings");
    }

        this.paintings.add(object);
    }
View Full Code Here

    }
    public void removeFromPaintings(Painting object) {
        if(objectContext != null) {
            objectContext.prepareForAccess(this, "paintings", true);
        } else if (this.paintings == null) {
          this.paintings = new PersistentObjectList(this, "paintings");
    }

        this.paintings.remove(object);
    }
View Full Code Here

                    "ValueHolders for non-persistent objects are not supported.",
                    this,
                    object);
        }

        return new PersistentObjectList((Persistent) object, getName());
    }
View Full Code Here

        super(owner, targetDescriptor, accessor, reverseName);
    }

    @Override
    protected ValueHolder createValueHolder(Persistent relationshipOwner) {
        return new PersistentObjectList(relationshipOwner, getName());
    }
View Full Code Here

                    "ValueHolders for non-persistent objects are not supported.",
                    this,
                    object);
        }

        return new PersistentObjectList((Persistent) object, getName());
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.util.PersistentObjectList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.