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 EntityMetadata
public PropertyMetadata idProperty
idProperty
in interface EntityMetadata
public ReflectionBasedEntityMetadata(Class<?> sourceEntity)
public List<PropertyMetadata> properties()
EntityMetadata
Returns the metadata for all properties in this entity.
properties
in interface EntityMetadata
public boolean hasIdProperty()
EntityMetadata
True if it contains an id property, false otherwise.
hasIdProperty
in interface EntityMetadata
public PropertyMetadata idProperty()
EntityMetadata
Returns the metadata for the id property if set, or null otherwise.
idProperty
in interface EntityMetadata
Copyright © 2015 Couchbase, Inc.