Package com.avaje.ebean.bean

Examples of com.avaje.ebean.bean.EntityBean


      setValue(bean, assocBean);
    }
  }

    public boolean isReference(Object detailBean) {
      EntityBean eb = (EntityBean)detailBean;
      return targetDescriptor.isReference(eb._ebean_getIntercept());     
    }
View Full Code Here


   * Generate and bind the insert statement.
   */
  public void bind() throws SQLException {

    BeanDescriptor<?> desc = persistRequest.getBeanDescriptor();
    EntityBean bean = persistRequest.getEntityBean();

    Object idValue = desc.getId(bean);

    boolean withId = !DmlUtil.isNullOrZero(idValue);

View Full Code Here

        DerivedRelationshipData derivedRelationshipData = derivedRelationships.get(i);

        BeanDescriptor<?> beanDescriptor = ebeanServer.getBeanDescriptor(derivedRelationshipData.getBean().getClass());
       
        BeanProperty prop = beanDescriptor.getBeanProperty(derivedRelationshipData.getLogicalName());
        EntityBean entityBean = (EntityBean)derivedRelationshipData.getBean();
        entityBean._ebean_getIntercept().markPropertyAsChanged(prop.getPropertyIndex());
       
        ebeanServer.update(entityBean, transaction);       
      }
    }
  }
View Full Code Here

    }
  }

  public Object readData(DataInput dataInput) throws IOException {

    EntityBean embId = idDesc.createEntityBean();
    boolean notNull = true;

    for (int i = 0; i < props.length; i++) {
      Object value = props[i].readData(dataInput);
      props[i].setValue(embId, value);
View Full Code Here

    }
  }

  public Object read(DbReadContext ctx) throws SQLException {

    EntityBean embId = idDesc.createEntityBean();
    boolean notNull = true;

    for (int i = 0; i < props.length; i++) {
      Object value = props[i].readSet(ctx, embId, null);
      if (value == null) {
View Full Code Here

TOP

Related Classes of com.avaje.ebean.bean.EntityBean

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.