public class PersistentEntityResource extends org.springframework.hateoas.Resource<Object>
Resource subclass that holds a reference to the entity's PersistentEntity metadata.| Modifier and Type | Class and Description |
|---|---|
static class |
PersistentEntityResource.Builder
Builder to create
PersistentEntityResource instances. |
| Modifier and Type | Method and Description |
|---|---|
static PersistentEntityResource.Builder |
build(Object content,
PersistentEntity<?,?> entity)
Creates a new
PersistentEntityResource.Builder to create PersistentEntityResources eventually. |
Iterable<org.springframework.hateoas.core.EmbeddedWrapper> |
getEmbeddeds()
Returns the resources that are supposed to be rendered in the
_embedded clause. |
PersistentEntity<?,? extends PersistentProperty<?>> |
getPersistentEntity()
Returns the
PersistentEntity for the underlying instance. |
PersistentPropertyAccessor |
getPropertyAccessor()
Returns the
PersistentPropertyAccessor for the underlying content bean. |
boolean |
isNew()
Returns whether the content of the resource is a new entity about to be created.
|
equals, getContent, hashCode, toStringpublic PersistentEntity<?,? extends PersistentProperty<?>> getPersistentEntity()
PersistentEntity for the underlying instance.public PersistentPropertyAccessor getPropertyAccessor()
PersistentPropertyAccessor for the underlying content bean.public Iterable<org.springframework.hateoas.core.EmbeddedWrapper> getEmbeddeds()
_embedded clause.public boolean isNew()
public static PersistentEntityResource.Builder build(Object content, PersistentEntity<?,?> entity)
PersistentEntityResource.Builder to create PersistentEntityResources eventually.content - must not be null.entity - must not be null.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.