org.fosstrak.llrp.client.repository.sql.roaccess
Class ROAccessItem

java.lang.Object
  extended by org.fosstrak.llrp.client.repository.sql.roaccess.ROAccessItem

public class ROAccessItem
extends java.lang.Object

Helper class to access and maintain the content of RO_ACCESS_REPORTS.

Author:
sawielan

Constructor Summary
ROAccessItem()
           
 
Method Summary
 java.lang.Object get(int index)
          returns the item requested by the column index used in AbstractSQLROAccessReportsRepository.
 java.lang.Long getAccessSpecID()
           
 java.lang.String getAdapterName()
           
 java.lang.Integer getAntennaID()
           
 java.lang.String getAsCSV()
           
 java.lang.String getAsString(int index)
          returns a string representation of the requested element. use the indices defined in AbstractSQLROAccessReportsRepository.
 java.lang.Integer getC1g2_CRC()
           
 java.lang.Integer getC1g2_PC()
           
 java.lang.Integer getChannelIndex()
           
 java.lang.String getEpc()
           
 java.sql.Timestamp getFirstSeenUptime()
           
 java.sql.Timestamp getFirstSeenUTC()
           
 java.lang.Integer getInventoryPrmSpecID()
           
 java.sql.Timestamp getLastSeenUptime()
           
 java.sql.Timestamp getLastSeenUTC()
           
 java.sql.Timestamp getLogTime()
           
 java.lang.Short getPeakRSSI()
           
 java.lang.String getReaderName()
           
 java.lang.Long getRoSpecID()
           
 java.lang.Integer getSpecIndex()
           
 java.lang.Integer getTagSeenCount()
           
static java.util.List<ROAccessItem> parse(org.llrp.ltk.generated.messages.RO_ACCESS_REPORT report, java.lang.String adapterName, java.lang.String readerName, long currentTime)
          parses the entries of an RO_ACCESS_REPORTS into a list of ROAccessItems.
 void setAccessSpecID(java.lang.Long accessSpecID)
           
 void setAdapterName(java.lang.String adapterName)
           
 void setAntennaID(java.lang.Integer antennaID)
           
 void setC1g2_CRC(java.lang.Integer c1g2CRC)
           
 void setC1g2_PC(java.lang.Integer c1g2PC)
           
 void setChannelIndex(java.lang.Integer channelIndex)
           
 void setEpc(java.lang.String epc)
           
 void setFirstSeenUptime(java.sql.Timestamp firstSeenUptime)
           
 void setFirstSeenUTC(java.sql.Timestamp firstSeenUTC)
           
 void setInventoryPrmSpecID(java.lang.Integer inventoryPrmSpecID)
           
 void setLastSeenUptime(java.sql.Timestamp lastSeenUptime)
           
 void setLastSeenUTC(java.sql.Timestamp lastSeenUTC)
           
 void setLogTime(java.sql.Timestamp logTime)
           
 void setPeakRSSI(java.lang.Short peakRSSI)
           
 void setReaderName(java.lang.String readerName)
           
 void setRoSpecID(java.lang.Long roSpecID)
           
 void setSpecIndex(java.lang.Integer specIndex)
           
 void setTagSeenCount(java.lang.Integer tagSeenCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ROAccessItem

public ROAccessItem()
Method Detail

parse

public static java.util.List<ROAccessItem> parse(org.llrp.ltk.generated.messages.RO_ACCESS_REPORT report,
                                                 java.lang.String adapterName,
                                                 java.lang.String readerName,
                                                 long currentTime)
parses the entries of an RO_ACCESS_REPORTS into a list of ROAccessItems.

Parameters:
report - the RO_ACCESS_REPORTS message.
adapterName - the name of the adapter.
readerName - the name of the reader.
Returns:
a list of ROAccessItem.

setLogTime

public void setLogTime(java.sql.Timestamp logTime)
Parameters:
logTime - the logTime to set

getLogTime

public java.sql.Timestamp getLogTime()
Returns:
the logTime

setAdapterName

public void setAdapterName(java.lang.String adapterName)
Parameters:
adapterName - the adapterName to set

getAdapterName

public java.lang.String getAdapterName()
Returns:
the adapterName

setReaderName

public void setReaderName(java.lang.String readerName)
Parameters:
readerName - the readerName to set

getReaderName

public java.lang.String getReaderName()
Returns:
the readerName

setEpc

public void setEpc(java.lang.String epc)
Parameters:
epc - the epc to set

getEpc

public java.lang.String getEpc()
Returns:
the epc

setRoSpecID

public void setRoSpecID(java.lang.Long roSpecID)
Parameters:
roSpecID - the roSpecID to set

getRoSpecID

public java.lang.Long getRoSpecID()
Returns:
the roSpecID

setSpecIndex

public void setSpecIndex(java.lang.Integer specIndex)
Parameters:
specIndex - the specIndex to set

getSpecIndex

public java.lang.Integer getSpecIndex()
Returns:
the specIndex

setInventoryPrmSpecID

public void setInventoryPrmSpecID(java.lang.Integer inventoryPrmSpecID)
Parameters:
inventoryPrmSpecID - the inventoryPrmSpecID to set

getInventoryPrmSpecID

public java.lang.Integer getInventoryPrmSpecID()
Returns:
the inventoryPrmSpecID

setAntennaID

public void setAntennaID(java.lang.Integer antennaID)
Parameters:
antennaID - the antennaID to set

getAntennaID

public java.lang.Integer getAntennaID()
Returns:
the antennaID

setPeakRSSI

public void setPeakRSSI(java.lang.Short peakRSSI)
Parameters:
peakRSSI - the peakRSSI to set

getPeakRSSI

public java.lang.Short getPeakRSSI()
Returns:
the peakRSSI

getChannelIndex

public java.lang.Integer getChannelIndex()
Returns:
the channelIndex

setChannelIndex

public void setChannelIndex(java.lang.Integer channelIndex)
Parameters:
channelIndex - the channelIndex to set

getFirstSeenUTC

public java.sql.Timestamp getFirstSeenUTC()
Returns:
the firstSeenUTC

setFirstSeenUTC

public void setFirstSeenUTC(java.sql.Timestamp firstSeenUTC)
Parameters:
firstSeenUTC - the firstSeenUTC to set

getFirstSeenUptime

public java.sql.Timestamp getFirstSeenUptime()
Returns:
the firstSeenUptime

setFirstSeenUptime

public void setFirstSeenUptime(java.sql.Timestamp firstSeenUptime)
Parameters:
firstSeenUptime - the firstSeenUptime to set

getLastSeenUTC

public java.sql.Timestamp getLastSeenUTC()
Returns:
the lastSeenUTC

setLastSeenUTC

public void setLastSeenUTC(java.sql.Timestamp lastSeenUTC)
Parameters:
lastSeenUTC - the lastSeenUTC to set

getLastSeenUptime

public java.sql.Timestamp getLastSeenUptime()
Returns:
the lastSeenUptime

setLastSeenUptime

public void setLastSeenUptime(java.sql.Timestamp lastSeenUptime)
Parameters:
lastSeenUptime - the lastSeenUptime to set

getTagSeenCount

public java.lang.Integer getTagSeenCount()
Returns:
the tagSeenCount

setTagSeenCount

public void setTagSeenCount(java.lang.Integer tagSeenCount)
Parameters:
tagSeenCount - the tagSeenCount to set

getC1g2_CRC

public java.lang.Integer getC1g2_CRC()
Returns:
the c1g2_CRC

setC1g2_CRC

public void setC1g2_CRC(java.lang.Integer c1g2CRC)
Parameters:
c1g2CRC - the c1g2_CRC to set

getC1g2_PC

public java.lang.Integer getC1g2_PC()
Returns:
the c1g2_PC

setC1g2_PC

public void setC1g2_PC(java.lang.Integer c1g2PC)
Parameters:
c1g2PC - the c1g2_PC to set

getAccessSpecID

public java.lang.Long getAccessSpecID()
Returns:
the accessSpecID

setAccessSpecID

public void setAccessSpecID(java.lang.Long accessSpecID)
Parameters:
accessSpecID - the accessSpecID to set

get

public java.lang.Object get(int index)
returns the item requested by the column index used in AbstractSQLROAccessReportsRepository. We recommend to use those constants.

Parameters:
index - the index to use.
Returns:
the object requested.

getAsString

public java.lang.String getAsString(int index)
returns a string representation of the requested element. use the indices defined in AbstractSQLROAccessReportsRepository.

Parameters:
index - the column index to use.
Returns:
the string representation or null if exception.

getAsCSV

public java.lang.String getAsCSV()
Returns:
generates a comma-separated-values representation of this item.


Copyright © 2009. All Rights Reserved.