Used for reflective data
Modifiers | Name | Description |
---|---|---|
interface |
EntityReflector.PropertyReader |
|
interface |
EntityReflector.PropertyWriter |
Type Params | Return Type | Name and description |
---|---|---|
|
org.springframework.cglib.reflect.FastClass |
fastClass() @return The fast class |
|
java.io.Serializable |
getIdentifier(java.lang.Object object) @return Obtain the identifier |
|
java.lang.String |
getIdentifierName() @return The name of the identifier |
|
PersistentEntity |
getPersitentEntity() The entity |
|
java.lang.Object |
getProperty(java.lang.Object object, int index) Get a property for the specified index |
|
java.lang.Object |
getProperty(java.lang.Object object, java.lang.String name) Get a property for the specified index |
|
java.lang.Iterable<java.lang.String> |
getPropertyNames() @return The property names |
|
EntityReflector.PropertyReader |
getPropertyReader(java.lang.String name) @param name Obtains the property reader for the given property |
|
EntityReflector.PropertyWriter |
getPropertyWriter(java.lang.String name) @param name Obtains the property writer for the given property |
|
java.lang.Class |
identifierType() @return The identity type |
|
void |
setIdentifier(java.lang.Object object, java.lang.Object value) Set the identifier |
|
void |
setProperty(java.lang.Object object, int index, java.lang.Object value) Set a property for the specified index |
|
void |
setProperty(java.lang.Object object, java.lang.String name, java.lang.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 valueSet a property for the specified index
object
- The objectname
- The indexvalue
- The value