Class: DataMapper::Adapters::AbstractAdapter

Inherits:
Object
  • Object
show all
Extended by:
Migration::ClassMethods
Includes:
Migration, Transaction, DataMapper::Assertions
Defined in:
lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb

Direct Known Subclasses

DataObjectsAdapter, InMemoryAdapter

Defined Under Namespace

Modules: Migration, Transaction

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Migration::ClassMethods

type_map

Methods included from Transaction

#current_transaction, #pop_transaction, #push_transaction, #transaction_primitive, #within_transaction?

Methods included from Migration

#alter_model_storage, #alter_property_storage, #create_model_storage, #create_property_storage, #destroy_model_storage, #destroy_property_storage, #field_exists?, #storage_exists?, #upgrade_model_storage

Methods included from DataMapper::Assertions

#assert_kind_of

Instance Attribute Details

#field_naming_conventionObject

Returns the value of attribute field_naming_convention.



7
8
9
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 7

def field_naming_convention
  @field_naming_convention
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 6

def name
  @name
end

#resource_naming_conventionObject

Returns the value of attribute resource_naming_convention.



7
8
9
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 7

def resource_naming_convention
  @resource_naming_convention
end

#uriObject (readonly)

Returns the value of attribute uri.



6
7
8
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 6

def uri
  @uri
end

Instance Method Details

#create(resources) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 9

def create(resources)
  raise NotImplementedError
end

#delete(query) ⇒ Object

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 25

def delete(query)
  raise NotImplementedError
end

#read_many(query) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 13

def read_many(query)
  raise NotImplementedError
end

#read_one(query) ⇒ Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 17

def read_one(query)
  raise NotImplementedError
end

#update(attributes, query) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 21

def update(attributes, query)
  raise NotImplementedError
end