类:Mongoid::GlobalDiscriminatorKeyAssignment::InvalidFieldHost Private

继承:
对象
  • 对象
显示全部
包括:
文档
定义于:
lib/mongoid.rb

Overview

此类是私有 API 的一部分。 应尽可能避免使用此类,因为它将来可能会被删除或更改。

此类用于获取 Mongoid 方法的方法定义位置。

常量摘要

文档中包含的常量

Document::ILLEGAL_KEY

可组合项中包含的常量

Composable::MODULESComposable::RESERVED_METHOD_NAMES

Interceptable中包含的常量

Interceptable::CALBACKS

关联中包含的常量

Association::MACRO_MAPPING

Association::Depending中包含的常量

Association::Depending::STRATEGIES

Persistable中包含的常量

Persistable::LIST_OPERATIONS

字段中包含的常量

Fields::Boolean Fields::IDS Fields::INVALID_BSON_CLASSES Fields::StringifiedSymbol Fields::TRANSLATIONS_SFX Fields::TYPE_MAPPINGS

Atomic中包含的常量

Atomic::UPDATES

实例属性摘要

文档中包含的属性

#__selected_fields , #new_record

Stateful中包含的属性

#destroyed#flag_for_destroy#previously_new_record

关联中包含的属性

#_association

属性中包含的属性

#attributes

Clients::StorageOptions 中包含的属性

#remembered_storage_options

方法摘要

文档中包含的方法

#_handle_callbacks_after_instantiation #as_document #becomes #freeze #frozen? #hash #identity #initialize #internal_state= #model_name #to_key

Touchable::InstanceMethods中包含的方法

#_clear_touch_updates#_gather_touch_updates#_run_touch_callbacks_from_root#_touchable_parent?#suppress_touch_callbacks#touch#touch_callbacks_suppressed?

可组合项中包含的方法

Barceled_methods

Equality中包含的方法

#, #==, #eql?

Copyable中包含的方法

#clone

Interceptable中包含的方法

#_mongoid_run_child_after_callbacks#_mongoid_run_child_before_callbacks#_mongoid_run_child_callbacks#_mongoid_run_child_callbacks_with_round#_mongoid_run_child_callbacks_Without_round#callback_executable? , #in_callback_state?#pending_callbacks#pending_callbacks=#run_after_callbacks#run_before_callbacks#run_callbacks#run_pending_callbacks

Validatable 中包含的方法

#begin_validate #exit_validate #performing_validations? 、#read_attribute_for_validation、#valid? , #validated? 、#validating、#validating_with_query?

Traversable包含的方法

__redefine #_children #_descendants #_parent #_parent= #_reset_memoized_descendants! 、#_root 、#_root? #collect_children #collect_descendants #flag_descendants_persisted #hereditary? #parentize #remove_child #reset_persisted_descendants

Cacheable中包含的方法

#cache_key

Stateful中包含的方法

#destroyed? , #flag_for_destroy? , #new_record= , #new_record? , #persisted? , #previously_new_record? , #previously_persisted? , #pushable?#readonly! , #readonly? , #settable? , #updateable?

Shardable 中包含的方法

#shard_key_field_value#shard_key_fields#shard_key_selector#shard_key_selector_in_db

Serializable中包含的方法

#serializable_hash

Selectable中包含的方法

#atomic_selector

Reloadable中包含的方法

#reload

关联中包含的方法

#association_name#embedded? , #embedded_many? , #embedded_one? , #referenced_many? , #referenced_one? , #reload_relations

Association::Reflections中包含的方法

#reflect_on_all_association#reflect_on_association

Association::Macros中包含的方法

#associations

Association::Dependent中包含的方法

#apply_destroy_dependencies!define_dependency!验证!

Association::Accessors中包含的方法

#__build__#create_relation#reset_relation_criteria#set_relation

Association::Referenced::Syncable中包含的方法

#_syncable?#_synced#_synced?#remove_inverse_keys#update_inverse_keys

Association::Referenced::CounterCache中包含的方法

define_callbacks! , #reset_counters

Association::Referenced::AutoSave中包含的方法

#__autosaving__, #autosaved?, #changed_for_autosave?, define_autosave!

Persistable中包含的方法

#atomically#fail_due_to_callback! , #fail_due_to_validation!

Persistable::Unsettable 中包含的方法

#unset

Persistable::Upsertable 中包含的方法

#upsert

Persistable::Updatable中包含的方法

#update, #update!, #update_attribute

Persistable::Settable中包含的方法

#set

Persistable::Savable中包含的方法

#save, #save!

Persistable::Renameable 中包含的方法

#rename

Persistable::Pushable 中包含的方法

#add_to_set#push

Persistable::Pullable 中包含的方法

#pull , #pull_all

位置包含的方法

#positionally

Persistable::Poppable 中包含的方法

#pop

Persistable::Multipliable中包含的方法

#mul

Persistable::Minable 中包含的方法

#set_min

Persistable::Maxable中包含的方法

#set_max

Persistable::Logical中包含的方法

#bit

Persistable::Incrementable中包含的方法

#inc

Persistable::Destroyable中包含的方法

#destroy , #destroy!

Persistable::Deletable中包含的方法

# 删除

Persistable::Createtable中包含的方法

#insert

Matchable中包含的方法

#_matches?

字段中包含的方法

#apply_default#apply_defaults#apply_post_processed_defaults#apply_pre_processed_defaults#attribute_namesdatabase_field_name#database_field_name#dot_dollar_field? , #lazy_settable?optionoptionstraverse_association_tree#using_object_ids?#validate_writable_field_name!

包含在Evolvable中的方法

#__evolve_object_id__

属性中包含的方法

#allow_attributes 、#attribute_missing , #attribute_present?#attributes_before_type_cast#has_attribute? , #has_attribute_before_type_cast?#process_raw_attribute#read_attribute#read_attribute_before_type_cast#remove_attribute#typed_attributes#write_attribute#write_attributes

Attributes::Readonly中包含的方法

#attribute_writable?

Attributes::Processing中包含的方法

#process_attributes

客户端包含的方法

clear、clients、 默认 、disconnect、reconnect、 设立 、with_name

Clients::Sessions中包含的方法

包含

Clients::Options中包含的方法

# 集合 , #collection_name , #mongo_client , #persistence_context , #persistence_context? , #with

Clients::StorageOptions 中包含的方法

#remember_storage_options! , #storage_options

Changeable中包含的方法

#attribute_before_last_save#changed#changed?#changed_attributes#changes#children_changed?#children_may_have_changed!#move_changes#post_persist#previous_changes#remove_change#saved_change_to_attribute#saved_change_to_attribute?#setters#will_save_change_to_attribute?

Atomic中包含的方法

#add_atomic_pull , #add_atomic_unset , #atomic_array_add_to_sets , #atomic_array_pulls , #atomic_array_pushes , #atomic_attribute_name , #atomic_delete_modifier , #atomic_insert_modifier , #atomic_path , #atomic_paths , #atomic_position , #atomic_pulls , #atomic_pushes , #atomic_sets , #atomic_unsets , #atomic_updates , #delayed_atomic_pulls#delayed_atomic_sets#delayed_atomic_unsets#flag_as_destroyed#flag_destroys#process_flag_destroys