com.backendless.transaction.TransactionHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-common Show documentation
Show all versions of java-sdk-common Show documentation
Provides access to Backendless API
The newest version!
package com.backendless.transaction;
import com.backendless.Persistence;
import com.backendless.exceptions.ExceptionMessage;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
class TransactionHelper
{
private static final String LAST_LOGIN_COLUMN_NAME = "lastLogin";
private static final String PASSWORD_KEY = "password";
private static final String SOCIAL_ACCOUNT_COLUMN_NAME = "socialAccount";
private static final String USER_STATUS_COLUMN_NAME = "userStatus";
static void removeSystemField( Map changes )
{
changes.remove( LAST_LOGIN_COLUMN_NAME );
changes.remove( PASSWORD_KEY );
changes.remove( SOCIAL_ACCOUNT_COLUMN_NAME );
changes.remove( USER_STATUS_COLUMN_NAME );
changes.remove( Persistence.DEFAULT_OBJECT_ID_FIELD );
changes.remove( Persistence.DEFAULT_CREATED_FIELD );
changes.remove( Persistence.DEFAULT_UPDATED_FIELD );
}
static OpResult makeOpResult( String tableName, String operationResultId, OperationType operationType )
{
return new OpResult( tableName, operationType, operationResultId );
}
static List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy