Class SeverityLevelCount
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.GeneratedIdPojo
tenapull.data.entity.objectLookup.SeverityLevelCount
- All Implemented Interfaces:
java.lang.Comparable<SeverityLevelCount>
,DbPojo
,MapLookupPojo<SeverityLevelCount>
@Entity(name="SeverityLevelCount") public class SeverityLevelCount extends GeneratedIdPojo implements MapLookupPojo<SeverityLevelCount>, java.lang.Comparable<SeverityLevelCount>
Represents a reusable "object lookup", for the list of objects in the "severitycount" arrays
within the host objects returned from the Nessus API at /scans/<scan-id>
-
Field Summary
Fields Modifier and Type Field Description static MapLookupDao<SeverityLevelCount>
dao
The dao for SeverityLevelCount -
Constructor Summary
Constructors Constructor Description SeverityLevelCount()
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
_getSearchMap()
Return a map to be used by the POJO type's dao, to find the database record matching the same record that this pojo representsboolean
_match(SeverityLevelCount o)
Determine if this pojo represents the same DB record as another POJO of the same type.void
_prepare()
Perform any operations necessary to prepare this pojo for insertion or updating in the databasevoid
_set(SeverityLevelCount o)
Set the values in this POJO to be identical to another POJO representing the same DB recordint
compareTo(SeverityLevelCount o)
int
getCount()
Gets count.int
getSeverityLevel()
Gets severity level.void
setCount(int count)
Sets count.void
setSeverityLevel(int severityLevel)
Sets severity level.Methods inherited from class tenapull.data.entity.template.GeneratedIdPojo
__set, equals, getId, hashCode, setId
Methods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
__prepare, getExtraJson, getExtraJson, getExtraJsonMap, putExtraJson, setExtraJson, toJsonNode, toJsonString, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface tenapull.data.entity.template.DbPojo
getId, setId, toJsonNode, toJsonString
-
Field Details
-
dao
The dao for SeverityLevelCount
-
-
Constructor Details
-
SeverityLevelCount
public SeverityLevelCount()
-
-
Method Details
-
getSeverityLevel
public int getSeverityLevel()Gets severity level.- Returns:
- the severity level
-
setSeverityLevel
public void setSeverityLevel(int severityLevel)Sets severity level.- Parameters:
severityLevel
- the severity level
-
getCount
public int getCount()Gets count.- Returns:
- the count
-
setCount
public void setCount(int count)Sets count.- Parameters:
count
- the count
-
_prepare
public void _prepare()Description copied from interface:DbPojo
Perform any operations necessary to prepare this pojo for insertion or updating in the database -
_set
Description copied from interface:MapLookupPojo
Set the values in this POJO to be identical to another POJO representing the same DB record- Specified by:
_set
in interfaceMapLookupPojo<SeverityLevelCount>
-
_match
Description copied from interface:MapLookupPojo
Determine if this pojo represents the same DB record as another POJO of the same type. Note that this is NOT the same as the equals() method (though it may be in certain cases). Equals may be used to determine if two pojos of the same type contain all of the same values, regardless of whether they represent the same DB record (depending on implementation) while _match determines only if they represent the same DB record even if some of the values may not be equivalent. In many cases the two methods may be the same, but their purpose is different.- Specified by:
_match
in interfaceMapLookupPojo<SeverityLevelCount>
- Parameters:
o
- the other pojo to match- Returns:
- true if the two pojos represent the same DB record, false if not
-
_getSearchMap
public java.util.Map<java.lang.String,java.lang.Object> _getSearchMap()Description copied from interface:MapLookupPojo
Return a map to be used by the POJO type's dao, to find the database record matching the same record that this pojo represents- Specified by:
_getSearchMap
in interfaceMapLookupPojo<SeverityLevelCount>
- Returns:
-
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<SeverityLevelCount>
-