<- Back to NucleoCore
Skip to main content

DataEntry Class

Data Entry class encloses the table class. This is to differentiate the meta data from the actual data of the table. Only the table class can have indexed member variables.

Author class

public class AuthorDE extends DataEntry<Author>{
  public AuthorDE(Author obj) {
    super(obj);
  }

  public AuthorDE(Create create) throws ClassNotFoundException, JsonProcessingException {
    super(create);
  }

  public AuthorDE() {
  }

  public AuthorDE(String key) {
    super(key);
  }
}

Constructors are needed for internal operations and instantiating a new DataEntry into the database. 


Below is used when inserting a new Author table class into the database. This will also generate a new key using UUID.randomUUID().

public AuthorDE(Author obj) {
  super(obj);
}