Module: DbAgile::Core::Schema::Builder::ConceptFactory
- Included in:
- DbAgile::Core::Schema::Builder
- Defined in:
- lib/dbagile/core/schema/builder/concept_factory.rb
Instance Method Summary collapse
-
#build_attribute(name, definition) ⇒ Object
Builds an attribute.
-
#build_constraint(name, definition) ⇒ Object
Builds a constraint.
-
#build_constraints ⇒ Object
Builds a constraint collection.
-
#build_heading ⇒ Object
Builds a heading.
-
#build_index(name, definition) ⇒ Object
Builds an index.
-
#build_indexes ⇒ Object
Builds an index collection.
-
#build_logical ⇒ Object
Builds a logical schema.
-
#build_physical ⇒ Object
Builds a physical schema.
-
#build_relvar(name) ⇒ Object
Builds a relvar.
-
#build_relview(name, defn) ⇒ Object
Builds a relvar.
-
#build_schema(identifier) ⇒ Object
Builds a logical schema.
Instance Method Details
#build_attribute(name, definition) ⇒ Object
Builds an attribute
33 34 35 |
# File 'lib/dbagile/core/schema/builder/concept_factory.rb', line 33 def build_attribute(name, definition) Schema::Logical::Attribute.new(name, definition) end |
#build_constraint(name, definition) ⇒ Object
Builds a constraint
43 44 45 |
# File 'lib/dbagile/core/schema/builder/concept_factory.rb', line 43 def build_constraint(name, definition) Schema::Logical::Constraint::factor(name, definition) end |
#build_constraints ⇒ Object
Builds a constraint collection
38 39 40 |
# File 'lib/dbagile/core/schema/builder/concept_factory.rb', line 38 def build_constraints Schema::Logical::Constraint.new end |
#build_heading ⇒ Object
Builds a heading
28 29 30 |
# File 'lib/dbagile/core/schema/builder/concept_factory.rb', line 28 def build_heading Schema::Logical::Heading.new end |
#build_index(name, definition) ⇒ Object
Builds an index
58 59 60 |
# File 'lib/dbagile/core/schema/builder/concept_factory.rb', line 58 def build_index(name, definition) Schema::Physical::Index.new(name, definition) end |
#build_indexes ⇒ Object
Builds an index collection
53 54 55 |
# File 'lib/dbagile/core/schema/builder/concept_factory.rb', line 53 def build_indexes Schema::Physical::Indexes.new end |
#build_logical ⇒ Object
Builds a logical schema
13 14 15 |
# File 'lib/dbagile/core/schema/builder/concept_factory.rb', line 13 def build_logical Schema::Logical.new end |
#build_physical ⇒ Object
Builds a physical schema
48 49 50 |
# File 'lib/dbagile/core/schema/builder/concept_factory.rb', line 48 def build_physical Schema::Physical.new end |
#build_relvar(name) ⇒ Object
Builds a relvar
18 19 20 |
# File 'lib/dbagile/core/schema/builder/concept_factory.rb', line 18 def build_relvar(name) Schema::Logical::Relvar.new(name) end |