Commit 50c534db authored by claes's avatar claes

First refId is 1, not 0

parent e41c1778
/*
* Proview $Id: LocalDb.java,v 1.2 2005-09-01 14:57:51 claes Exp $
* Proview $Id: LocalDb.java,v 1.3 2006-06-14 05:07:48 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -62,16 +62,17 @@ public class LocalDb {
}
}
Vector subscriptions = new Vector();
int subscriptionCount = 0;
Vector<LocalSub> subscriptions = new Vector<LocalSub>();
int subscriptionCount = 1;
public LocalDb() {
// Insert dummy first
subscriptions.insertElementAt(null, 0);
}
public GdhrRefObjectInfo refObjectInfo( Object owner, String attributeName) {
int typeId = getTypeId(attributeName);
String name = getName(attributeName);
System.out.println("refObjectInfo " + name + " " + typeId);
if ( typeId == 0) {
return new GdhrRefObjectInfo(null, 0, 0, 0);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment