class SecondaryLock extends ThemisLock {

  @Override
  public boolean equals(Object other) {
    if (!(other instanceof SecondaryLock)) {
      return false;
    }
    ThemisLock lock = (ThemisLock)other;
    return super.equals(lock) && !lock.isPrimary()
        && this.primaryColumn.equals(((SecondaryLock) other).getPrimaryColumn());
  }

  public  SecondaryLock();
  public  SecondaryLock(Type type);

}