Class PluginHost
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.GeneratedIdPojo
tenapull.data.entity.objectLookup.PluginHost
- All Implemented Interfaces:
DbPojo,MapLookupPojo<PluginHost>
@Entity(name="PluginHost") public class PluginHost extends GeneratedIdPojo implements MapLookupPojo<PluginHost>
Represents a reusable "object lookup", for an object in the hosts list within each
plugin returned from the Nessus API at /scans/<scan-id>
-
Field Summary
Fields Modifier and Type Field Description static MapLookupDao<PluginHost>daoThe dao for PluginHost -
Constructor Summary
Constructors Constructor Description PluginHost() -
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(PluginHost 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(PluginHost o)Set the values in this POJO to be identical to another POJO representing the same DB recordHostFqdngetHostFqdn()Gets host fqdn.java.lang.IntegergetHostId()Gets host id.HostIpgetHostIp()Gets host ip.HostnamegetHostname()Gets hostname.voidsetHostFqdn(HostFqdn hostFqdn)Sets host fqdn.voidsetHostId(java.lang.Integer hostId)Sets host id.voidsetHostIp(HostIp hostIp)Sets host ip.voidsetHostname(Hostname hostname)Sets hostname.Methods inherited from class tenapull.data.entity.template.GeneratedIdPojo
__set, equals, getId, hashCode, setIdMethods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
__prepare, getExtraJson, getExtraJson, getExtraJsonMap, putExtraJson, setExtraJson, toJsonNode, toJsonString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tenapull.data.entity.template.DbPojo
getId, setId, toJsonNode, toJsonString
-
Field Details
-
dao
The dao for PluginHost
-
-
Constructor Details
-
PluginHost
public PluginHost()
-
-
Method Details
-
getHostIp
Gets host ip.- Returns:
- the host ip
-
setHostIp
Sets host ip.- Parameters:
hostIp- the host ip
-
getHostId
public java.lang.Integer getHostId()Gets host id.- Returns:
- the host id
-
setHostId
public void setHostId(java.lang.Integer hostId)Sets host id.- Parameters:
hostId- the host id
-
getHostFqdn
Gets host fqdn.- Returns:
- the host fqdn
-
setHostFqdn
Sets host fqdn.- Parameters:
hostFqdn- the host fqdn
-
getHostname
Gets hostname.- Returns:
- the hostname
-
setHostname
Sets hostname.- Parameters:
hostname- the hostname
-
_prepare
public void _prepare()Description copied from interface:DbPojoPerform any operations necessary to prepare this pojo for insertion or updating in the database -
_set
Description copied from interface:MapLookupPojoSet the values in this POJO to be identical to another POJO representing the same DB record- Specified by:
_setin interfaceMapLookupPojo<PluginHost>
-
_match
Description copied from interface:MapLookupPojoDetermine 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:
_matchin interfaceMapLookupPojo<PluginHost>- 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:MapLookupPojoReturn 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:
_getSearchMapin interfaceMapLookupPojo<PluginHost>- Returns:
-