java.lang.Object
de.hitec.nhplus.datastorage.DaoImp<T>
- All Implemented Interfaces:
Dao<T>
- Direct Known Subclasses:
PatientDao
,TreatmentDao
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
deleteById
(long key) protected abstract PreparedStatement
protected abstract PreparedStatement
getDeleteStatement
(long key) protected abstract T
protected abstract PreparedStatement
protected abstract PreparedStatement
getReadByIDStatement
(long key) protected abstract PreparedStatement
read
(long key) readAll()
void
-
Field Details
-
connection
-
-
Constructor Details
-
DaoImp
-
-
Method Details
-
create
- Specified by:
create
in interfaceDao<T>
- Throws:
SQLException
-
read
- Specified by:
read
in interfaceDao<T>
- Throws:
SQLException
-
readAll
- Specified by:
readAll
in interfaceDao<T>
- Throws:
SQLException
-
update
- Specified by:
update
in interfaceDao<T>
- Throws:
SQLException
-
deleteById
- Specified by:
deleteById
in interfaceDao<T>
- Throws:
SQLException
-
getInstanceFromResultSet
- Throws:
SQLException
-
getListFromResultSet
- Throws:
SQLException
-
getCreateStatement
-
getReadByIDStatement
-
getReadAllStatement
-
getUpdateStatement
-
getDeleteStatement
-