public class DataAccessUtils
extends java.lang.Object
| Constructor and Description |
|---|
DataAccessUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Connection |
loadConnection(ConnectionRepository connectionRepository,
java.lang.Long id) |
static Connection |
loadConnection(ConnectionRepository connectionRepository,
java.net.URI connectionURI)
Loads the specified connection from the database and raises an exception if it is not found.
|
static Need |
loadNeed(NeedRepository needRepository,
java.net.URI needURI)
Loads the specified need from the database and raises an exception if it is not found.
|
static java.lang.String |
loadOwnerApplication(OwnerApplicationRepository ownerApplicationRepository,
java.lang.String ownerApplicationId) |
static WonNode |
loadWonNode(WonNodeRepository repository,
java.net.URI wonNodeURI)
Loads the specified wonNode from the database.
|
public static Need loadNeed(NeedRepository needRepository, java.net.URI needURI) throws NoSuchNeedException
needURI - NoSuchNeedExceptionpublic static WonNode loadWonNode(WonNodeRepository repository, java.net.URI wonNodeURI)
wonNodeURI - NoSuchNeedExceptionpublic static java.lang.String loadOwnerApplication(OwnerApplicationRepository ownerApplicationRepository, java.lang.String ownerApplicationId) throws NoSuchOwnerApplicationException
NoSuchOwnerApplicationExceptionpublic static Connection loadConnection(ConnectionRepository connectionRepository, java.lang.Long id) throws NoSuchConnectionException
NoSuchConnectionExceptionpublic static Connection loadConnection(ConnectionRepository connectionRepository, java.net.URI connectionURI) throws NoSuchConnectionException
connectionRepository - connectionURI - NoSuchConnectionExceptionCopyright © 2018. All Rights Reserved.