com.ibm.rfid.epc.config.dto
Class EPCSerialNumberDTO

java.lang.Object
  extended by com.ibm.rfid.epc.config.dto.EPCSerialNumberDTO
All Implemented Interfaces:
java.io.Serializable

public class EPCSerialNumberDTO
extends java.lang.Object
implements java.io.Serializable

Data Transfer Object class for EPCSerialNumber. This class implements the facade pattern for an EPCSerialNumber bean. It is used to pass the state information of the bean through a session bean to and from consumers such as a Web client.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
EPCSerialNumberDTO(com.ibm.rfid.epc.config.cmp.EPCSerialNumberLocal epcSerialNumberLocal)
          Constructs an EPCSerialNumber data transfer object.
EPCSerialNumberDTO(java.lang.String unserializedIdURI, java.lang.String discriminator)
          Constructs an EPCSerialNumber data transfer object.
EPCSerialNumberDTO(java.lang.String unserializedIdURI, java.lang.String discriminator, long startRange, long endRange, int increment, long current, java.lang.String description, java.lang.String previousRanges)
          Constructs an EPCSerialNumber data transfer object.
EPCSerialNumberDTO(java.lang.String unserializedIdURI, java.lang.String discriminator, long startRange, long endRange, int increment, java.lang.String description)
          Constructs an EPCSerialNumber data transfer object.
 
Method Summary
 long getCurrent()
          Get the value of current
 java.lang.String getDescription()
          Get the value of description
 java.lang.String getDiscriminator()
          Get the value of discriminator
 long getEndRange()
          Get the value of endRange
 int getIncrement()
          Get the value of increment
 java.lang.String getPreviousRanges()
          Gets the value of previousRanges
 long getStartRange()
          Get the value of startRange
 java.lang.String getUnserializedIdURI()
          Get the value of unserializedIdURI
 void setCurrent(long current)
          Set the value of current
 void setDescription(java.lang.String description)
          Set the value of description
 void setDiscriminator(java.lang.String discriminator)
          Set the value of discriminator
 void setEndRange(long endRange)
          Set the value of endRange
 void setIncrement(int increment)
          Set the value of increment
 void setPreviousRanges(java.lang.String previousRanges)
          Sets the value of previousRanges
 void setStartRange(long startRange)
          Set the value of startRange
 void setUnserializedIdURI(java.lang.String unserializedIdURI)
          Set the value of unserializedIdURI
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

EPCSerialNumberDTO

public EPCSerialNumberDTO(java.lang.String unserializedIdURI,
                          java.lang.String discriminator,
                          long startRange,
                          long endRange,
                          int increment,
                          long current,
                          java.lang.String description,
                          java.lang.String previousRanges)
Constructs an EPCSerialNumber data transfer object. This DTO is used to transfer the state of the entity bean through a session bean to and from consumers without having to serialize the bean itself. This DTO contains no business logic, it is simply a data transfer mechanism. The fields of the DTO should be set to the desired value(s) when used as input to a method of the EPCConfigMgr and may be contain the current value of field(s) of an EPCSerialNumber instance when returned as output from a method of EPCConfigMgr.

Parameters:
unserializedIdURI - string id URI without the serial number/serial reference that identifies the serial config to update
discriminator - string that can be used assign ranges of serial numbers for the same product to different entities. This string can be a location or other identifier, or an empty string if it is not desired to use this feature.
startRange - long number at which to start serialization, must be >= endRange
endRange - long number at which to end serialization, must be <= startRange
increment - integer number by which serial number differs, must >= 1
current - long number which is the last serial number commissioned. Setting this field in the DTO has no effect, it is read-only and is only valid when using the DTO to transfer output from an operation and thus represents the value of the EPCSerialNubmer isntance backing the DTO.
previousRanges - string list of all the ranges of EPCs that have been commissioned out of this config. Setting this field in the DTO has no effect, it is read-only and is only valid when using the DTO to transfer output from an operation and thus represents the value of the EPCSerialNubmer isntance backing the DTO.
description - string describing this serial number configuration

EPCSerialNumberDTO

public EPCSerialNumberDTO(java.lang.String unserializedIdURI,
                          java.lang.String discriminator,
                          long startRange,
                          long endRange,
                          int increment,
                          java.lang.String description)
