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

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

    • Schema

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public static Schema Schema(String id, Map<String,EntityType> entityTypes, Long version)
      Static constructor/builder. Can be used instead of new Schema(...)
    • builder

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

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public static SchemaBuilder builder(Schema 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 SchemaBuilder.With from(Schema 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(Schema 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 Schema 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 SchemaBuilder 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
    • entityTypes

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public SchemaBuilder entityTypes(Map<? extends String,? extends EntityType> entityTypes)
      Re-create the internally allocated Map<String, EntityType> for entityTypes by copying the argument
    • entityTypes

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public Map<String,EntityType> entityTypes()
      Return the current value for the entityTypes record component in the builder
    • addEntityTypes

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public SchemaBuilder addEntityTypes(String key, EntityType value)
      Add to the internally allocated HashMap for entityTypes
    • addEntityTypes

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public SchemaBuilder addEntityTypes(Stream<? extends Map.Entry<? extends String,? extends EntityType>> i)
      Add to the internally allocated HashMap for entityTypes
    • addEntityTypes

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public SchemaBuilder addEntityTypes(Iterable<? extends Map.Entry<? extends String,? extends EntityType>> i)
      Add to the internally allocated HashMap for entityTypes
    • version

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") public SchemaBuilder 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