Package io.github.torand.fastersql.model
Class TableModel<T extends TableModel<?>>
java.lang.Object
io.github.torand.fastersql.model.Table
io.github.torand.fastersql.model.TableModel<T>
- Type Parameters:
T- the concrete table model class with columns.
Models a database table.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTableModel.TableModelFactory<T extends TableModel>Defines a factory to create instances of a database table model. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTableModel(String name, String alias, TableModel.TableModelFactory<T> instanceFactory) Creates a representation (model) of a database table. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.torand.fastersql.sql.Sql
aliasRefs, columnRefs
-
Constructor Details
-
TableModel
Creates a representation (model) of a database table.- Parameters:
name- the table name.alias- the table alias.instanceFactory- the table model instance factory.
-
-
Method Details
-
column
Creates a model of a column belonging to this table.- Parameters:
name- the column name.- Returns:
- the column model.
-
as
Description copied from interface:RelationSpecifies the table alias name of this relation.
-