From 29cac962cf02a5d499bffd79b2597e3d55ffec2f Mon Sep 17 00:00:00 2001
From: G8XSU <3442979+G8XSU@users.noreply.github.com>
Date: Wed, 23 Oct 2024 00:08:14 -0700
Subject: [PATCH] Include generated Jooq source code in version control.
---
java/app/build.gradle | 5 +-
.../jooq/org/vss/postgres/DefaultCatalog.java | 54 +++
.../generated/jooq/org/vss/postgres/Keys.java | 27 ++
.../jooq/org/vss/postgres/Public.java | 53 +++
.../jooq/org/vss/postgres/Tables.java | 20 +
.../jooq/org/vss/postgres/tables/VssDb.java | 204 ++++++++++
.../org/vss/postgres/tables/pojos/VssDb.java | 188 ++++++++++
.../postgres/tables/records/VssDbRecord.java | 354 ++++++++++++++++++
8 files changed, 903 insertions(+), 2 deletions(-)
create mode 100644 java/app/src/main/generated/jooq/org/vss/postgres/DefaultCatalog.java
create mode 100644 java/app/src/main/generated/jooq/org/vss/postgres/Keys.java
create mode 100644 java/app/src/main/generated/jooq/org/vss/postgres/Public.java
create mode 100644 java/app/src/main/generated/jooq/org/vss/postgres/Tables.java
create mode 100644 java/app/src/main/generated/jooq/org/vss/postgres/tables/VssDb.java
create mode 100644 java/app/src/main/generated/jooq/org/vss/postgres/tables/pojos/VssDb.java
create mode 100644 java/app/src/main/generated/jooq/org/vss/postgres/tables/records/VssDbRecord.java
diff --git a/java/app/build.gradle b/java/app/build.gradle
index 217e019..e55f506 100644
--- a/java/app/build.gradle
+++ b/java/app/build.gradle
@@ -25,6 +25,7 @@ sourceSets {
main {
java {
srcDirs += './src/main/generated/proto'
+ srcDirs += './src/main/generated/jooq'
srcDirs -= './build/generated'
}
proto {
@@ -95,7 +96,7 @@ protobuf {
jooq {
configurations {
main {
- generateSchemaSourceOnCompilation = true
+ generateSchemaSourceOnCompilation = false
generationTool {
jdbc {
@@ -124,7 +125,7 @@ jooq {
}
target {
packageName = 'org.vss.postgres'
- directory = 'build/generated-src/jooq/main'
+ directory = 'src/main/generated/jooq'
}
strategy.name = 'org.jooq.codegen.DefaultGeneratorStrategy'
}
diff --git a/java/app/src/main/generated/jooq/org/vss/postgres/DefaultCatalog.java b/java/app/src/main/generated/jooq/org/vss/postgres/DefaultCatalog.java
new file mode 100644
index 0000000..f00a6ea
--- /dev/null
+++ b/java/app/src/main/generated/jooq/org/vss/postgres/DefaultCatalog.java
@@ -0,0 +1,54 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package org.vss.postgres;
+
+
+import java.util.Arrays;
+import java.util.List;
+
+import org.jooq.Constants;
+import org.jooq.Schema;
+import org.jooq.impl.CatalogImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class DefaultCatalog extends CatalogImpl {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * The reference instance of DEFAULT_CATALOG
+ */
+ public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
+
+ /**
+ * The schema public
.
+ */
+ public final Public PUBLIC = Public.PUBLIC;
+
+ /**
+ * No further instances allowed
+ */
+ private DefaultCatalog() {
+ super("");
+ }
+
+ @Override
+ public final List getSchemas() {
+ return Arrays.asList(
+ Public.PUBLIC
+ );
+ }
+
+ /**
+ * A reference to the 3.17 minor release of the code generator. If this
+ * doesn't compile, it's because the runtime library uses an older minor
+ * release, namely: 3.17. You can turn off the generation of this reference
+ * by specifying /configuration/generator/generate/jooqVersionReference
+ */
+ private static final String REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_17;
+}
diff --git a/java/app/src/main/generated/jooq/org/vss/postgres/Keys.java b/java/app/src/main/generated/jooq/org/vss/postgres/Keys.java
new file mode 100644
index 0000000..3621611
--- /dev/null
+++ b/java/app/src/main/generated/jooq/org/vss/postgres/Keys.java
@@ -0,0 +1,27 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package org.vss.postgres;
+
+
+import org.jooq.TableField;
+import org.jooq.UniqueKey;
+import org.jooq.impl.DSL;
+import org.jooq.impl.Internal;
+import org.vss.postgres.tables.VssDb;
+import org.vss.postgres.tables.records.VssDbRecord;
+
+
+/**
+ * A class modelling foreign key relationships and constraints of tables in
+ * public.
+ */
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class Keys {
+
+ // -------------------------------------------------------------------------
+ // UNIQUE and PRIMARY KEY definitions
+ // -------------------------------------------------------------------------
+
+ public static final UniqueKey VSS_DB_PKEY = Internal.createUniqueKey(VssDb.VSS_DB, DSL.name("vss_db_pkey"), new TableField[] { VssDb.VSS_DB.USER_TOKEN, VssDb.VSS_DB.STORE_ID, VssDb.VSS_DB.KEY }, true);
+}
diff --git a/java/app/src/main/generated/jooq/org/vss/postgres/Public.java b/java/app/src/main/generated/jooq/org/vss/postgres/Public.java
new file mode 100644
index 0000000..077a04b
--- /dev/null
+++ b/java/app/src/main/generated/jooq/org/vss/postgres/Public.java
@@ -0,0 +1,53 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package org.vss.postgres;
+
+
+import java.util.Arrays;
+import java.util.List;
+
+import org.jooq.Catalog;
+import org.jooq.Table;
+import org.jooq.impl.SchemaImpl;
+import org.vss.postgres.tables.VssDb;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class Public extends SchemaImpl {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * The reference instance of public
+ */
+ public static final Public PUBLIC = new Public();
+
+ /**
+ * The table public.vss_db
.
+ */
+ public final VssDb VSS_DB = VssDb.VSS_DB;
+
+ /**
+ * No further instances allowed
+ */
+ private Public() {
+ super("public", null);
+ }
+
+
+ @Override
+ public Catalog getCatalog() {
+ return DefaultCatalog.DEFAULT_CATALOG;
+ }
+
+ @Override
+ public final List> getTables() {
+ return Arrays.asList(
+ VssDb.VSS_DB
+ );
+ }
+}
diff --git a/java/app/src/main/generated/jooq/org/vss/postgres/Tables.java b/java/app/src/main/generated/jooq/org/vss/postgres/Tables.java
new file mode 100644
index 0000000..24310eb
--- /dev/null
+++ b/java/app/src/main/generated/jooq/org/vss/postgres/Tables.java
@@ -0,0 +1,20 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package org.vss.postgres;
+
+
+import org.vss.postgres.tables.VssDb;
+
+
+/**
+ * Convenience access to all tables in public.
+ */
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class Tables {
+
+ /**
+ * The table public.vss_db
.
+ */
+ public static final VssDb VSS_DB = VssDb.VSS_DB;
+}
diff --git a/java/app/src/main/generated/jooq/org/vss/postgres/tables/VssDb.java b/java/app/src/main/generated/jooq/org/vss/postgres/tables/VssDb.java
new file mode 100644
index 0000000..633cf19
--- /dev/null
+++ b/java/app/src/main/generated/jooq/org/vss/postgres/tables/VssDb.java
@@ -0,0 +1,204 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package org.vss.postgres.tables;
+
+
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.List;
+import java.util.function.Function;
+
+import org.jooq.Check;
+import org.jooq.Field;
+import org.jooq.ForeignKey;
+import org.jooq.Function7;
+import org.jooq.Name;
+import org.jooq.Record;
+import org.jooq.Records;
+import org.jooq.Row7;
+import org.jooq.Schema;
+import org.jooq.SelectField;
+import org.jooq.Table;
+import org.jooq.TableField;
+import org.jooq.TableOptions;
+import org.jooq.UniqueKey;
+import org.jooq.impl.DSL;
+import org.jooq.impl.Internal;
+import org.jooq.impl.SQLDataType;
+import org.jooq.impl.TableImpl;
+import org.vss.postgres.Keys;
+import org.vss.postgres.Public;
+import org.vss.postgres.tables.records.VssDbRecord;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class VssDb extends TableImpl {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * The reference instance of public.vss_db
+ */
+ public static final VssDb VSS_DB = new VssDb();
+
+ /**
+ * The class holding records for this type
+ */
+ @Override
+ public Class getRecordType() {
+ return VssDbRecord.class;
+ }
+
+ /**
+ * The column public.vss_db.user_token
.
+ */
+ public final TableField USER_TOKEN = createField(DSL.name("user_token"), SQLDataType.VARCHAR(120).nullable(false), this, "");
+
+ /**
+ * The column public.vss_db.store_id
.
+ */
+ public final TableField STORE_ID = createField(DSL.name("store_id"), SQLDataType.VARCHAR(120).nullable(false), this, "");
+
+ /**
+ * The column public.vss_db.key
.
+ */
+ public final TableField KEY = createField(DSL.name("key"), SQLDataType.VARCHAR(600).nullable(false), this, "");
+
+ /**
+ * The column public.vss_db.value
.
+ */
+ public final TableField VALUE = createField(DSL.name("value"), SQLDataType.BLOB, this, "");
+
+ /**
+ * The column public.vss_db.version
.
+ */
+ public final TableField VERSION = createField(DSL.name("version"), SQLDataType.BIGINT.nullable(false), this, "");
+
+ /**
+ * The column public.vss_db.created_at
.
+ */
+ public final TableField CREATED_AT = createField(DSL.name("created_at"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, "");
+
+ /**
+ * The column public.vss_db.last_updated_at
.
+ */
+ public final TableField LAST_UPDATED_AT = createField(DSL.name("last_updated_at"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, "");
+
+ private VssDb(Name alias, Table aliased) {
+ this(alias, aliased, null);
+ }
+
+ private VssDb(Name alias, Table aliased, Field>[] parameters) {
+ super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
+ }
+
+ /**
+ * Create an aliased public.vss_db
table reference
+ */
+ public VssDb(String alias) {
+ this(DSL.name(alias), VSS_DB);
+ }
+
+ /**
+ * Create an aliased public.vss_db
table reference
+ */
+ public VssDb(Name alias) {
+ this(alias, VSS_DB);
+ }
+
+ /**
+ * Create a public.vss_db
table reference
+ */
+ public VssDb() {
+ this(DSL.name("vss_db"), null);
+ }
+
+ public VssDb(Table child, ForeignKey key) {
+ super(child, key, VSS_DB);
+ }
+
+ @Override
+ public Schema getSchema() {
+ return aliased() ? null : Public.PUBLIC;
+ }
+
+ @Override
+ public UniqueKey getPrimaryKey() {
+ return Keys.VSS_DB_PKEY;
+ }
+
+ @Override
+ public List> getChecks() {
+ return Arrays.asList(
+ Internal.createCheck(this, DSL.name("vss_db_store_id_check"), "(((store_id)::text <> ''::text))", true),
+ Internal.createCheck(this, DSL.name("vss_db_user_token_check"), "(((user_token)::text <> ''::text))", true)
+ );
+ }
+
+ @Override
+ public VssDb as(String alias) {
+ return new VssDb(DSL.name(alias), this);
+ }
+
+ @Override
+ public VssDb as(Name alias) {
+ return new VssDb(alias, this);
+ }
+
+ @Override
+ public VssDb as(Table> alias) {
+ return new VssDb(alias.getQualifiedName(), this);
+ }
+
+ /**
+ * Rename this table
+ */
+ @Override
+ public VssDb rename(String name) {
+ return new VssDb(DSL.name(name), null);
+ }
+
+ /**
+ * Rename this table
+ */
+ @Override
+ public VssDb rename(Name name) {
+ return new VssDb(name, null);
+ }
+
+ /**
+ * Rename this table
+ */
+ @Override
+ public VssDb rename(Table> name) {
+ return new VssDb(name.getQualifiedName(), null);
+ }
+
+ // -------------------------------------------------------------------------
+ // Row7 type methods
+ // -------------------------------------------------------------------------
+
+ @Override
+ public Row7 fieldsRow() {
+ return (Row7) super.fieldsRow();
+ }
+
+ /**
+ * Convenience mapping calling {@link SelectField#convertFrom(Function)}.
+ */
+ public SelectField mapping(Function7 super String, ? super String, ? super String, ? super byte[], ? super Long, ? super OffsetDateTime, ? super OffsetDateTime, ? extends U> from) {
+ return convertFrom(Records.mapping(from));
+ }
+
+ /**
+ * Convenience mapping calling {@link SelectField#convertFrom(Class,
+ * Function)}.
+ */
+ public SelectField mapping(Class toType, Function7 super String, ? super String, ? super String, ? super byte[], ? super Long, ? super OffsetDateTime, ? super OffsetDateTime, ? extends U> from) {
+ return convertFrom(toType, Records.mapping(from));
+ }
+}
diff --git a/java/app/src/main/generated/jooq/org/vss/postgres/tables/pojos/VssDb.java b/java/app/src/main/generated/jooq/org/vss/postgres/tables/pojos/VssDb.java
new file mode 100644
index 0000000..4a24300
--- /dev/null
+++ b/java/app/src/main/generated/jooq/org/vss/postgres/tables/pojos/VssDb.java
@@ -0,0 +1,188 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package org.vss.postgres.tables.pojos;
+
+
+import java.io.Serializable;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class VssDb implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ private final String userToken;
+ private final String storeId;
+ private final String key;
+ private final byte[] value;
+ private final Long version;
+ private final OffsetDateTime createdAt;
+ private final OffsetDateTime lastUpdatedAt;
+
+ public VssDb(VssDb value) {
+ this.userToken = value.userToken;
+ this.storeId = value.storeId;
+ this.key = value.key;
+ this.value = value.value;
+ this.version = value.version;
+ this.createdAt = value.createdAt;
+ this.lastUpdatedAt = value.lastUpdatedAt;
+ }
+
+ public VssDb(
+ String userToken,
+ String storeId,
+ String key,
+ byte[] value,
+ Long version,
+ OffsetDateTime createdAt,
+ OffsetDateTime lastUpdatedAt
+ ) {
+ this.userToken = userToken;
+ this.storeId = storeId;
+ this.key = key;
+ this.value = value;
+ this.version = version;
+ this.createdAt = createdAt;
+ this.lastUpdatedAt = lastUpdatedAt;
+ }
+
+ /**
+ * Getter for public.vss_db.user_token
.
+ */
+ public String getUserToken() {
+ return this.userToken;
+ }
+
+ /**
+ * Getter for public.vss_db.store_id
.
+ */
+ public String getStoreId() {
+ return this.storeId;
+ }
+
+ /**
+ * Getter for public.vss_db.key
.
+ */
+ public String getKey() {
+ return this.key;
+ }
+
+ /**
+ * Getter for public.vss_db.value
.
+ */
+ public byte[] getValue() {
+ return this.value;
+ }
+
+ /**
+ * Getter for public.vss_db.version
.
+ */
+ public Long getVersion() {
+ return this.version;
+ }
+
+ /**
+ * Getter for public.vss_db.created_at
.
+ */
+ public OffsetDateTime getCreatedAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Getter for public.vss_db.last_updated_at
.
+ */
+ public OffsetDateTime getLastUpdatedAt() {
+ return this.lastUpdatedAt;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final VssDb other = (VssDb) obj;
+ if (this.userToken == null) {
+ if (other.userToken != null)
+ return false;
+ }
+ else if (!this.userToken.equals(other.userToken))
+ return false;
+ if (this.storeId == null) {
+ if (other.storeId != null)
+ return false;
+ }
+ else if (!this.storeId.equals(other.storeId))
+ return false;
+ if (this.key == null) {
+ if (other.key != null)
+ return false;
+ }
+ else if (!this.key.equals(other.key))
+ return false;
+ if (this.value == null) {
+ if (other.value != null)
+ return false;
+ }
+ else if (!Arrays.equals(this.value, other.value))
+ return false;
+ if (this.version == null) {
+ if (other.version != null)
+ return false;
+ }
+ else if (!this.version.equals(other.version))
+ return false;
+ if (this.createdAt == null) {
+ if (other.createdAt != null)
+ return false;
+ }
+ else if (!this.createdAt.equals(other.createdAt))
+ return false;
+ if (this.lastUpdatedAt == null) {
+ if (other.lastUpdatedAt != null)
+ return false;
+ }
+ else if (!this.lastUpdatedAt.equals(other.lastUpdatedAt))
+ return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((this.userToken == null) ? 0 : this.userToken.hashCode());
+ result = prime * result + ((this.storeId == null) ? 0 : this.storeId.hashCode());
+ result = prime * result + ((this.key == null) ? 0 : this.key.hashCode());
+ result = prime * result + ((this.value == null) ? 0 : Arrays.hashCode(this.value));
+ result = prime * result + ((this.version == null) ? 0 : this.version.hashCode());
+ result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode());
+ result = prime * result + ((this.lastUpdatedAt == null) ? 0 : this.lastUpdatedAt.hashCode());
+ return result;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("VssDb (");
+
+ sb.append(userToken);
+ sb.append(", ").append(storeId);
+ sb.append(", ").append(key);
+ sb.append(", ").append("[binary...]");
+ sb.append(", ").append(version);
+ sb.append(", ").append(createdAt);
+ sb.append(", ").append(lastUpdatedAt);
+
+ sb.append(")");
+ return sb.toString();
+ }
+}
diff --git a/java/app/src/main/generated/jooq/org/vss/postgres/tables/records/VssDbRecord.java b/java/app/src/main/generated/jooq/org/vss/postgres/tables/records/VssDbRecord.java
new file mode 100644
index 0000000..b54cc81
--- /dev/null
+++ b/java/app/src/main/generated/jooq/org/vss/postgres/tables/records/VssDbRecord.java
@@ -0,0 +1,354 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package org.vss.postgres.tables.records;
+
+
+import java.time.OffsetDateTime;
+
+import org.jooq.Field;
+import org.jooq.Record3;
+import org.jooq.Record7;
+import org.jooq.Row7;
+import org.jooq.impl.UpdatableRecordImpl;
+import org.vss.postgres.tables.VssDb;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class VssDbRecord extends UpdatableRecordImpl implements Record7 {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Setter for public.vss_db.user_token
.
+ */
+ public VssDbRecord setUserToken(String value) {
+ set(0, value);
+ return this;
+ }
+
+ /**
+ * Getter for public.vss_db.user_token
.
+ */
+ public String getUserToken() {
+ return (String) get(0);
+ }
+
+ /**
+ * Setter for public.vss_db.store_id
.
+ */
+ public VssDbRecord setStoreId(String value) {
+ set(1, value);
+ return this;
+ }
+
+ /**
+ * Getter for public.vss_db.store_id
.
+ */
+ public String getStoreId() {
+ return (String) get(1);
+ }
+
+ /**
+ * Setter for public.vss_db.key
.
+ */
+ public VssDbRecord setKey(String value) {
+ set(2, value);
+ return this;
+ }
+
+ /**
+ * Getter for public.vss_db.key
.
+ */
+ public String getKey() {
+ return (String) get(2);
+ }
+
+ /**
+ * Setter for public.vss_db.value
.
+ */
+ public VssDbRecord setValue(byte[] value) {
+ set(3, value);
+ return this;
+ }
+
+ /**
+ * Getter for public.vss_db.value
.
+ */
+ public byte[] getValue() {
+ return (byte[]) get(3);
+ }
+
+ /**
+ * Setter for public.vss_db.version
.
+ */
+ public VssDbRecord setVersion(Long value) {
+ set(4, value);
+ return this;
+ }
+
+ /**
+ * Getter for public.vss_db.version
.
+ */
+ public Long getVersion() {
+ return (Long) get(4);
+ }
+
+ /**
+ * Setter for public.vss_db.created_at
.
+ */
+ public VssDbRecord setCreatedAt(OffsetDateTime value) {
+ set(5, value);
+ return this;
+ }
+
+ /**
+ * Getter for public.vss_db.created_at
.
+ */
+ public OffsetDateTime getCreatedAt() {
+ return (OffsetDateTime) get(5);
+ }
+
+ /**
+ * Setter for public.vss_db.last_updated_at
.
+ */
+ public VssDbRecord setLastUpdatedAt(OffsetDateTime value) {
+ set(6, value);
+ return this;
+ }
+
+ /**
+ * Getter for public.vss_db.last_updated_at
.
+ */
+ public OffsetDateTime getLastUpdatedAt() {
+ return (OffsetDateTime) get(6);
+ }
+
+ // -------------------------------------------------------------------------
+ // Primary key information
+ // -------------------------------------------------------------------------
+
+ @Override
+ public Record3 key() {
+ return (Record3) super.key();
+ }
+
+ // -------------------------------------------------------------------------
+ // Record7 type implementation
+ // -------------------------------------------------------------------------
+
+ @Override
+ public Row7 fieldsRow() {
+ return (Row7) super.fieldsRow();
+ }
+
+ @Override
+ public Row7 valuesRow() {
+ return (Row7) super.valuesRow();
+ }
+
+ @Override
+ public Field field1() {
+ return VssDb.VSS_DB.USER_TOKEN;
+ }
+
+ @Override
+ public Field field2() {
+ return VssDb.VSS_DB.STORE_ID;
+ }
+
+ @Override
+ public Field field3() {
+ return VssDb.VSS_DB.KEY;
+ }
+
+ @Override
+ public Field field4() {
+ return VssDb.VSS_DB.VALUE;
+ }
+
+ @Override
+ public Field field5() {
+ return VssDb.VSS_DB.VERSION;
+ }
+
+ @Override
+ public Field field6() {
+ return VssDb.VSS_DB.CREATED_AT;
+ }
+
+ @Override
+ public Field field7() {
+ return VssDb.VSS_DB.LAST_UPDATED_AT;
+ }
+
+ @Override
+ public String component1() {
+ return getUserToken();
+ }
+
+ @Override
+ public String component2() {
+ return getStoreId();
+ }
+
+ @Override
+ public String component3() {
+ return getKey();
+ }
+
+ @Override
+ public byte[] component4() {
+ return getValue();
+ }
+
+ @Override
+ public Long component5() {
+ return getVersion();
+ }
+
+ @Override
+ public OffsetDateTime component6() {
+ return getCreatedAt();
+ }
+
+ @Override
+ public OffsetDateTime component7() {
+ return getLastUpdatedAt();
+ }
+
+ @Override
+ public String value1() {
+ return getUserToken();
+ }
+
+ @Override
+ public String value2() {
+ return getStoreId();
+ }
+
+ @Override
+ public String value3() {
+ return getKey();
+ }
+
+ @Override
+ public byte[] value4() {
+ return getValue();
+ }
+
+ @Override
+ public Long value5() {
+ return getVersion();
+ }
+
+ @Override
+ public OffsetDateTime value6() {
+ return getCreatedAt();
+ }
+
+ @Override
+ public OffsetDateTime value7() {
+ return getLastUpdatedAt();
+ }
+
+ @Override
+ public VssDbRecord value1(String value) {
+ setUserToken(value);
+ return this;
+ }
+
+ @Override
+ public VssDbRecord value2(String value) {
+ setStoreId(value);
+ return this;
+ }
+
+ @Override
+ public VssDbRecord value3(String value) {
+ setKey(value);
+ return this;
+ }
+
+ @Override
+ public VssDbRecord value4(byte[] value) {
+ setValue(value);
+ return this;
+ }
+
+ @Override
+ public VssDbRecord value5(Long value) {
+ setVersion(value);
+ return this;
+ }
+
+ @Override
+ public VssDbRecord value6(OffsetDateTime value) {
+ setCreatedAt(value);
+ return this;
+ }
+
+ @Override
+ public VssDbRecord value7(OffsetDateTime value) {
+ setLastUpdatedAt(value);
+ return this;
+ }
+
+ @Override
+ public VssDbRecord values(String value1, String value2, String value3, byte[] value4, Long value5, OffsetDateTime value6, OffsetDateTime value7) {
+ value1(value1);
+ value2(value2);
+ value3(value3);
+ value4(value4);
+ value5(value5);
+ value6(value6);
+ value7(value7);
+ return this;
+ }
+
+ // -------------------------------------------------------------------------
+ // Constructors
+ // -------------------------------------------------------------------------
+
+ /**
+ * Create a detached VssDbRecord
+ */
+ public VssDbRecord() {
+ super(VssDb.VSS_DB);
+ }
+
+ /**
+ * Create a detached, initialised VssDbRecord
+ */
+ public VssDbRecord(String userToken, String storeId, String key, byte[] value, Long version, OffsetDateTime createdAt, OffsetDateTime lastUpdatedAt) {
+ super(VssDb.VSS_DB);
+
+ setUserToken(userToken);
+ setStoreId(storeId);
+ setKey(key);
+ setValue(value);
+ setVersion(version);
+ setCreatedAt(createdAt);
+ setLastUpdatedAt(lastUpdatedAt);
+ }
+
+ /**
+ * Create a detached, initialised VssDbRecord
+ */
+ public VssDbRecord(org.vss.postgres.tables.pojos.VssDb value) {
+ super(VssDb.VSS_DB);
+
+ if (value != null) {
+ setUserToken(value.getUserToken());
+ setStoreId(value.getStoreId());
+ setKey(value.getKey());
+ setValue(value.getValue());
+ setVersion(value.getVersion());
+ setCreatedAt(value.getCreatedAt());
+ setLastUpdatedAt(value.getLastUpdatedAt());
+ }
+ }
+}