Lines Matching defs:ID
83 LOCAL_EXTERNAL_ID, // ID of an item in the external local storage that this
95 // Code in InitializeTables relies on ID being the first IdField value.
96 ID = ID_FIELDS_BEGIN,
186 // Entry e = transaction.GetById(id);
188 // Entry e(transaction, GET_BY_ID, id);
228 Id id_fields[ID_FIELDS_COUNT];
269 inline void put(IdField field, const Id& value) {
301 inline const Id& ref(IdField field) const {
333 inline Id& mutable_ref(IdField field) {
355 Entry(BaseTransaction* trans, GetById, const Id& id);
368 inline Id Get(IdField field) const {
418 return kernel_->ref(ID).IsRoot();
428 // absolute server position. The returned ID will be a valid predecessor
431 Id ComputePrevIdFromServerPosition(const Id& parent_id) const;
463 void Init(WriteTransaction* trans, const Id& parent_id,
466 MutableEntry(WriteTransaction* trans, Create, const Id& parent_id,
468 MutableEntry(WriteTransaction* trans, CreateNewUpdateItem, const Id& id);
470 MutableEntry(WriteTransaction* trans, GetById, const Id&);
483 bool Put(IdField field, const Id& value);
490 // when the caller is trying to change the parent ID of a the whole set
491 // of children (e.g. because the ID changed during a commit). For those
494 void PutParentIdPropertyOnly(const Id& parent_id);
509 // ID to put the node in first position.
510 bool PutPredecessor(const Id& predecessor_id);
581 // Traits type for ID field index.
583 // This index is of the ID field values.
584 typedef LessField<IdField, ID> Comparator;
601 // This index contains EntryKernels ordered by parent ID and metahandle.
604 // This index is of the parent ID and metahandle. We use a custom
704 // The next local ID that has not been used with this cache-GUID.
751 // Always returns a negative id. Positive client ids are generated
753 Id NextId();
802 virtual EntryKernel* GetEntryById(const Id& id);
806 bool ReindexId(EntryKernel* const entry, const Id& new_id);
807 void ReindexParentId(EntryKernel* const entry, const Id& new_parent_id);
824 EntryKernel* GetEntryById(const Id& id, ScopedKernelLock* const lock);
840 // Returns the child meta handles for given parent id.
841 void GetChildHandles(BaseTransaction*, const Id& parent_id,
845 // and return its id. Returns a root Id if parent has no children.
846 virtual Id GetFirstChildId(BaseTransaction* trans, const Id& parent_id);
847 Id GetLastChildId(BaseTransaction* trans, const Id& parent_id);
853 Id ComputePrevIdFromServerPosition(
855 const syncable::Id& parent_id);
957 // items that had a duplicated ID in the end, resulting in a DB key
958 // violation. ID reassociation would fail after an attempted commit.
996 // Entries indexed by id
1050 const Id& parent_id,
1052 const Id& item_id_for_tiebreaking);
1058 const Id& parent_id);
1064 const Id& parent_id);
1086 inline Id root_id() const { return Id(); }
1158 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid);