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