Skip to content

Commit

Permalink
feat: try this
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-kir-wwu committed Dec 13, 2023
1 parent 39ba434 commit 14dd3e7
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/main/java/org/erathor/api/controller/IExecutionController.java
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
package org.erathor.api.controller;

import org.erathor.api.model.IExecution;
import org.erathor.api.model.IModel;

import java.util.List;
import java.util.Optional;

public interface IExecutionController {
public interface IExecutionController<I extends IExecution> {

public IExecution get(Integer id);
public I get(Integer id);

public void add(IExecution model);
public Optional<I> getOptional(Integer id);

public void remove(IExecution model);
public void add(I model);

public Optional<IExecution> read(Integer id);
public void remove(I model);

public void create(IExecution model);
public void create(I model);

public void update(IExecution model);
public void update(I model);

public void delete(IExecution model);
public void delete(I model);

public List<IExecution> readAll();
public List<I> readAll();
}

0 comments on commit 14dd3e7

Please sign in to comment.