public class QueryParamsDAO extends Object
Modifier and Type | Method and Description |
---|---|
static long |
create(QueryParams qp)
Create
|
static void |
delete(long qpId)
Delete
|
static QueryParams |
findByPk(long qpId)
Find by pk
|
static List<QueryParams> |
findByUser(String user)
Find by user
|
static List<QueryParams> |
findProposedQueryByMeFromUser(String me,
String user)
Find all proposed received from some user
|
static List<QueryParams> |
findProposedQueryFromMeToUser(String me,
String user)
Find all proposed
|
static List<QueryParams> |
findShared(String user)
Find shared
|
static void |
share(long qpId,
String user)
Share
|
static void |
unshare(long qpId,
String user)
Unshare
|
static void |
update(QueryParams qp)
Update
|
public static long create(QueryParams qp) throws DatabaseException
DatabaseException
public static void update(QueryParams qp) throws DatabaseException
DatabaseException
public static void delete(long qpId) throws DatabaseException
DatabaseException
public static QueryParams findByPk(long qpId) throws DatabaseException
DatabaseException
public static List<QueryParams> findByUser(String user) throws DatabaseException
DatabaseException
public static void share(long qpId, String user) throws DatabaseException
DatabaseException
public static void unshare(long qpId, String user) throws DatabaseException
DatabaseException
public static List<QueryParams> findShared(String user) throws DatabaseException
DatabaseException
public static List<QueryParams> findProposedQueryByMeFromUser(String me, String user) throws DatabaseException
DatabaseException
public static List<QueryParams> findProposedQueryFromMeToUser(String me, String user) throws DatabaseException
DatabaseException
Copyright © 2018 Open Knowledge Management System S.L.. All rights reserved.