@Override
	public int getIndex(String name) {
		lock.acquire();
		try {
			checkIsValid();
			DBRecord fragmentRecord = fragmentAdapter.getFragmentRecord(name);
			DBRecord pcRec = null;
			if (fragmentRecord != null) {
				pcRec = parentChildAdapter.getParentChildRecord(key, -fragmentRecord.getKey());
			}
			else {
				DBRecord moduleRecord = moduleAdapter.getModuleRecord(name);
				if (moduleRecord != null) {
					pcRec = parentChildAdapter.getParentChildRecord(key, moduleRecord.getKey());
				}
			}
			if (pcRec != null) {
				return pcRec.getIntValue(ParentChildDBAdapter.ORDER_COL);
			}
		}
		catch (IOException e) {
			moduleMgr.dbError(e);
		}
		finally {
			lock.release();
		}
		return -1;
	}
Constructor
@param moduleMgr module manager
@param cache ModuleDB cache
@param record database record for this module
@throws IOException if database IO error occurs
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/module/ModuleDB.java