TapKit::Entity

Class/Module:
Class
In:
lib/tapkit/access/entity.rb
Parent:
Object

Methods

add_attribute
add_relationship
add_sub_entity
attribute
beautify_name
class_property?
class_property_attributes
class_property_relationships
destination_attribute
destination_entity
destination_relationship
gid
new
primary_key
primary_key_attribute?
qualifier_for_primary_key
qualifier_for_primary_key?
relationship
remove_attribute
remove_relationship
remove_sub_entity
to_h
validate_required_attributes

Attributes

attributes [RW]
class_description [R]
class_name [RW]
class_properties [RW]
class_property_names [RW]
external_name [RW]
fetch_spec [RW]
locking_attribute_names [RW]
locking_attributes [RW]
model [RW]
name [RW]
parent [RW]
primary_key_attribute_names [RW]
primary_key_attributes [R]
relationships [R]
sub_entities [R]

Public Class Methods

new( list = {}, model = nil )

Public Instance Methods

add_attribute( attribute )
add_relationship( relationship )
add_sub_entity( child )
attribute( name )

get attribute for name

beautify_name()

properties

class_property?( property )

Property must be an instance of EOAttribtue or EORelationship.

class_property_attributes()
class_property_relationships()
destination_attribute( keypath )
destination_entity( keypath )

destination objects

destination_relationship( keypath )
gid( row )
primary_key( gid_or_row )

primary key

primary_key_attribute?( attribute )

Attribute or name

qualifier_for_primary_key( row )
qualifier_for_primary_key?( qualifier )
relationship( name )
remove_attribute( attribute )
remove_relationship( relationship )
remove_sub_entity( child )
to_h()
validate_required_attributes()