public class ReflectionBasedEntityMetadata extends Object implements EntityMetadata
| 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()
EntityMetadataproperties in interface EntityMetadatapublic boolean hasIdProperty()
EntityMetadatahasIdProperty in interface EntityMetadatapublic PropertyMetadata idProperty()
EntityMetadataidProperty in interface EntityMetadataCopyright © 2015 Couchbase, Inc.