This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate Persistence Find methods by fields
Signed-off-by: Daniel Bluhm <bluhmdj@ornl.gov>
- Loading branch information
Showing
7 changed files
with
102 additions
and
52 deletions.
There are no files selected for viewing
14 changes: 12 additions & 2 deletions
14
...ce.dev.annotations/src/main/java/org/eclipse/ice/dev/annotations/IPersistenceHandler.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,6 +1,16 @@ | ||
package org.eclipse.ice.dev.annotations; | ||
|
||
import java.util.UUID; | ||
|
||
public interface IPersistenceHandler { | ||
public <T extends IDataElement> void save(T element) throws Exception; | ||
public <T extends IDataElement> T findByID(String id) throws Exception; | ||
} | ||
public <T extends IDataElement> T findByUUID(UUID uuid) throws Exception; | ||
public <T extends IDataElement> Iterable<T> findById(long id) throws Exception; | ||
public <T extends IDataElement> Iterable<T> findByName(String name) throws Exception; | ||
public <T extends IDataElement> Iterable<T> findByDescription(String description) throws Exception; | ||
public <T extends IDataElement> Iterable<T> findByComment(String comment) throws Exception; | ||
public <T extends IDataElement> Iterable<T> findByContext(String context) throws Exception; | ||
public <T extends IDataElement> Iterable<T> findByRequired(boolean required) throws Exception; | ||
public <T extends IDataElement> Iterable<T> findBySecret(boolean secret) throws Exception; | ||
public long clear() throws Exception; | ||
} |
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
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
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
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
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
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