public class ReflectionBasedEntityMetadata extends Object implements EntityMetadata
Reflection based implementation for entity metadata.
| Type | Property and Description |
|---|---|
boolean |
hasId
True if it contains an id property, false otherwise.
|
PropertyMetadata |
id
Returns the metadata for the id property if set, or null otherwise.
|
| 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 boolean hasIdProperty
hasIdProperty in interface EntityMetadatapublic PropertyMetadata idProperty
idProperty in interface EntityMetadatapublic 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.