public interface EntityReflector
Used for reflective data
| Modifiers | Name | Description |
|---|---|---|
interface |
EntityReflector.PropertyReader |
|
interface |
EntityReflector.PropertyWriter |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public org.springframework.cglib.reflect.FastClass |
fastClass()
|
|
public Map<String, Object> |
getDirtyCheckingState(Object entity)
|
|
public Serializable |
getIdentifier(Object object)
|
|
public String |
getIdentifierName()
|
|
public PersistentEntity |
getPersitentEntity()The entity |
|
public Object |
getProperty(Object object, int index)Get a property for the specified index |
|
public Object |
getProperty(Object object, String name)Get a property for the specified index |
|
public Iterable<String> |
getPropertyNames()
|
|
public PropertyReader |
getPropertyReader(String name)
|
|
public PropertyWriter |
getPropertyWriter(String name)
|
|
public Class |
identifierType()
|
|
public void |
setIdentifier(Object object, Object value)Set the identifier |
|
public void |
setProperty(Object object, int index, Object value)Set a property for the specified index |
|
public void |
setProperty(Object object, String name, Object value)Set a property for the specified index |
The entity
Get a property for the specified index
object - The objectindex - The indexGet a property for the specified index
object - The objectname - The index
name - Obtains the property reader for the given property
name - Obtains the property writer for the given property
Set the identifier
value - The valueSet a property for the specified index
object - The objectindex - The indexvalue - The value