Interface FieldOperations

All Known Implementing Classes:
Field

public interface FieldOperations
Mix-in interface for Field providing operations.
Author:
Bernhard Haumacher
  • Method Summary

    Modifier and Type
    Method
    Description
    default Field
    The Field in this field's type that is marked as container, or null if no such field exists.
    default String
    The name of the inverse reference of this one.
    default Option
    The annotation marking this reference as "reverse".
    default boolean
    Whether this is a derived reference pointing to the owner of the object this referenec belongs to.
    default boolean
    Whether this field cannot be set by the application
    default boolean
    Whether this is a cross reference (not a composition which is the default).
    default boolean
    Whether this is a reverse reference.
    default boolean
    Whether this field is the reverse to the reference with the given name.
    The implementation.
  • Method Details

    • self

      Field self()
      The implementation.
    • isDerived

      default boolean isDerived()
      Whether this field cannot be set by the application
    • isContainer

      default boolean isContainer()
      Whether this is a derived reference pointing to the owner of the object this referenec belongs to.
    • isRef

      default boolean isRef()
      Whether this is a cross reference (not a composition which is the default).
    • isReverse

      default boolean isReverse()
      Whether this is a reverse reference.
    • isReverseOf

      default boolean isReverseOf(String name)
      Whether this field is the reverse to the reference with the given name.
    • getReverse

      default String getReverse()
      The name of the inverse reference of this one.
      Returns:
      The name of the reverse reference to this one, or null if no such reference exists.
    • getReverseAnnotation

      default Option getReverseAnnotation()
      The annotation marking this reference as "reverse".
    • container

      default Field container()
      The Field in this field's type that is marked as container, or null if no such field exists.