TapKit::Adapter

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

Methods

adapter_class
create_context
expression_class
expression_factory
internal_type
internal_type_name
internal_types
login_prompt
new
new_with_name
run_login_prompt

Attributes

application [R]
connection [RW]
contexts [R]
model [R]
name [R]

Public Class Methods

adapter_class( name )
expression_class()

abstract

internal_type( external_type )

Implemented by subclasses to return object of the classes used to save values to database as external type, and to create model files by modeler. Returns nil if mapping for external type can’t be found.

The default implementation is using internal_types() of class method.

internal_type_name( external_type )
internal_types()

Hash of internal types. If you create subclasses of DBIAdapter, use this with adding own internal types for database.

The default implementation is returning hash of data types for SQL-92.

login_prompt()

Abstract method. Returns an instance of LoginPrompt for the adapter. A subclass must override this method.

new( model, application = nil )
new_with_name( name, model = nil, application = nil )

Public Instance Methods

create_context()

Abstract method. Returns a new context object and adds it into contexts array. A subclass should override.

expression_factory()

abstract

run_login_prompt()