X
- The Java type represented by the managed type owning the attributeY
- The Java element type of the attributepublic interface ExtendedAttribute<X,Y>
Attribute
that allows additionally efficient access to properties of the metamodel.Modifier and Type | Method | Description |
---|---|---|
javax.persistence.metamodel.Attribute<X,?> |
getAttribute() |
Returns the underlying attribute.
|
List<javax.persistence.metamodel.Attribute<?,?>> |
getAttributePath() |
Returns the path from the owning entity type to this attribute.
|
String[] |
getColumnNames() |
Returns the column names of the attribute.
|
String[] |
getColumnTypes() |
Returns the SQL column type names of the attribute.
|
Class<Y> |
getElementClass() |
Returns the element type of the attribute.
|
JoinTable |
getJoinTable() |
If the attribute is a collection that uses a join table, returns it's descriptor.
|
JpaProvider.ConstraintType |
getJoinTypeIndexedRequiresTreatFilter(JoinType joinType) |
Returns where to put treat filters for a treat joined association of this attribute.
|
String |
getMappedBy() |
If the attribute is an inverse collection, the mapped by attribute name is returned.
|
Map<String,String> |
getWritableMappedByMappings(javax.persistence.metamodel.EntityType<?> inverseType) |
If the attribute is insertable = false and updatable = false it returns the writable mappings for the inverse type.
|
boolean |
hasCascadingDeleteCycle() |
Returns whether the type of the attribute causes a cascading delete cycle.
|
boolean |
isBag() |
Whether the attribute is a non-indexed and non-ordered collection a.k.a. a bag.
|
boolean |
isColumnShared() |
Whether columns for the attribute are shared between multiple subtypes
or shared by occupying the same slot in the resulting SQL.
|
boolean |
isDeleteCascaded() |
Whether delete cascading is activated for the attribute.
|
boolean |
isForeignJoinColumn() |
Whether the join columns for the attribute are in a foreign table.
|
boolean |
isOrphanRemoval() |
Whether orphan removal is activated for the attribute.
|
javax.persistence.metamodel.Attribute<X,?> getAttribute()
List<javax.persistence.metamodel.Attribute<?,?>> getAttributePath()
Class<Y> getElementClass()
boolean hasCascadingDeleteCycle()
boolean isForeignJoinColumn()
boolean isColumnShared()
boolean isBag()
boolean isOrphanRemoval()
boolean isDeleteCascaded()
JpaProvider.ConstraintType getJoinTypeIndexedRequiresTreatFilter(JoinType joinType)
joinType
- The join type used for the treat joinMap<String,String> getWritableMappedByMappings(javax.persistence.metamodel.EntityType<?> inverseType)
inverseType
- The type containing the inverse relationString getMappedBy()
JoinTable getJoinTable()
String[] getColumnNames()
String[] getColumnTypes()
Copyright © 2014–2018 Blazebit. All rights reserved.