public class ReflectionBasedEntityMetadata extends Object implements EntityMetadata
Reflection based implementation for entity metadata.
| Constructor and Description |
|---|
ReflectionBasedEntityMetadata(Class<?> sourceEntity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasIdProperty()
True if it contains an id property, false otherwise.
|
PropertyMetadata |
idProperty()
Returns the metadata for the id property if set, or null otherwise.
|
List<PropertyMetadata> |
properties()
Returns the metadata for all properties in this entity.
|
public ReflectionBasedEntityMetadata(Class<?> sourceEntity)
public List<PropertyMetadata> properties()
EntityMetadataReturns the metadata for all properties in this entity.
properties in interface EntityMetadatapublic boolean hasIdProperty()
EntityMetadataTrue if it contains an id property, false otherwise.
hasIdProperty in interface EntityMetadatapublic PropertyMetadata idProperty()
EntityMetadataReturns the metadata for the id property if set, or null otherwise.
idProperty in interface EntityMetadataCopyright © 2015 Couchbase, Inc.