|
Spring Data JPA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
org.springframework.data.jpa.repository.support.JpaEntityInformationSupport<T,ID>
org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformation<T,ID>
public class JpaMetamodelEntityInformation<T,ID extends Serializable>
Implementation of EntityInformation that uses JPA Metamodel
to find the domain class' id field.
| Constructor Summary | |
|---|---|
JpaMetamodelEntityInformation(Class<T> domainClass,
javax.persistence.metamodel.Metamodel metamodel)
Creates a new JpaMetamodelEntityInformation for the given domain class and Metamodel. |
|
| Method Summary | |
|---|---|
Object |
getCompositeIdAttributeValue(Serializable id,
String idAttribute)
Extracts the value for the given id attribute from a composite id |
ID |
getId(T entity)
|
javax.persistence.metamodel.SingularAttribute<? super T,?> |
getIdAttribute()
Returns the id attribute of the entity. |
Iterable<String> |
getIdAttributeNames()
Returns the attribute names of the id attributes. |
Class<ID> |
getIdType()
|
boolean |
hasCompositeId()
Returns true if the entity has a composite id |
| Methods inherited from class org.springframework.data.jpa.repository.support.JpaEntityInformationSupport |
|---|
getEntityName, getMetadata |
| Methods inherited from class org.springframework.data.repository.core.support.AbstractEntityInformation |
|---|
getJavaType, isNew |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.data.repository.core.EntityInformation |
|---|
isNew |
| Methods inherited from interface org.springframework.data.repository.core.EntityMetadata |
|---|
getJavaType |
| Constructor Detail |
|---|
public JpaMetamodelEntityInformation(Class<T> domainClass,
javax.persistence.metamodel.Metamodel metamodel)
JpaMetamodelEntityInformation for the given domain class and Metamodel.
domainClass - must not be null.metamodel - must not be null.| Method Detail |
|---|
public ID getId(T entity)
public Class<ID> getIdType()
public javax.persistence.metamodel.SingularAttribute<? super T,?> getIdAttribute()
JpaEntityInformation
public boolean hasCompositeId()
JpaEntityInformation
public Iterable<String> getIdAttributeNames()
JpaEntityInformation
public Object getCompositeIdAttributeValue(Serializable id,
String idAttribute)
JpaEntityInformation
|
Spring Data JPA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||