public static class NamedDbModel.Companion
Static helper methods
Modifier and Type | Method and Description |
---|---|
NamedDbModel |
createHelper(DbHandler dbHandler,
Table table,
java.lang.String name,
java.sql.PreparedStatement stmt)
Helper method that combines share aspects of a database row creation for named models.
If the model already exists in the database, the existing one will be returned
|
public NamedDbModel createHelper(DbHandler dbHandler, Table table, java.lang.String name, java.sql.PreparedStatement stmt)
Helper method that combines share aspects of a database row creation for named models. If the model already exists in the database, the existing one will be returned
dbHandler
- : The database handler to usetable
- : The database table typename
- : The name of the named database modelstmt
- : A prepared statement that is executed to insert a new object into the database