Package no.nsd.qddt.domain.changefeed
Class ChangeFeedServiceImpl
- java.lang.Object
-
- no.nsd.qddt.domain.changefeed.ChangeFeedServiceImpl
-
- All Implemented Interfaces:
BaseService<ChangeFeed,ChangeFeedKey>
,ChangeFeedService
@Service("changeFeedService") public class ChangeFeedServiceImpl extends java.lang.Object implements ChangeFeedService
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
LOG
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
count()
void
delete(java.util.List<ChangeFeed> instances)
Deletes object with these IDs from backstore, exception raised by failure.void
delete(ChangeFeedKey id)
Deletes object with id ID from backstore, exception raised by failure.boolean
exists(ChangeFeedKey ig)
org.springframework.data.domain.Page<ChangeFeed>
filterbyPageable(java.lang.String name, java.lang.String change, java.lang.String kind, org.springframework.data.domain.Pageable pageable)
org.springframework.data.domain.Page<ChangeFeed>
findAllPageable(org.springframework.data.domain.Pageable pageable)
<S extends ChangeFeed>
SfindOne(ChangeFeedKey id)
Return a entity based on its ID.<S extends ChangeFeed>
Ssave(S instance)
Store object T to backstore
-
-
-
Method Detail
-
count
public long count()
- Specified by:
count
in interfaceBaseService<ChangeFeed,ChangeFeedKey>
- Returns:
- number of entities
-
exists
public boolean exists(ChangeFeedKey ig)
- Specified by:
exists
in interfaceBaseService<ChangeFeed,ChangeFeedKey>
- Parameters:
ig
- ID of entity- Returns:
- true if exists
-
findOne
public <S extends ChangeFeed> S findOne(ChangeFeedKey id)
Description copied from interface:BaseService
Return a entity based on its ID.- Specified by:
findOne
in interfaceBaseService<ChangeFeed,ChangeFeedKey>
- Parameters:
id
- ID of entity- Returns:
- Entity
-
save
public <S extends ChangeFeed> S save(S instance)
Description copied from interface:BaseService
Store object T to backstore- Specified by:
save
in interfaceBaseService<ChangeFeed,ChangeFeedKey>
- Parameters:
instance
- object T- Returns:
- saved instance T (may have fields updated by backstore)
-
delete
public void delete(ChangeFeedKey id) throws org.springframework.dao.DataAccessException
Description copied from interface:BaseService
Deletes object with id ID from backstore, exception raised by failure.- Specified by:
delete
in interfaceBaseService<ChangeFeed,ChangeFeedKey>
- Parameters:
id
- ID of entity- Throws:
org.springframework.dao.DataAccessException
-
delete
public void delete(java.util.List<ChangeFeed> instances) throws org.springframework.dao.DataAccessException
Description copied from interface:BaseService
Deletes object with these IDs from backstore, exception raised by failure.- Specified by:
delete
in interfaceBaseService<ChangeFeed,ChangeFeedKey>
- Parameters:
instances
- list of entity IDs- Throws:
org.springframework.dao.DataAccessException
-
findAllPageable
public org.springframework.data.domain.Page<ChangeFeed> findAllPageable(org.springframework.data.domain.Pageable pageable)
- Specified by:
findAllPageable
in interfaceChangeFeedService
-
filterbyPageable
public org.springframework.data.domain.Page<ChangeFeed> filterbyPageable(java.lang.String name, java.lang.String change, java.lang.String kind, org.springframework.data.domain.Pageable pageable)
- Specified by:
filterbyPageable
in interfaceChangeFeedService
-
-