Package com.sas.services
Class DefaultEntityKeyImpl
java.lang.Object
com.sas.services.DefaultEntityKeyImpl
- All Implemented Interfaces:
com.sas.entities.EntityKeyInterface,Serializable,Remote
public class DefaultEntityKeyImpl
extends Object
implements com.sas.entities.EntityKeyInterface, Serializable
The default implementation for the EntityKeyInterface
as supported by the various services.
- Since:
- 1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionStringGets the entity's key.booleansameEntity(com.sas.entities.EntityKeyInterface entity) Determines whether or not the specified entity has the same key as this entity.voidsetEntityKey(String entityKey) Set the unique entity key for the service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DefaultEntityKeyImpl
public DefaultEntityKeyImpl()
-
-
Method Details
-
getEntityKey
public String getEntityKey() throws RemoteExceptionGets the entity's key.- Specified by:
getEntityKeyin interfacecom.sas.entities.EntityKeyInterface- Returns:
- Entity's key.
- Throws:
RemoteException- if a network anomaly is encountered.
-
setEntityKey
public void setEntityKey(String entityKey) throws RemoteException, IllegalStateException Set the unique entity key for the service. The entity key for the services cannot be changed. This method will throw an IllegalStateException.- Specified by:
setEntityKeyin interfacecom.sas.entities.EntityKeyInterface- Parameters:
entityKey- Unique entity key.- Throws:
IllegalStateException- if the unique entity key for a service cannot be changed.RemoteException- if a network anomaly is encountered.
-
sameEntity
public boolean sameEntity(com.sas.entities.EntityKeyInterface entity) throws RemoteException Determines whether or not the specified entity has the same key as this entity.- Specified by:
sameEntityin interfacecom.sas.entities.EntityKeyInterface- Parameters:
entity- Entity whose key is to be compared to this key.- Returns:
trueif the keys are the same orfalseif they aren't.- Throws:
RemoteException- if a network anomaly is encountered.
-