java.lang.Object
cloud.quinimbus.persistence.api.schema.MetadataBuilder

@Generated("io.soabase.recordbuilder.core.RecordBuilder") public class MetadataBuilder extends Object
  • Method Details

    • Metadata

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public static Metadata Metadata(String id, Long version, Instant creationTime, Set<Metadata.MigrationRun> entityTypeMigrationRuns)
      Static constructor/builder. Can be used instead of new Metadata(...)
    • builder

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public static MetadataBuilder builder()
      Return a new builder with all fields set to default Java values
    • builder

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public static MetadataBuilder builder(Metadata from)
      Return a new builder with all fields set to the values taken from the given record instance
    • from

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public static MetadataBuilder.With from(Metadata from)
      Return a "with"er for an existing record instance
    • stream

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public static Stream<Map.Entry<String,Object>> stream(Metadata record)
      Return a stream of the record components as map entries keyed with the component name and the value as the component value
    • build

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public Metadata build()
      Return a new record instance with all fields set to the current values in this builder
    • toString

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public String toString()
      Overrides:
      toString in class Object
    • hashCode

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public boolean equals(Object o)
      Overrides:
      equals in class Object
    • id

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder id(String id)
      Set a new value for the id record component in the builder
    • id

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public String id()
      Return the current value for the id record component in the builder
    • version

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder version(Long version)
      Set a new value for the version record component in the builder
    • version

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public Long version()
      Return the current value for the version record component in the builder
    • creationTime

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder creationTime(Instant creationTime)
      Set a new value for the creationTime record component in the builder
    • creationTime

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public Instant creationTime()
      Return the current value for the creationTime record component in the builder
    • entityTypeMigrationRuns

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder entityTypeMigrationRuns(Collection<? extends Metadata.MigrationRun> entityTypeMigrationRuns)
      Re-create the internally allocated Set<Metadata.MigrationRun> for entityTypeMigrationRuns by copying the argument
    • entityTypeMigrationRuns

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public Set<Metadata.MigrationRun> entityTypeMigrationRuns()
      Return the current value for the entityTypeMigrationRuns record component in the builder
    • addEntityTypeMigrationRuns

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder addEntityTypeMigrationRuns(Metadata.MigrationRun i)
      Add to the internally allocated HashSet for entityTypeMigrationRuns
    • addEntityTypeMigrationRuns

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder addEntityTypeMigrationRuns(Stream<? extends Metadata.MigrationRun> i)
      Add to the internally allocated HashSet for entityTypeMigrationRuns
    • addEntityTypeMigrationRuns

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder addEntityTypeMigrationRuns(Iterable<? extends Metadata.MigrationRun> i)
      Add to the internally allocated HashSet for entityTypeMigrationRuns