com.sas.services
Class DefaultEntityKeyImpl

java.lang.Object
  |
  +--com.sas.services.DefaultEntityKeyImpl
All Implemented Interfaces:

public class DefaultEntityKeyImpl
extends Object
implements com.sas.entities.EntityKeyInterface, java.io.Serializable

The default implementation for the EntityKeyInterface as supported by the various services.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
DefaultEntityKeyImpl()
           
 
Method Summary
 String getEntityKey()
          Gets the entity's key.
 boolean sameEntity(EntityKeyInterface entity)
          Determines whether or not the specified entity has the same key as this entity.
 void setEntityKey(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 Detail

DefaultEntityKeyImpl

public DefaultEntityKeyImpl()
Method Detail

getEntityKey

public String getEntityKey()
                    throws RemoteException
Gets the entity's key.
Specified by:
getEntityKey in interface 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:
setEntityKey in interface 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(EntityKeyInterface entity)
                   throws RemoteException
Determines whether or not the specified entity has the same key as this entity.
Specified by:
sameEntity in interface EntityKeyInterface
Parameters:
entity - Entity whose key is to be compared to this key.
Returns:
true if the keys are the same or false if they aren't.
Throws:
RemoteException - if a network anomaly is encountered.




Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:28:52