Moved function into class
This commit is contained in:
@@ -148,9 +148,8 @@ class CollectionItemService(private val connection: Connection) {
|
||||
throw DbElementNotFoundException("Could not find collection item with id $id")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun createItemFromResult(resultSet: ResultSet): CollectionItem {
|
||||
private fun createItemFromResult(resultSet: ResultSet): CollectionItem {
|
||||
try {
|
||||
val id = resultSet.getLong("id")
|
||||
val title = resultSet.getString("title")
|
||||
@@ -198,3 +197,4 @@ fun createItemFromResult(resultSet: ResultSet): CollectionItem {
|
||||
throw DbElementInsertionException("${cause.message}\nresultSet = ${resultSet.metaData}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user