public interface JpaMetamodelAccessor
Modifier and Type | Method | Description |
---|---|---|
AttributePath |
getAttributePath(javax.persistence.metamodel.Metamodel metamodel,
javax.persistence.metamodel.ManagedType<?> type,
String attributePath) |
Construct an
AttributePath for a particular attribute in type. |
AttributePath |
getBasicAttributePath(javax.persistence.metamodel.Metamodel metamodel,
javax.persistence.metamodel.ManagedType<?> type,
String attributePath) |
Construct an
AttributePath for a particular basic attribute in type. |
AttributePath |
getJoinTableCollectionAttributePath(javax.persistence.metamodel.Metamodel metamodel,
javax.persistence.metamodel.EntityType<?> type,
String attributePath,
String collectionName) |
Construct an
AttributePath for a particular collection attribute in type. |
boolean |
isCompositeNode(javax.persistence.metamodel.Attribute<?,?> attr) |
Returns true if the attribute is composite (i.e. embeddable).
|
boolean |
isElementCollection(javax.persistence.metamodel.Attribute<?,?> attribute) |
Returns whether the given attribute is an element collection.
|
boolean |
isJoinable(javax.persistence.metamodel.Attribute<?,?> attr) |
Returns true if the attribute is joinable (i.e. association).
|
AttributePath getAttributePath(javax.persistence.metamodel.Metamodel metamodel, javax.persistence.metamodel.ManagedType<?> type, String attributePath)
AttributePath
for a particular attribute in type.metamodel
- JPA metamodeltype
- Owning typeattributePath
- The attribute pathAttributePath getBasicAttributePath(javax.persistence.metamodel.Metamodel metamodel, javax.persistence.metamodel.ManagedType<?> type, String attributePath)
AttributePath
for a particular basic attribute in type.metamodel
- JPA metamodeltype
- Owning typeattributePath
- The attribute pathAttributePath getJoinTableCollectionAttributePath(javax.persistence.metamodel.Metamodel metamodel, javax.persistence.metamodel.EntityType<?> type, String attributePath, String collectionName)
AttributePath
for a particular collection attribute in type.metamodel
- JPA metamodeltype
- Owning typeattributePath
- The attribute pathcollectionName
- The name of the collectionboolean isJoinable(javax.persistence.metamodel.Attribute<?,?> attr)
attr
- The attributeboolean isCompositeNode(javax.persistence.metamodel.Attribute<?,?> attr)
attr
- The attributeboolean isElementCollection(javax.persistence.metamodel.Attribute<?,?> attribute)
attribute
- The attribute to checkCopyright © 2014–2019 Blazebit. All rights reserved.