-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39ba434
commit 14dd3e7
Showing
1 changed file
with
9 additions
and
10 deletions.
There are no files selected for viewing
19 changes: 9 additions & 10 deletions
19
src/main/java/org/erathor/api/controller/IExecutionController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |