public class

LayerSyncInfo

extends Object
implements Serializable
java.lang.Object
   ↳ com.esri.core.tasks.geodatabase.LayerSyncInfo

Class Overview

This class contains synchronisation information for a geodatabase layer. It contains the layer ID, its generation number for both the client and server side, and also the sync direction for the layer.

Summary

Public Constructors
LayerSyncInfo()
Public Methods
boolean equals(Object obj)
static LayerSyncInfo fromJson(JsonParser parser)
Create an instance of this class from a parsed JSON string.
long getClientGen()
Gets the client generation number.
int getLayerId()
Gets the layer ID.
long getServerGen()
Gets the server generation number.
SyncDirection getSyncDirection()
Gets the sync direction for the layer this LayerSyncInfo instance represents.
int hashCode()
void setClientGen(long clientGen)
Sets the client generation number.
void setLayerId(int layerId)
Sets the layer ID.
void setServerGen(long serverGen)
Sets the server generation number.
void setSyncDirection(SyncDirection syncDirection)
Sets the sync direction for the layer this LayerSyncInfo instance represents.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LayerSyncInfo ()

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static LayerSyncInfo fromJson (JsonParser parser)

Create an instance of this class from a parsed JSON string.

Parameters
parser JsonParser: the parser
Returns
LayerSyncInfo the layer sync info
Throws
Exception the exception

public long getClientGen ()

Gets the client generation number.

Returns
long the client generation number

public int getLayerId ()

Gets the layer ID.

Returns
int the layer ID

public long getServerGen ()

Gets the server generation number.

Returns
long the server generation number

public SyncDirection getSyncDirection ()

Gets the sync direction for the layer this LayerSyncInfo instance represents.

Returns
SyncDirection the sync direction

public int hashCode ()

Returns
int

public void setClientGen (long clientGen)

Sets the client generation number.

Parameters
clientGen long: the new client generation number

public void setLayerId (int layerId)

Sets the layer ID.

Parameters
layerId int: the new layer ID

public void setServerGen (long serverGen)

Sets the server generation number.

Parameters
serverGen long: the new server generation number

public void setSyncDirection (SyncDirection syncDirection)

Sets the sync direction for the layer this LayerSyncInfo instance represents.

Parameters
syncDirection SyncDirection: the new sync direction