Interface SingularAttribute<X,​Y>

Type Parameters:
X - The type of the declaring entity view
Y - The type of attribute
All Superinterfaces:
Attribute<X,​Y>
All Known Subinterfaces:
MethodSingularAttribute<X,​Y>, SubqueryAttribute<X,​Y>

public interface SingularAttribute<X,​Y>
extends Attribute<X,​Y>
Instances of the type SingularAttribute represents single-valued properties or fields.
Since:
1.0.0
Author:
Christian Beikov
  • Method Details

    • getType

      Type<Y> getType()
      Returns the type representing the type of the attribute.
      Returns:
      The type of the attribute
      Since:
      1.2.0
    • getInheritanceSubtypeMappings

      Map<ManagedViewType<? extends Y>,​String> getInheritanceSubtypeMappings()
      Returns the inheritance subtype mappings that should be considered for this attribute. When the attribute type is not a subview, this returns an empty map.
      Returns:
      The inheritance subtype mappings or an empty map
      Since:
      1.2.0
    • isQueryParameter

      boolean isQueryParameter()
      Returns true if this attribute maps to a query parameter, otherwise false.
      Returns:
      True if this attribute maps to a query parameter, otherwise false
    • isId

      boolean isId()
      Returns true if this attribute maps to the entity id, otherwise false.
      Returns:
      True if this attribute maps to the entity id, otherwise false
    • isCreateEmptyFlatView

      boolean isCreateEmptyFlatView()
      Returns true if an empty flat view should be created for this attribute, otherwise false.
      Returns:
      True if an empty flat view should be created for this attribute, otherwise false
      Since:
      1.5.0