public class SameInstanceIdentityHandlerStub extends Object implements IdentityHandler
| Constructor and Description |
|---|
SameInstanceIdentityHandlerStub() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(Object first,
Object second)
This method is responsible for evaluating two objects as equal using the identity.
|
int |
generateHashCode(Object object)
This method will calculate hash code based on the BusinessKey.
|
boolean |
handlerFor(Object object)
This method returns true or false depending on whether this IdentityHandler handles identity for this object
|
static void |
registerIdentityHandlerStubForValue(Object value) |
String |
toString(Object object)
This method is responsible for stringanizing fields in an object.
|
static void |
unregisterIdentityHandlerStubForValue(Object value) |
void |
validate(Object object)
This method validates an object to comply with the BusinessKey annotation rules.
|
public static void registerIdentityHandlerStubForValue(Object value)
public static void unregisterIdentityHandlerStubForValue(Object value)
public boolean areEqual(Object first, Object second)
IdentityHandlerareEqual in interface IdentityHandlerfirst - First object in the equality.second - Second object in the equality.public String toString(Object object)
IdentityHandlertoString in interface IdentityHandlerobject - The Object to be flattened into a string.public void validate(Object object)
IdentityHandlervalidate in interface IdentityHandlerobject - The Business Object to be validated.public int generateHashCode(Object object)
IdentityHandlergenerateHashCode in interface IdentityHandlerobject - Object to generate hashCode for.public boolean handlerFor(Object object)
IdentityHandlerhandlerFor in interface IdentityHandlerobject - Object to handle.Copyright © 2010–2019. All rights reserved.