public class ReflectionBasedPropertyMetadata extends Object implements PropertyMetadata
Constructor and Description |
---|
ReflectionBasedPropertyMetadata(Field fieldReference) |
Modifier and Type | Method and Description |
---|---|
String |
encryptionProviderName()
Get the encryption crypto algorithm provider name set
|
Object |
get(Object source)
Returns the content of the field property.
|
boolean |
isField()
If this property represents a field in the Document.
|
boolean |
isId()
If this property represents the Document ID.
|
String |
name()
The name of the field inside the document.
|
String |
realName()
The name of the actual property inside the java entity.
|
void |
set(Object value,
Object source)
Sets the content of the field property.
|
Class<?> |
type()
The type of the field property.
|
public ReflectionBasedPropertyMetadata(Field fieldReference)
public boolean isId()
PropertyMetadata
isId
in interface PropertyMetadata
public boolean isField()
PropertyMetadata
isField
in interface PropertyMetadata
public String encryptionProviderName()
PropertyMetadata
encryptionProviderName
in interface PropertyMetadata
public String name()
PropertyMetadata
PropertyMetadata.realName()
.name
in interface PropertyMetadata
public String realName()
PropertyMetadata
realName
in interface PropertyMetadata
public Class<?> type()
PropertyMetadata
type
in interface PropertyMetadata
public Object get(Object source)
PropertyMetadata
get
in interface PropertyMetadata
source
- the source object.public void set(Object value, Object source)
PropertyMetadata
set
in interface PropertyMetadata
value
- the value to set.source
- the source object.Copyright © 2015 Couchbase, Inc.