Page cover

Tables

public class YourTableName extends Table<YourTableName> {

    public static final @NotNull String TABLE_NAME = "test";

    @Override
    public @NotNull String getName() {
        return TestTable.TABLE_NAME;
    }

    @Override
    public @NotNull TestRecord createEmpty(@NotNull PrimaryFieldMap identifiers) {
        return new TestRecord(identifiers.getString(TestRecord.IDENTIFIER_KEY));
    }
}

This is the basics and normally is good enough. However, you can create your own tailored methods to help query your table.

public @NotNull String getFirstValue() {
    return this.getFirstRecord().waitAndGet().getIdentifier();
}

Last updated