Class SubPojoDefinition.SubPojoDefinitionBuilder

java.lang.Object
com.github.tadukoo.database.mysql.pojo.SubPojoDefinition.SubPojoDefinitionBuilder
All Implemented Interfaces:
SubPojoDefinition.Build, SubPojoDefinition.IDColumn, SubPojoDefinition.Key, SubPojoDefinition.TypeAndJunction
Enclosing class:
SubPojoDefinition

public static class SubPojoDefinition.SubPojoDefinitionBuilder extends Object implements SubPojoDefinition.Key, SubPojoDefinition.IDColumn, SubPojoDefinition.TypeAndJunction, SubPojoDefinition.Build
A builder used to build a SubPojoDefinition. It takes the following parameters:
Sub Pojo Definition Parameters
Parameter Description Default or Required
key The key the sub pojo is stored using in the pojo Required
idCol The ID column for the sub pojo's ID stored in the pojo Required if type or junction is specified, otherwise defaults to null
type The class used for the sub pojo, in case the pojo has to create a new instance of it Required if junction is specified, otherwise defaults to null
junction The junction to use for this sub pojo when doing a search on the pojo Required if type is specified, otherwise defaults to null
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
  • Field Details

    • key

      private String key
      The key the sub pojo is stored using in the pojo
    • idCol

      private String idCol
      The ID column for the sub pojo's ID stored in the pojo
    • type

      private Class<? extends DatabasePojo> type
      The class used for the sub pojo, in case the pojo has to create a new instance of it
    • junction

      private com.github.tadukoo.util.tuple.Pair<ColumnRef,ColumnRef> junction
      The junction to use for this sub pojo when doing a search on the pojo
  • Constructor Details

    • SubPojoDefinitionBuilder

      private SubPojoDefinitionBuilder()
      Not allowed to instantiate outside SubPojoDefinition
  • Method Details