@Transactional public class OAuth2Dao extends Object implements IDataProviderDao<OAuthServer>
Modifier and Type | Field and Description |
---|---|
static String[] |
searchFields |
Constructor and Description |
---|
OAuth2Dao() |
Modifier and Type | Method and Description |
---|---|
long |
count()
Count the number of instances of
T |
long |
count(String search)
Count the number of instances of
T |
void |
delete(OAuthServer server,
Long userId)
Delete an instance of
T |
List<OAuthServer> |
get(int start,
int count)
Get a list of instances of
T |
OAuthServer |
get(Long id)
Get an instance of an
T |
List<OAuthServer> |
get(String search,
int start,
int count,
String order)
Get a list of instances of
T |
List<OAuthServer> |
getActive() |
OAuthServer |
update(OAuthServer server,
Long userId)
Update an instance of
T |
public static final String[] searchFields
public List<OAuthServer> getActive()
public OAuthServer get(Long id)
IDataProviderDao
T
get
in interface IDataProviderDao<OAuthServer>
id
- - id of instance to retrievepublic List<OAuthServer> get(int start, int count)
IDataProviderDao
T
get
in interface IDataProviderDao<OAuthServer>
start
- - the start to range to retrievecount
- - maximum instance count to retrievepublic List<OAuthServer> get(String search, int start, int count, String order)
IDataProviderDao
T
get
in interface IDataProviderDao<OAuthServer>
search
- - string search criteria to filter entitiesstart
- - the start to range to retrievecount
- - maximum instance count to retrieveorder
- - column and sort orderpublic long count()
IDataProviderDao
T
count
in interface IDataProviderDao<OAuthServer>
public long count(String search)
IDataProviderDao
T
count
in interface IDataProviderDao<OAuthServer>
search
- - string search criteria to filter entitiespublic OAuthServer update(OAuthServer server, Long userId)
IDataProviderDao
T
update
in interface IDataProviderDao<OAuthServer>
server
- - entity to be updateduserId
- - user performed updatepublic void delete(OAuthServer server, Long userId)
IDataProviderDao
T
delete
in interface IDataProviderDao<OAuthServer>
server
- - entity to be deleteduserId
- - user performed deleteCopyright © 2012–2016 Apache Software Foundation. All rights reserved.