Constructor and Description |
---|
FakturaJDBCTemplate() |
Modifier and Type | Method and Description |
---|---|
int |
create(Faktura entity)
create a new entity of implement dao
|
int |
delete(int id)
delete a record from dao object
|
java.util.List<Faktura> |
filterByEntity(Faktura entity)
returns all filtered entities.
|
java.util.List<Faktura> |
get()
gives all the records form the dao object
|
Faktura |
getById(int id)
looking for a id from implement dao
|
void |
setDataSource(javax.sql.DataSource dataSource)
used to initialize database resources connection.
|
int |
update(int id,
Faktura newEntity)
update a entity of dao objects
|
public void setDataSource(javax.sql.DataSource dataSource)
ICrud
setDataSource
in interface ICrud<Faktura>
dataSource
- database connectionpublic int create(Faktura entity)
ICrud
public Faktura getById(int id)
ICrud
public java.util.List<Faktura> get()
ICrud
public java.util.List<Faktura> filterByEntity(Faktura entity)
ICrud
filterByEntity
in interface ICrud<Faktura>
entity
- to filterpublic int delete(int id)
ICrud