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.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.NaturalIdPojo
__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
-
SingleChildTemplate
public SingleChildTemplate()
-
-
Method Details
-
getResponse
Description copied from interface:NessusResponse.ResponseChild
Gets parent response.- Specified by:
getResponse
in interfaceNessusResponse.ResponseChild<POJO extends NessusResponse.SingleChildTemplate<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.SingleChildTemplate<POJO,R>,R extends NessusResponse>
- Parameters:
response
- the response
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in 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
-