org.geebis.books.model.item
Class SerialNumber

java.lang.Object
  extended by org.geebis.books.model.item.SerialNumber
All Implemented Interfaces:
java.io.Serializable

@Name(value="serialNumber")
public class SerialNumber
extends java.lang.Object
implements java.io.Serializable

The SerialNumber class represents an individual serial number in the system

See Also:
Serialized Form

Constructor Summary
SerialNumber()
           
SerialNumber(java.lang.String serialNumber)
           
 
Method Summary
 java.lang.Long getId()
           
 SerializedProduct getSerializedProduct()
          Gets the SerializedProduct that this serial number belongs to
 java.lang.String getSerialNumber()
          This is the unit's actual serial number.
 java.lang.Integer getVersion()
           
 void setId(java.lang.Long id)
           
 void setSerializedProduct(SerializedProduct serializedProduct)
          Sets the serial numbers serialized product
 void setSerialNumber(java.lang.String serialNumber)
          Sets the serial number for this unit
 void setVersion(java.lang.Integer version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialNumber

public SerialNumber()

SerialNumber

public SerialNumber(java.lang.String serialNumber)
Method Detail

getSerialNumber

public java.lang.String getSerialNumber()
This is the unit's actual serial number. This field is NOT unique because serial numbers are not unique accross multiple manufacturers or even within the same manufacturer

Returns:
the serial number for this unit

setSerialNumber

public void setSerialNumber(java.lang.String serialNumber)
Sets the serial number for this unit

Parameters:
serialNumber - the new serial number for this unit

getSerializedProduct

public SerializedProduct getSerializedProduct()
Gets the SerializedProduct that this serial number belongs to

Returns:
the serial numbers serialized product

setSerializedProduct

public void setSerializedProduct(SerializedProduct serializedProduct)
Sets the serial numbers serialized product

Parameters:
serializedProduct - the new SerializedProduct for this serial number

getVersion

public java.lang.Integer getVersion()

setVersion

public void setVersion(java.lang.Integer version)

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)