Moved function into class

This commit is contained in:
2025-08-26 14:43:27 -04:00
parent 89ce50d775
commit 7947690575

View File

@@ -148,9 +148,8 @@ class CollectionItemService(private val connection: Connection) {
throw DbElementNotFoundException("Could not find collection item with id $id") throw DbElementNotFoundException("Could not find collection item with id $id")
} }
} }
}
fun createItemFromResult(resultSet: ResultSet): CollectionItem { private fun createItemFromResult(resultSet: ResultSet): CollectionItem {
try { try {
val id = resultSet.getLong("id") val id = resultSet.getLong("id")
val title = resultSet.getString("title") val title = resultSet.getString("title")
@@ -198,3 +197,4 @@ fun createItemFromResult(resultSet: ResultSet): CollectionItem {
throw DbElementInsertionException("${cause.message}\nresultSet = ${resultSet.metaData}") throw DbElementInsertionException("${cause.message}\nresultSet = ${resultSet.metaData}")
} }
} }
}