= ecm.dms
:description: Namespace for CRUD operations on ECM objects (folders, registers, documents). Methods: select, insert, update, upsert, delete, get, copy, move, files, digest.
:keywords: ecm.dms, folders, registers, documents, CRUD, XMLInsert, XMLUpdate, XMLDelete, XMLCopy, XMLMove
:page-tags: api, dms, overview

The `ecm.dms` namespace contains all operations related to ECM objects: folders, registers, and documents.

[cols="1,3"]
|===
|Method |Description

|xref:api/dms/select.adoc[select()]
|Returns a HOL query builder (with hierarchy, variants, file info, base parameters).

|xref:api/dms/select_lol.adoc[select_lol()]
|Returns a LOL query builder (faster for large, flat result sets; no hierarchy, variants, or file properties).

|xref:api/dms/get.adoc[get()]
|Loads a single object by its ID.

|xref:api/dms/insert.adoc[insert()]
|Creates a new object and returns its ID.

|xref:api/dms/insert_and_get.adoc[insert_and_get()]
|Creates a new object and returns the full instance.

|xref:api/dms/update.adoc[update()]
|Updates an existing object.

|xref:api/dms/update_and_get.adoc[update_and_get()]
|Updates an existing object and returns the updated instance.

|xref:api/dms/upsert.adoc[upsert()]
|Returns an upsert builder (XMLImport).

|xref:api/dms/delete.adoc[delete()]
|Deletes an object by its ID.

|xref:api/dms/move.adoc[move()]
|Moves a document or register to a new location.

|xref:api/dms/copy.adoc[copy()]
|Copies a folder, register, or document to a new location.

|xref:api/dms/files.adoc[files()]
|Returns the files of a document.

|xref:api/dms/digest.adoc[digest()]
|Returns the digest of a document for integrity verification.

|xref:api/dms/get_object_type_by_id.adoc[get_object_type_by_id()]
|Resolves the object type ID for a given object ID.
|===