Constructs an EPCSerialNumber data transfer object. This DTO is used to transfer the state of the entity bean through a session bean to and from consumers without having to serialize the bean itself. This DTO contains no business logic, it is simply a data transfer mechanism. The fields of the DTO should be set to the desired value(s) when used as input to a method of the EPCConfigMgr and may be contain the current value of field(s) of an EPCSerialNumber instance when returned as output from a method of EPCConfigMgr.

Parameters:
unserializedIdURI - string id URI without the serial number/serial reference that identifies the serial config to update
discriminator - string that can be used assign ranges of serial numbers for the same product to different entities. This string can be a location or other identifier, or an empty string if it is not desired to use this feature.
startRange - long number at which to start serialization, must be >= endRange
endRange - long number at which to end serialization, must be <= startRange
increment - integer number by which serial number differs, must >= 1
description - string describing this serial number configuration

EPCSerialNumberDTO

public EPCSerialNumberDTO(java.lang.String unserializedIdURI,
                          java.lang.String discriminator)
Constructs an EPCSerialNumber data transfer object. This DTO is used to transfer the state of the entity bean through a session bean to and from consumers without having to serialize the bean itself. This DTO contains no business logic, it is simply a data transfer mechanism. The fields of the DTO should be set to the desired value(s) when used as input to a method of the EPCConfigMgr and may be contain the current value of field(s) of an EPCSerialNumber instance when returned as output from a method of EPCConfigMgr.

Parameters:
unserializedIdURI - string id URI without the serial number/serial reference that identifies the serial config to update
discriminator - string that can be used assign ranges of serial numbers for the same product to different entities. This string can be a location or other identifier, or an empty string if it is not desired to use this feature.

EPCSerialNumberDTO

public EPCSerialNumberDTO(com.ibm.rfid.epc.config.cmp.EPCSerialNumberLocal epcSerialNumberLocal)
Constructs an EPCSerialNumber data transfer object. This DTO is used to transfer the state of the entity bean through a session bean to and from consumers without having to serialize the bean itself. This DTO contains no business logic, it is simply a data transfer mechanism. The fields of the DTO should be set to the desired value(s) when used as input to a method of the EPCConfigMgr and may be contain the current value of field(s) of an EPCSerialNumber instance when returned as output from a method of EPCConfigMgr.

Parameters:
epcSerialNumberLocal - instance of EPCSerialNumberLocal from which to create a DTO, all the fields of the bean are copied to the respective members of the DTO.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getEndRange

public long getEndRange()
Get the value of endRange

Returns:
the value of endRange

getIncrement

public int getIncrement()
Get the value of increment

Returns:
the value of increment

getDiscriminator

public java.lang.String getDiscriminator()
Get the value of discriminator

Returns:
the value of discriminator

getStartRange

public long getStartRange()
Get the value of startRange

Returns:
the value of startRange

getUnserializedIdURI

public java.lang.String getUnserializedIdURI()
Get the value of unserializedIdURI

Returns:
the value of unserializedIdURI

getCurrent

public long getCurrent()
Get the value of current

Returns:
the value of current

getDescription

public java.lang.String getDescription()
Get the value of description

Returns:
the value of description

setEndRange

public void setEndRange(long endRange)
Set the value of endRange

Parameters:
endRange - the new value of endRange

setIncrement

public void setIncrement(int increment)
Set the value of increment

Parameters:
increment - the new value of increment

setDiscriminator

public void setDiscriminator(java.lang.String discriminator)
Set the value of discriminator

Parameters:
discriminator - the new value of discriminator

setStartRange

public void setStartRange(long startRange)
Set the value of startRange

Parameters:
startRange - the new value of startRange

setUnserializedIdURI

public void setUnserializedIdURI(java.lang.String unserializedIdURI)
Set the value of unserializedIdURI

Parameters:
unserializedIdURI - the new value of unserializedIdURI

setCurrent

public void setCurrent(long current)
Set the value of current

Parameters:
current - the new value of current

setDescription

public void setDescription(java.lang.String description)
Set the value of description

Parameters:
description - the new value of description

getPreviousRanges

public java.lang.String getPreviousRanges()
Gets the value of previousRanges

Returns:
string list of the previously commissioned EPC ranges

setPreviousRanges

public void setPreviousRanges(java.lang.String previousRanges)
Sets the value of previousRanges

Parameters:
previousRanges - the new value of previousRanges


Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.