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