protected long getRawID(Class<? extends OWLEntity> type) throws AutoIDException{ //check if start id prefs have changed meanwhile if (previousStartId != EntityCreationPreferences.getAutoIDStart()) { id = EntityCreationPreferences.getAutoIDStart(); previousStartId = id; checkpoints.removeAllElements(); checkpoints.push(id); } long end = EntityCreationPreferences.getAutoIDEnd(); if (end != -1 && id > end){ throw new AutoIDException("You have run out of IDs for creating new entities - max = " + end); } if (EntityCreationPreferences.getSaveAutoIDStart()) { previousStartId = id + 1; EntityCreationPreferences.setAutoIDStart((int) (previousStartId)); } return id++; }
protected long getRawID(Class<? extends OWLEntity> type) throws AutoIDException{ //check if start id prefs have changed meanwhile if (previousStartId != EntityCreationPreferences.getAutoIDStart()) { id = EntityCreationPreferences.getAutoIDStart(); previousStartId = id; checkpoints.removeAllElements(); checkpoints.push(id); } long end = EntityCreationPreferences.getAutoIDEnd(); if (end != -1 && id > end){ throw new AutoIDException("You have run out of IDs for creating new entities - max = " + end); } if (EntityCreationPreferences.getSaveAutoIDStart()) { previousStartId = id + 1; EntityCreationPreferences.setAutoIDStart((int) (previousStartId)); } return id++; }
protected long getRawID(Class<? extends OWLEntity> type) throws AutoIDException{ //check if start id prefs have changed meanwhile if (previousStartId != EntityCreationPreferences.getAutoIDStart()) { id = EntityCreationPreferences.getAutoIDStart(); previousStartId = id; checkpoints.removeAllElements(); checkpoints.push(id); } long end = EntityCreationPreferences.getAutoIDEnd(); if (end != -1 && id > end){ throw new AutoIDException("You have run out of IDs for creating new entities - max = " + end); } if (EntityCreationPreferences.getSaveAutoIDStart()) { previousStartId = id + 1; EntityCreationPreferences.setAutoIDStart((int) (previousStartId)); } return id++; }
protected long getRawID(Class<? extends OWLEntity> type) throws AutoIDException{ //check if start id prefs have changed meanwhile if (previousStartId != EntityCreationPreferences.getAutoIDStart()) { id = EntityCreationPreferences.getAutoIDStart(); previousStartId = id; checkpoints.removeAllElements(); checkpoints.push(id); } long end = EntityCreationPreferences.getAutoIDEnd(); if (end != -1 && id > end){ throw new AutoIDException("You have run out of IDs for creating new entities - max = " + end); } if (EntityCreationPreferences.getSaveAutoIDStart()) { previousStartId = id + 1; EntityCreationPreferences.setAutoIDStart((int) (previousStartId)); } return id++; }
throw new AutoIDException("Auto id generator ran out of new ids - fix this in the new entity preferences");
throw new AutoIDException("Auto id generator ran out of new ids - fix this in the new entity preferences");
throw new AutoIDException("Auto id generator ran out of new ids - fix this in the new entity preferences");