Examples of readProperty()


Examples of org.apache.cayenne.reflect.ToOneProperty.readProperty()

                        ToOneProperty targetProperty = (ToOneProperty) targetDescriptor
                                .getProperty(property.getName());
                        Object oldTarget = targetProperty.isFault(target)
                                ? null
                                : targetProperty.readProperty(target);
                        targetProperty
                                .writeProperty(target, oldTarget, destinationTarget);
                    }
                }
View Full Code Here

Examples of org.apache.cayenne.reflect.ToOneProperty.readProperty()

                        ToOneProperty targetProperty = (ToOneProperty) targetDescriptor
                                .getProperty(property.getName());
                        Object oldTarget = targetProperty.isFault(target)
                                ? null
                                : targetProperty.readProperty(target);
                        targetProperty
                                .writeProperty(target, oldTarget, destinationTarget);
                    }
                }
View Full Code Here

Examples of org.apache.cayenne.reflect.ToOneProperty.readProperty()

                        ToOneProperty targetProperty = (ToOneProperty) targetDescriptor
                                .getProperty(property.getName());
                        Object oldTarget = targetProperty.isFault(target)
                                ? null
                                : targetProperty.readProperty(target);
                        targetProperty
                                .writeProperty(target, oldTarget, destinationTarget);
                    }
                }
View Full Code Here

Examples of org.apache.cayenne.reflect.ToOneProperty.readProperty()

                        ToOneProperty targetProperty = (ToOneProperty) targetDescriptor
                                .getProperty(property.getName());
                        Object oldTarget = targetProperty.isFault(target)
                                ? null
                                : targetProperty.readProperty(target);
                        targetProperty
                                .writeProperty(target, oldTarget, destinationTarget);
                    }
                }
View Full Code Here

Examples of org.apache.cayenne.reflect.ToOneProperty.readProperty()

                        ToOneProperty targetProperty = (ToOneProperty) targetDescriptor
                                .getProperty(property.getName());
                        Object oldTarget = targetProperty.isFault(target)
                                ? null
                                : targetProperty.readProperty(target);
                        targetProperty
                                .writeProperty(target, oldTarget, destinationTarget);
                    }
                }
View Full Code Here

Examples of org.apache.cayenne.testdo.testmap.Artist.readProperty()

                .getSharedSnapshotCache()
                .getCachedSnapshot(a1.getObjectId()));

        assertEquals(PersistenceState.HOLLOW, a1.getPersistenceState());

        assertTrue(((ValueHolder) a1.readProperty(Artist.PAINTING_ARRAY_PROPERTY))
                .isFault());
    }

    public void testRefreshObjectToMany() throws Exception {
        deleteTestData();
View Full Code Here

Examples of org.apache.cayenne.testdo.testmap.Artist.readProperty()

        assertEquals(PersistenceState.HOLLOW, a1.getPersistenceState());
        assertEquals(PersistenceState.HOLLOW, a2.getPersistenceState());

        assertTrue(((ValueHolder) a1.readProperty(Artist.PAINTING_ARRAY_PROPERTY))
                .isFault());
        assertTrue(((ValueHolder) a2.readProperty(Artist.PAINTING_ARRAY_PROPERTY))
                .isFault());
    }

    public void testRefreshCollectionToOne() throws Exception {
        deleteTestData();
View Full Code Here

Examples of org.apache.cayenne.testdo.testmap.Painting.readProperty()

            public void execute() {
                assertEquals(1, paintings.size());

                Painting p2 = paintings.get(0);
                assertNull(p2.readProperty(Painting.TO_ARTIST_PROPERTY));
            }
        });
    }

    public void testPrefetchToOneSharedCache() throws Exception {
View Full Code Here

Examples of org.apache.cayenne.testdo.testmap.Painting.readProperty()

                assertEquals(1, results.size());

                // see that artists are resolved...

                Painting px = results.get(0);
                Artist ax = (Artist) px.readProperty(Painting.TO_ARTIST_PROPERTY);
                assertEquals(PersistenceState.COMMITTED, ax.getPersistenceState());
            }
        });
    }
View Full Code Here

Examples of org.apache.felix.bundlerepository.DataModelHelper.readProperty()

          return null;
        }
      });
     
      try {
        properties.add(helper.readProperty(propXML));
      } catch (Exception e) {
        // Do nothing and hope it OBR doesn't generate XML it can't parse.
      }
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.