public interface PropertyMetadata
Represents the metadata for a document property inside an EntityMetadata
.
Modifier and Type | Method and Description |
---|---|
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.
|
boolean isId()
If this property represents the Document ID.
boolean isField()
If this property represents a field in the Document.
String name()
The name of the field inside the document.
If an alias is used, it is reflected in here. If the raw field name in the entity is needed, use realName()
.
String realName()
The name of the actual property inside the java entity.
Object get(Object source)
Returns the content of the field property.
source
- the source object.void set(Object value, Object source)
Sets the content of the field property.
value
- the value to set.source
- the source object.Class<?> type()
The type of the field property.
Copyright © 2015 Couchbase, Inc.