Package tenapull.data.entity.response
Class NessusResponse.MultiChildTemplate<POJO extends NessusResponse.MultiChildTemplate<POJO,R>,R extends NessusResponse>
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.GeneratedIdPojo
tenapull.data.entity.response.NessusResponse.MultiChildTemplate<POJO,R>
- Type Parameters:
POJO
- the child pojo type, implementing SingleChildTemplateR
- the parent response type, implementing NessusResponse
- All Implemented Interfaces:
NessusResponse.ResponseChild<POJO,R>
,DbPojo
- Direct Known Subclasses:
ScanResponse.MultiChild
- Enclosing interface:
- NessusResponse<RES extends NessusResponse<RES>>
@MappedSuperclass public abstract static class NessusResponse.MultiChildTemplate<POJO extends NessusResponse.MultiChildTemplate<POJO,R>,R extends NessusResponse> extends GeneratedIdPojo implements NessusResponse.ResponseChild<POJO,R>
Represents a nested entity with a Many-to-one relationship with the response
-
Constructor Summary
Constructors Constructor Description MultiChildTemplate()
-
Method Summary
Modifier and Type Method Description protected boolean
__match(POJO other)
Convienence method for subclass implementations wishing to implement one of the object lookup interfaces, which checks the response ids against each other.protected void
__set(POJO o)
Convenience method for subclass implementations wishing to implement one of the object lookup interfaces.boolean
equals(java.lang.Object o)
R
getResponse()
Gets parent response.void
setResponse(R response)
Sets parent response.Methods inherited from class tenapull.data.entity.template.GeneratedIdPojo
__set, 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
_prepare, getId, setId, toJsonNode, toJsonString
-
Constructor Details
-
MultiChildTemplate
public MultiChildTemplate()
-
-
Method Details
-
getResponse
Description copied from interface:NessusResponse.ResponseChild
Gets parent response.- Specified by:
getResponse
in interfaceNessusResponse.ResponseChild<POJO extends NessusResponse.MultiChildTemplate<POJO,R>,R extends NessusResponse>
- Returns:
- the response
-
setResponse
Description copied from interface:NessusResponse.ResponseChild
Sets parent response.- Specified by:
setResponse
in interfaceNessusResponse.ResponseChild<POJO extends NessusResponse.MultiChildTemplate<POJO,R>,R extends NessusResponse>
- Parameters:
response
- the response
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classGeneratedIdPojo
-
__set
Convenience method for subclass implementations wishing to implement one of the object lookup interfaces. Includes a call to the ExtensibleJson __set() and then sets the response object to match as well- Parameters:
o
- the other pojo representing the same db record as this one
-
__match
Convienence method for subclass implementations wishing to implement one of the object lookup interfaces, which checks the response ids against each other. It is assumed that the multi child lookups will be using a composite key that includes the response id as well as another id from the Nessus API- Parameters:
other
- the other- Returns:
- the boolean
-