Examples of IEntity


Examples of org.rssowl.core.persist.IEntity

   * News deleted, needs to delete description
   * on handle feed reloaded, if description.getValue is null, delete
   */

  private void processCreatingEvent(EventArgs args) {
    IEntity entity = getEntity(args);

    if (entity != null) {
      setId(entity);
      if (entity instanceof BookMark)
        initBookMark((BookMark) entity);
View Full Code Here

Examples of org.sf.bee.commons.persistence.IEntity

            if (null == em
                    || null == entity
                    || !(entity instanceof IEntity)) {
                return null;
            }
            final IEntity ientity = (IEntity) entity;
            final long id = null != ientity.getId() ? ientity.getId() : 0L;
            T result = null;
            //-- merge entity --//
            if (id > 0L) {
                try {
                    result = em.merge(entity);
View Full Code Here

Examples of pl.tomaszdziurko.itemdirectory.domain.entities.IEntity

    this.propertyName = propertyName;
  }

  @Override
  protected void onValidate(IValidatable<PropertyClass> validatable) {
    IEntity entity = dao.findByProperty(propertyName, validatable.getValue());
   
    if(entity != null && entity.getId().longValue() != entityIdToIgnore) {
      error(validatable);
    }
   
    StringValidator a;
  }
View Full Code Here

Examples of ua.com.jpy.entity.IEntity

    } else {
      if(entityForSave != null && id != null) {
        log.info("Find document with id: " + id + " in collection with name: " + ((IEntity) entityForSave).getClass().getName());
        Query<? extends IEntity> query = getDatastore().createQuery(((IEntity) entityForSave).getClass());
        query = query.field("id").equal(id);
        IEntity entity = (IEntity) query.get();
        if(entity == null) {
          log.info("Can not find document in collection: " + ((IEntity) entityForSave).getClass().getName());
          return null;
        } else {
          log.info("We found document with id: " + id + " in collection: " + entity.getClass().getName());
          return entity;
        }
      }
    }
    return null;
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.