nxt.db

## Class TrimmableDbTable<T>

- java.lang.Object
- - nxt.db.DerivedDbTable
  - - nxt.db.TrimmableDbTable<T>

- Direct Known Subclasses:
    EntityDbTable, ValuesDbTable

      public class TrimmableDbTable<T>
      extends DerivedDbTable

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected DbKey.Factory<T>` | `dbKeyFactory`

    - ### Fields inherited from class nxt.db.DerivedDbTable

      `db, table`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `canBeTrimmed(int height, boolean latest, org.h2.value.Value... key)`
    `void` | `popOffTo(int height)`
    `void` | `trim(int height)`

    - ### Methods inherited from class nxt.db.DerivedDbTable

      `createSearchIndex, isPersistent, rollback, toString, truncate`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### dbKeyFactory

          protected final DbKey.Factory<T> dbKeyFactory

  - ### Method Detail

    - #### popOffTo

          public void popOffTo(int height)

      Overrides:
        `popOffTo` in class `DerivedDbTable`

    - #### trim

          public void trim(int height)

      Overrides:
        `trim` in class `DerivedDbTable`

    - #### canBeTrimmed

          public static boolean canBeTrimmed(int height,
                                             boolean latest,
                                             org.h2.value.Value... key)