Package tenapull.data.entity.response
Class NessusResponse.SingleChildTemplate<POJO extends NessusResponse.SingleChildTemplate<POJO,R>,R extends NessusResponse>
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.NaturalIdPojo
tenapull.data.entity.response.NessusResponse.SingleChildTemplate<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:
ScanHostInfo,ScanResponse.SingleChild
- Enclosing interface:
- NessusResponse<RES extends NessusResponse<RES>>
@MappedSuperclass public abstract static class NessusResponse.SingleChildTemplate<POJO extends NessusResponse.SingleChildTemplate<POJO,R>,R extends NessusResponse> extends NaturalIdPojo implements NessusResponse.ResponseChild<POJO,R>
Represents a nested entity with a one-to-one relationship with the response
-
Constructor Summary
Constructors Constructor Description SingleChildTemplate() -
Method Summary
Modifier and Type Method Description 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.NaturalIdPojo
__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
-
SingleChildTemplate
public SingleChildTemplate()
-
-
Method Details
-
getResponse
Description copied from interface:NessusResponse.ResponseChildGets parent response.- Specified by:
getResponsein interfaceNessusResponse.ResponseChild<POJO extends NessusResponse.SingleChildTemplate<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.SingleChildTemplate<POJO,R>,R extends NessusResponse>- Parameters:
response- the response
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classNaturalIdPojo
-
__set
Convenience method for subclass implementations wishing to implement one of the object lookup interfaces. Includes a call to NaturalIdPojo.__set(other) and then sets the response object to match as well- Parameters:
o- the other pojo representing the same db record as this one
-