Package com.avaje.ebean.bean

Examples of com.avaje.ebean.bean.EntityBeanIntercept.findProperty()


      this.versionPropertyIndex = -1;
      this.unloadProperties = new int[0];
     
    } else {
      EntityBeanIntercept ebi = prototypeEntityBean._ebean_getIntercept();
      this.idPropertyIndex = (idProperty == null) ? -1 : ebi.findProperty(idProperty.getName());
      this.versionPropertyIndex = (versionProperty == null) ? -1 : ebi.findProperty(versionProperty.getName());
      this.unloadProperties = derivePropertiesToUnload(prototypeEntityBean);
    }
  }
 
View Full Code Here


      this.unloadProperties = new int[0];
     
    } else {
      EntityBeanIntercept ebi = prototypeEntityBean._ebean_getIntercept();
      this.idPropertyIndex = (idProperty == null) ? -1 : ebi.findProperty(idProperty.getName());
      this.versionPropertyIndex = (versionProperty == null) ? -1 : ebi.findProperty(versionProperty.getName());
      this.unloadProperties = derivePropertiesToUnload(prototypeEntityBean);
    }
  }
 
  /**
 
View Full Code Here

   
    EntityBean owner = (EntityBean)emain;
    EntityBeanIntercept ebi= owner._ebean_getIntercept();
   
    // hooks the embeddable bean back to the owner
    int embeddablePropertyIndex = ebi.findProperty("embeddable");
    Assert.assertTrue(embeddablePropertyIndex > -1);
    ((EntityBean)embeddable)._ebean_getIntercept().setEmbeddedOwner(owner, embeddablePropertyIndex);
    return embeddable;
  }
}
View Full Code Here

    PFile persistentFile = new PFile("test.txt", new PFileContent("test".getBytes()));

    EntityBean eb = (EntityBean)persistentFile;
    EntityBeanIntercept ebi = eb._ebean_getIntercept();
   
    int namePos = ebi.findProperty("name");
    int fileContentPos = ebi.findProperty("fileContent");
   
    Assert.assertTrue(ebi.isLoadedProperty(namePos));
    Assert.assertTrue(ebi.isLoadedProperty(fileContentPos));
   
View Full Code Here

    EntityBean eb = (EntityBean)persistentFile;
    EntityBeanIntercept ebi = eb._ebean_getIntercept();
   
    int namePos = ebi.findProperty("name");
    int fileContentPos = ebi.findProperty("fileContent");
   
    Assert.assertTrue(ebi.isLoadedProperty(namePos));
    Assert.assertTrue(ebi.isLoadedProperty(fileContentPos));
   
  }
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.