|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtheque.primary.services.impl.BorrowersService
@Service public final class BorrowersService
A borrowers service implementation.
Field Summary |
---|
Fields inherited from interface org.jtheque.primary.services.able.IBorrowersService |
---|
DATA_TYPE, PERSON_TYPE |
Constructor Summary | |
---|---|
BorrowersService()
|
Method Summary | |
---|---|
void |
addDataListener(org.jtheque.core.managers.persistence.able.DataListener listener)
|
void |
clearAll()
|
void |
create(Person borrower)
Create a borrower. |
void |
createAll(Iterable<Person> borrowers)
Create all the borrowers. |
boolean |
delete(Person borrower)
Delete a borrower. |
Collection<Person> |
getBorrowers()
Return the borrowers. |
Collection<Person> |
getDatas()
|
String |
getDataType()
|
Person |
getEmptyBorrower()
Return an empty borrower. |
boolean |
hasNoBorrowers()
Indicate if there is no borrowers. |
void |
save(Person borrower)
Save the borrower. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BorrowersService()
Method Detail |
---|
@Transactional public boolean delete(Person borrower)
IBorrowersService
delete
in interface IBorrowersService
borrower
- The borrower to delete.
@Transactional public void create(Person borrower)
IBorrowersService
create
in interface IBorrowersService
borrower
- The borrower to create.@Transactional public void save(Person borrower)
IBorrowersService
save
in interface IBorrowersService
borrower
- The borrower to save.public Collection<Person> getBorrowers()
IBorrowersService
getBorrowers
in interface IBorrowersService
public boolean hasNoBorrowers()
IBorrowersService
hasNoBorrowers
in interface IBorrowersService
public void createAll(Iterable<Person> borrowers)
IBorrowersService
createAll
in interface IBorrowersService
borrowers
- The borrowers to create.public Collection<Person> getDatas()
getDatas
in interface org.jtheque.core.managers.persistence.able.DataContainer<Person>
public void addDataListener(org.jtheque.core.managers.persistence.able.DataListener listener)
addDataListener
in interface org.jtheque.core.managers.persistence.able.DataContainer<Person>
@Transactional public void clearAll()
clearAll
in interface org.jtheque.core.managers.persistence.able.DataContainer<Person>
public String getDataType()
getDataType
in interface org.jtheque.core.managers.persistence.able.DataContainer<Person>
public Person getEmptyBorrower()
IBorrowersService
getEmptyBorrower
in interface IBorrowersService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |