| Constructor and Description |
|---|
CodeJDBCTemplate() |
| Modifier and Type | Method and Description |
|---|---|
int |
create(Code entity)
create a new entity of implement dao
|
int |
delete(int id)
delete a record from dao object
|
java.util.List<Code> |
filterByEntity(Code entity)
returns all filtered entities.
|
java.util.List<Code> |
get()
gives all the records form the dao object
|
Code |
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,
Code newEntity)
update a entity of dao objects
|
public void setDataSource(javax.sql.DataSource dataSource)
ICrudsetDataSource in interface ICrud<Code>dataSource - database connectionpublic int create(Code entity)
ICrudpublic Code getById(int id)
ICrudpublic java.util.List<Code> get()
ICrudpublic java.util.List<Code> filterByEntity(Code entity)
ICrudfilterByEntity in interface ICrud<Code>entity - to filterpublic int delete(int id)
ICrud