
com.backendless.persistence.BackendlessSerializer Maven / Gradle / Ivy
Show all versions of android Show documentation
/*
* ********************************************************************************************************************
*
* BACKENDLESS.COM CONFIDENTIAL
*
* ********************************************************************************************************************
*
* Copyright 2012 BACKENDLESS.COM. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,
* if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret
* or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from Backendless.com.
*
* ********************************************************************************************************************
*/
package com.backendless.persistence;
import com.backendless.Backendless;
import com.backendless.BackendlessUser;
import com.backendless.FootprintsManager;
import com.backendless.Persistence;
import com.backendless.exceptions.BackendlessException;
import com.backendless.exceptions.ExceptionMessage;
import com.backendless.geo.GeoPoint;
import java.lang.reflect.Array;
import java.util.*;
/**
* Handles object to Map serialization for Backendless services.
*/
public class BackendlessSerializer
{
/**
* Serializes Object to Map using WebOrb's serializer.
*
* @param entity object to be serialized
* @return Map corresponding to given Object
*/
public static Map serializeToMap( Object entity )
{
return (Map) serializeToMap( entity, new HashMap