Class RecordId

java.lang.Object
com.surrealdb.Native
com.surrealdb.RecordId

public class RecordId extends Native
The RecordId class represents a unique identifier for a record in a database.

It provides methods to create and manipulate record IDs using either a table name and a long ID or a table name and a string ID. Additionally, it allows retrieval of the table associated with the ID and the ID itself.

  • Constructor Details

    • RecordId

      public RecordId(String table, long id)
    • RecordId

      public RecordId(String table, String id)
    • RecordId

      public RecordId(String table, UUID id)
    • RecordId

      public RecordId(String table, Array id)
      Creates a RecordId with an array key (e.g. composite keys for timeseries).
    • RecordId

      public RecordId(String table, Object id)
      Creates a RecordId with an object key.
  • Method Details

    • getTable

      public String getTable()
    • getId

      public Id getId()