Class JdbcSongDAO
java.lang.Object
info.ejava.examples.db.jpa.songs.dao.JdbcSongDAO
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
deleteById
(int id) boolean
existsById
(int id) findById
(int id) void
init()
private int
nextId
(Connection conn) private void
void
-
Field Details
-
dataSource
-
dialect
-
-
Constructor Details
-
JdbcSongDAO
public JdbcSongDAO()
-
-
Method Details
-
init
@PostConstruct public void init() -
existsById
- Throws:
SQLException
-
findById
- Throws:
SQLException
-
create
- Throws:
SQLException
-
nextId
- Throws:
SQLException
-
setId
-
update
- Throws:
SQLException
-
deleteById
- Throws:
SQLException
-
deleteAll
- Throws:
SQLException
-