logo

class

sql::DbModel

sys::Obj
  sql::DbModel

DbModel is a collection of types and their relationships to be modeled in a relational database.

Slots

addType

Void addType(Type type)

Add a type to the model.

commit

Void commit()

Commit the model. This must be called when all types have been added to the model. A committed model may have types added or removed, but commit must be called again after the modifications are made.

dependencies

static Type[] dependencies(Type dependent)

Get the list of Types that the specified dependent type depends on.

listTypes

Type[] listTypes()

List the types in the model. The result is a readonly list of types in this model ordered by dependency.