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

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_constraintsObject

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_headingObject

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_indexesObject

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_logicalObject

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_physicalObject

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

#build_relview(name, defn) ⇒ Object

Builds a relvar



23
24
25
# File 'lib/dbagile/core/schema/builder/concept_factory.rb', line 23

def build_relview(name, defn)
  Schema::Logical::Relview.new(name, defn)
end

#build_schema(identifier) ⇒ Object

Builds a logical schema



8
9
10
# File 'lib/dbagile/core/schema/builder/concept_factory.rb', line 8

def build_schema(identifier)
  Schema.new(identifier)
end