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.booleanequals(java.lang.Object o)RgetResponse()Gets parent response.voidsetResponse(R response)Sets parent response.Methods inherited from class tenapull.data.entity.template.GeneratedIdPojo
__set, 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
_prepare, getId, setId, toJsonNode, toJsonString
-
Constructor Details
-
MultiChildTemplate
public MultiChildTemplate()
-
-
Method Details
-
getResponse
Description copied from interface:NessusResponse.ResponseChildGets parent response.- Specified by:
getResponsein interfaceNessusResponse.ResponseChild<POJO extends NessusResponse.MultiChildTemplate<POJO,R>,R extends NessusResponse>- Returns:
- the response
-
setResponse
Description copied from interface:NessusResponse.ResponseChildSets parent response.- Specified by:
setResponsein interfaceNessusResponse.ResponseChild<POJO extends NessusResponse.MultiChildTemplate<POJO,R>,R extends NessusResponse>- Parameters:
response- the response
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin 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
-