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