com.vaadin.v7.data.util.sqlcontainer.TemporaryRowId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-compatibility-server Show documentation
Show all versions of vaadin-compatibility-server Show documentation
Vaadin 7 compatibility package for Vaadin 8
/*
* Copyright (C) 2000-2024 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.v7.data.util.sqlcontainer;
/**
* @deprecated As of 8.0, no replacement available.
*/
@Deprecated
public class TemporaryRowId extends RowId {
private static final long serialVersionUID = -641983830469018329L;
public TemporaryRowId(Object... id) {
super(id);
}
@Override
public int hashCode() {
return id.hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null || !(TemporaryRowId.class.equals(obj.getClass()))) {
return false;
}
Object[] compId = ((TemporaryRowId) obj).getId();
return id.equals(compId);
}
@Override
public String toString() {
return "Temporary row id";
}
}