Package overit.geocall.edm.model
Record Class EntityIndexUpdateResult
java.lang.Object
java.lang.Record
overit.geocall.edm.model.EntityIndexUpdateResult
- Record Components:
dataEntity-DataEntityabout the data entity for which index update is requested.indexRealName-Stringabout the real name of the index.result-EntityIndexUpdateResult.Resultabout the update operation result.detailMessage-Stringabout a possible detail message.exception-Exceptionabout a possible error occurred while updating the index.
- All Implemented Interfaces:
Serializable
public record EntityIndexUpdateResult(DataEntity dataEntity, String indexRealName, EntityIndexUpdateResult.Result result, String detailMessage, Exception exception)
extends Record
implements Serializable
Record about the result of the update of an index associated with the provided
DataEntity.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEntityIndexUpdateResult(DataEntity dataEntity, String indexRealName, String detailMessage, Exception exception) Creates and return a newEntityIndexUpdateResultinstance using the provided parameters.EntityIndexUpdateResult(DataEntity dataEntity, String indexRealName, EntityIndexUpdateResult.Result result, String detailMessage) Creates and return a newEntityIndexUpdateResultinstance using the provided parameters.EntityIndexUpdateResult(DataEntity dataEntity, String indexRealName, EntityIndexUpdateResult.Result result, String detailMessage, Exception exception) Creates an instance of aEntityIndexUpdateResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataEntityrecord component.Returns the value of thedetailMessagerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theindexRealNamerecord component.booleanisError()Returnstruein case the update operation has failed;falseotherwise.voidLaunches theEntityIndexUpdatedEventevent using the current instance as payload.result()Returns the value of theresultrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
EntityIndexUpdateResult
public EntityIndexUpdateResult(DataEntity dataEntity, String indexRealName, String detailMessage, Exception exception) Creates and return a newEntityIndexUpdateResultinstance using the provided parameters.- Parameters:
dataEntity-DataEntityabout the data entity for which index update is requested.indexRealName-Stringabout the real name of the index.detailMessage-Stringabout a possible detail message.exception-Exceptionabout an error occurred while updating the index.
-
EntityIndexUpdateResult
public EntityIndexUpdateResult(DataEntity dataEntity, String indexRealName, EntityIndexUpdateResult.Result result, String detailMessage) Creates and return a newEntityIndexUpdateResultinstance using the provided parameters.- Parameters:
dataEntity-DataEntityabout the data entity for which index update is requested.indexRealName-Stringabout the real name of the index.result-EntityIndexUpdateResult.Resultabout the update operation result.detailMessage-Stringabout a possible detail message.
-
EntityIndexUpdateResult
public EntityIndexUpdateResult(DataEntity dataEntity, String indexRealName, EntityIndexUpdateResult.Result result, String detailMessage, Exception exception) Creates an instance of aEntityIndexUpdateResultrecord class.- Parameters:
dataEntity- the value for thedataEntityrecord componentindexRealName- the value for theindexRealNamerecord componentresult- the value for theresultrecord componentdetailMessage- the value for thedetailMessagerecord componentexception- the value for theexceptionrecord component
-
-
Method Details
-
launchEventIndexUpdatedEvent
public void launchEventIndexUpdatedEvent()Launches theEntityIndexUpdatedEventevent using the current instance as payload. -
isError
public boolean isError()Returnstruein case the update operation has failed;falseotherwise.- Returns:
truein case the update operation has failed;falseotherwise.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
dataEntity
Returns the value of thedataEntityrecord component.- Returns:
- the value of the
dataEntityrecord component
-
indexRealName
Returns the value of theindexRealNamerecord component.- Returns:
- the value of the
indexRealNamerecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
detailMessage
Returns the value of thedetailMessagerecord component.- Returns:
- the value of the
detailMessagerecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-