class CategoryDatabaseAdapter implements DatabaseAdapter<Category> {

    @Override
    @NonNull
    public Category build(@NonNull Category category, int primaryKey, @NonNull UUID uuid,
                          @NonNull DatabaseOperationMetadata databaseOperationMetadata) {
        return new CategoryBuilderFactory()
                .setId(primaryKey)
                .setUuid(uuid)
                .setName(category.getName())
                .setCode(category.getCode())
                .setSyncState(mSyncStateAdapter.get(category.getSyncState(), databaseOperationMetadata))
                .setCustomOrderId(category.getCustomOrderId())
                .build();
    }

    public  CategoryDatabaseAdapter();
    public  CategoryDatabaseAdapter(@NonNull SyncStateAdapter syncStateAdapter);

}