From aaf203c00c4050fa0d7e6e218c3348317273332c Mon Sep 17 00:00:00 2001 From: Sergejs Visockis Date: Thu, 28 Mar 2024 21:23:19 +0100 Subject: [PATCH] add javadoc (#79) --- .../java/com/iluwatar/activerecord/RecordBase.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/active-record/src/main/java/com/iluwatar/activerecord/RecordBase.java b/active-record/src/main/java/com/iluwatar/activerecord/RecordBase.java index c74b3710d166..f43f5d0a48ea 100644 --- a/active-record/src/main/java/com/iluwatar/activerecord/RecordBase.java +++ b/active-record/src/main/java/com/iluwatar/activerecord/RecordBase.java @@ -28,6 +28,13 @@ protected Connection getConnection() throws SQLException { protected abstract void setFieldsFromResultSet(ResultSet rs); + /** + * Find all the records for a corresponding domain model. + * + * @param clazz domain model class. + * @param domain model type. + * @return all the domain model related records. + */ public List findAll(Class clazz) { List recordList = new ArrayList<>(); try (Connection conn = getConnection(); @@ -75,6 +82,9 @@ public T findById(Long id, Class clazz) { } } + /** + * Save the record. + */ public void save() { // TODO }