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