Example #1
0
 @Override
 public Entity tryGetMasterModelEntity(Long id) {
   if (getMasterModel() == null) {
     return null;
   }
   return dataAccessService.getMasterModelEntity(this, id);
 }
Example #2
0
 @Override
 public Entity save(final Entity entity) {
   if (!this.equals(entity.getDataDefinition())) {
     throw new IllegalStateException("Incompatible types");
   }
   return dataAccessService.save(this, entity);
 }
Example #3
0
 @Override
 public List<Entity> deactivate(final Long... ids) {
   if (activable) {
     return dataAccessService.deactivate(this, ids);
   } else {
     return Collections.emptyList();
   }
 }
Example #4
0
 @Override
 public List<Entity> copy(final Long... id) {
   return dataAccessService.copy(this, id);
 }
Example #5
0
 @Override
 public Entity get(final Long id) {
   return dataAccessService.get(this, id);
 }
Example #6
0
 @Override
 public Entity getMasterModelEntity(Long id) {
   return dataAccessService.getMasterModelEntity(this, id);
 }
Example #7
0
 @Override
 public void moveTo(final Long id, final int position) {
   dataAccessService.moveTo(this, id, position);
 }
Example #8
0
 @Override
 public void move(final Long id, final int offset) {
   dataAccessService.move(this, id, offset);
 }
Example #9
0
 @Override
 public SearchResult find(final SearchCriteria searchCriteria) {
   return dataAccessService.find(searchCriteria);
 }
Example #10
0
 @Override
 public EntityOpResult delete(final Long... id) {
   return dataAccessService.delete(this, id);
 }