package _VisualDVM.ProjectData.DBArray;
import Common.Database.Objects.DBObject;
import _VisualDVM.ProjectData.SapforData.Arrays.ArrayState;
import _VisualDVM.ProjectData.SapforData.Arrays.ProjectArray;
import com.sun.org.glassfish.gmbal.Description;

import javax.swing.*;
public class DBArray extends DBObject {
    @Description("PRIMARY KEY, UNIQUE")
    public String UniqKey;
    public String shortName;
    public ArrayState State;
    public DBArray() {
    }
    public DBArray(ProjectArray array) {
        UniqKey = array.UniqKey;
        shortName = array.shortName;
        State = array.getState();
    }
    @Override
    public Object getPK() {
        return UniqKey;
    }
    @Override
    public ImageIcon GetSelectionIcon() {
        return State.GetIcon();
    }
}
