Class FieldModule


  • public class FieldModule
    extends Object
    A helper module for getting fields from classes.
    Author:
    Collin Alpert
    • Method Detail

      • getInstance

        public static FieldModule getInstance()
      • getEntityFields

        public List<Field> getEntityFields​(Class<? extends BaseEntity> instanceClass,
                                           boolean includeForeignKeys)
      • getAllFields

        public List<TableColumnReference> getAllFields​(Class<? extends BaseEntity> instanceClass)
        Gets all the fields and the fields of foreign key objects in this entity.
        Parameters:
        instanceClass - The class to get the fields from.
        Returns:
        A list of columns including references to their table.