com.j_spaces.jca
Class GSRecordPojo

java.lang.Object
  extended by com.j_spaces.jca.GSRecordPojo
All Implemented Interfaces:
Serializable, Cloneable, Record

public class GSRecordPojo
extends Object
implements Record

JCA Record Pojo

See Also:
Serialized Form

Constructor Summary
GSRecordPojo()
           
GSRecordPojo(Object pojo)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object other)
           
 int getCount()
          Returns the count.
 EventRegistration getEventRegistration()
          Returns the eventRegistration.
 Lease getLease()
          get JCA record Lease object
 RemoteEventListener getListener()
          get JCA record RemoteEventListener object
 Object getPojo()
          get JCA record with Pojo object.
 String getRecordName()
           
 String getRecordShortDescription()
           
 long getTimeout()
          get JCA record timeout
 int hashCode()
           
 void setCount(int count)
          Sets the count.
 void setEventRegistration(EventRegistration eventRegistration)
          Sets the eventRegistration.
 void setLease(Lease lease)
          set JCA record Lease object
 void setListener(RemoteEventListener listener)
          set JCA record with RemoteEventListener object This method required for Notify operation.
 void setPojo(Object pojo)
          set JCA record with Entry object.
 void setRecordName(String recordName)
           
 void setRecordShortDescription(String recordShortDescription)
           
 void setTimeout(long timeout)
          set JCA record timeout This method required for all GigaSpaces space operations.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSRecordPojo

public GSRecordPojo()

GSRecordPojo

public GSRecordPojo(Object pojo)
Method Detail

setPojo

public void setPojo(Object pojo)
set JCA record with Entry object.

Parameters:
pojo - - The Entry object.

getPojo

public Object getPojo()
get JCA record with Pojo object.

Returns:
pojo - The Pojo object.

setListener

public void setListener(RemoteEventListener listener)
set JCA record with RemoteEventListener object This method required for Notify operation.

Parameters:
listener - - The listener object.

getListener

public RemoteEventListener getListener()
get JCA record RemoteEventListener object

Returns:
RemoteEventListener - The listener object.

setTimeout

public void setTimeout(long timeout)
set JCA record timeout This method required for all GigaSpaces space operations.

Parameters:
timeout - in milisec.

getTimeout

public long getTimeout()
get JCA record timeout

Returns:
- timeout in milisec.

setLease

public void setLease(Lease lease)
set JCA record Lease object

Parameters:
lease - Lease object.

getLease

public Lease getLease()
get JCA record Lease object

Returns:
- Lease object.

getRecordName

public String getRecordName()
Specified by:
getRecordName in interface Record

setRecordName

public void setRecordName(String recordName)
Specified by:
setRecordName in interface Record

getRecordShortDescription

public String getRecordShortDescription()
Specified by:
getRecordShortDescription in interface Record

setRecordShortDescription

public void setRecordShortDescription(String recordShortDescription)
Specified by:
setRecordShortDescription in interface Record

hashCode

public int hashCode()
Specified by:
hashCode in interface Record
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Specified by:
equals in interface Record
Overrides:
equals in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Specified by:
clone in interface Record
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

getEventRegistration

public EventRegistration getEventRegistration()
Returns the eventRegistration.

Returns:
EventRegistration

setEventRegistration

public void setEventRegistration(EventRegistration eventRegistration)
Sets the eventRegistration.

Parameters:
eventRegistration - The eventRegistration to set

getCount

public int getCount()
Returns the count.

Returns:
int

setCount

public void setCount(int count)
Sets the count.

Parameters:
count - The count to set