abapGit/docs/collections/_development/serializers.md
Lars Hvam 3213d0c2dd
Deserialization performance, refactor COMPARE_TO_REMOTE_VERSION (#2438)
* core part refactored #2436

* indentation

* fix implementations

* delete ZCL_ABAPGIT_COMPARISON_NULL

* pretty print

* Update serializers.md

* downport
2019-02-20 22:20:24 -08:00

39 lines
807 B
Markdown

---
title: Serializers
order: 220
---
All object serializers must be named ZCL_ABAPGIT_OBJECT_"type", where type is the corresponding TADIR-OBJECT type
Use SAP Standard APIs for retriving and updating object information where possible.
If not possible try using ZCL_ABAPGIT_OBJECTS_GENERIC
Serializers must implement interface ZIF_ABAPGIT_OBJECT:
``ZIF_ABAPGIT_OBJECT~SERIALIZE``
todo
``ZIF_ABAPGIT_OBJECT~DESERIALIZE``
todo
``ZIF_ABAPGIT_OBJECT~DELETE``
todo
``ZIF_ABAPGIT_OBJECT~EXISTS``
todo
``ZIF_ABAPGIT_OBJECT~IS_LOCKED``
todo
``ZIF_ABAPGIT_OBJECT~CHANGED_BY``
todo
``ZIF_ABAPGIT_OBJECT~JUMP``
todo
``ZIF_ABAPGIT_OBJECT~GET_METADATA``
todo
``ZIF_ABAPGIT_OBJECT~GET_COMARATOR``
Triggered before deserialization to perform checks, eg warn the user that database tables are changed.