Home
last modified time | relevance | path

Searched refs:dbiId (Results 1 – 25 of 44) sorted by relevance

12

/dports/biology/ugene/ugene-40.1/src/corelibs/U2Core/src/datatype/
H A DU2Type.cpp66 U2DbiRef::U2DbiRef(const U2DbiFactoryId &dbiFactoryId, const U2DbiId &dbiId) in U2DbiRef() argument
67 : dbiFactoryId(dbiFactoryId), dbiId(dbiId) { in U2DbiRef()
71 return !dbiFactoryId.isEmpty() && !dbiId.isEmpty(); in isValid()
79 return dbiFactoryId == r2.dbiFactoryId && dbiId == r2.dbiId; in operator ==()
83 return dbiFactoryId + dbiId < r2.dbiFactoryId + r2.dbiId; in operator <()
87 out << dbiRef.dbiFactoryId << dbiRef.dbiId; in operator <<()
93 in >> dbiRef.dbiId; in operator >>()
124 } else if (dbiRef.dbiId != other.dbiRef.dbiId) { in operator <()
125 return dbiRef.dbiId < other.dbiRef.dbiId; in operator <()
H A DU2Type.h126 … U2DbiRef(const U2DbiFactoryId &dbiFactoryId = U2DbiFactoryId(), const U2DbiId &dbiId = U2DbiId());
135 U2DbiId dbiId; variable
197 : U2Entity(id), dbiId(_dbId), version(v), trackModType(NoTrack) { in U2Object()
201 U2DbiId dbiId; variable
219 return qHash(QPair<U2DataId, U2DbiId>(obj.id, obj.dbiId)); in qHash()
H A DU2RawData.h39 : U2Object(U2DataId(), dbiRef.dbiId, 0) { in U2RawData()
/dports/biology/ugene/ugene-40.1/src/corelibs/U2Gui/src/util/project/
H A DProjectUpdater.cpp55 valid[doc->getDbiRef().dbiId] = false; in invalidate()
60 CHECK(valid.value(doc->getDbiRef().dbiId, true), false); in takeData()
61 CHECK(data.contains(doc->getDbiRef().dbiId), false); in takeData()
62 result = data.take(doc->getDbiRef().dbiId); in takeData()
74 data.remove(doc->getDbiRef().dbiId); in removeDocument()
98 if (!valid.value(dbiRef.dbiId, true)) { in readData()
99 data.take(dbiRef.dbiId); in readData()
100 valid[dbiRef.dbiId] = true; in readData()
108 if (valid.value(dbiRef.dbiId, true)) { in readData()
109 data[dbiRef.dbiId] = update; in readData()
/dports/biology/ugene/ugene-40.1/src/corelibs/U2Formats/src/mysql_dbi/util/
H A DMysqlDbiUtils.cpp89 bool MysqlDbiUtils::parseDbiUrl(const U2DbiId &dbiId, QString &host, int &port, QString &dbName) { in parseDbiUrl() argument
90 int sepIndex = dbiId.indexOf(":"); in parseDbiUrl()
94 host = dbiId.left(sepIndex); in parseDbiUrl()
96 sepIndex = dbiId.indexOf("/", sepIndex); in parseDbiUrl()
100 QString portString = dbiId.mid(host.length() + 1, sepIndex - host.length() - 1); in parseDbiUrl()
110 dbName = dbiId.right(dbiId.length() - sepIndex - 1); in parseDbiUrl()
H A DMysqlHelpers.cpp186 quint64 dbiId = U2DbiUtils::toDbiId(val); in bindDataId() local
187 if (0 != dbiId) { in bindDataId()
188 query.bindValue(placeholder, dbiId); in bindDataId()
195 quint64 dbiId = U2DbiUtils::toDbiId(val); in addBindDataId() local
196 if (0 != dbiId) { in addBindDataId()
197 query.addBindValue(dbiId); in addBindDataId()
H A DMysqlDbiUtils.h47 static bool parseDbiUrl(const U2DbiId &dbiId, QString &host, int &port, QString &dbName);
/dports/biology/ugene/ugene-40.1/src/corelibs/U2Core/src/dbi/
H A DU2DbiRegistry.cpp107 coreLog.trace("Allocated tmp dbi: " + dbiRef.dbiId); in attachTmpDbi()
161 QString url = sessionDbiConnection->dbi->getDbiRef().dbiId; in shutdownSessionDbi()
171 if (QFile::exists(ref.dbiRef.dbiId)) { in deallocateTmpDbi()
172 QFile::remove(ref.dbiRef.dbiId); in deallocateTmpDbi()
208 ref.dbiId = cmdlineReg->getParameterValue(CMDLineCoreOptions::SESSION_DB); in useDatabaseFromCMDLine()
221 res.dbiId = getDatabaseFromCMDLine(os); in getDbiRef()
223 res.dbiId = createNewDatabase(alias, os); in getDbiRef()
285 const QString url = dbiFactory->id2Url(ref.dbiId).getURLString(); in createDbi()
501 return dbiFactory->id2Url(ref.dbiId).getURLString(); in getDbiUrlByRef()
517 bool U2DbiPool::isDbiFromMainThread(const QString &dbiId) { in isDbiFromMainThread() argument
[all …]
H A DU2AbstractDbi.h68 return dbiId; in getDbiId()
160 U2DbiId dbiId; variable
H A DU2DbiRegistry.h146 static bool isDbiFromMainThread(const QString &dbiId);
/dports/biology/ugene/ugene-40.1/src/corelibs/U2Lang/src/model/
H A DDbiDataStorage.cpp62 foreach (const U2DbiId &dbiId, dbiList.keys()) { in ~DbiDataStorage()
63 bool temporary = dbiList.value(dbiId); in ~DbiDataStorage()
65 if (QFile::exists(dbiId)) { in ~DbiDataStorage()
66 QFile::remove(dbiId); in ~DbiDataStorage()
250 if (connections.contains(dbiRef.dbiId)) { in getConnection()
251 return connections[dbiRef.dbiId]; in getConnection()
270 SAFE_POINT(!dbiList.contains(dbiRef.dbiId), in createTmpDbi()
277 dbiList[dbiRef.dbiId] = true; in createTmpDbi()
278 connections[dbiRef.dbiId] = con.take(); in createTmpDbi()
287 dbiList[dbiRef.dbiId] = false; in openDbi()
[all …]
/dports/biology/ugene/ugene-40.1/src/corelibs/U2Formats/src/mysql_dbi/
H A DMysqlCrossDatabaseReferenceDbi.cpp62 q.bindString(":dbi", reference.dataRef.dbiRef.dbiId); in createCrossReference()
85 res.dataRef.dbiRef.dbiId = q.getString(1); in getCrossReference()
102 q.bindString(":dbi", reference.dataRef.dbiRef.dbiId); in updateCrossReference()
H A DMysqlAssemblyDbi.cpp78 qint64 dbiId = U2DbiUtils::toDbiId(assemblyId); in getAdapter() local
79 MysqlAssemblyAdapter *res = adaptersById.value(dbiId); in getAdapter()
104 adaptersById[dbiId] = res; in getAdapter()
216 assembly.dbiId = fakeObject.dbiId; in createAssemblyObject()
/dports/biology/ugene/ugene-40.1/src/corelibs/U2View/src/ov_assembly/
H A DAssemblyModel.cpp301 Document *refDoc = prj->findDocumentByURL(crossRef.dataRef.dbiRef.dbiId); in setAssembly()
314 QString refUrl = crossRef.dataRef.dbiRef.dbiId; in setAssembly()
344 QString url = ref.dataRef.dbiRef.dbiId; in createLoadReferenceAndAddToProjectTask()
397 if ((ent.entityId == assembly.id) && (ent.dbiRef.dbiId == assembly.dbiId)) { in isAssemblyDoc()
439 if (ref.dataRef.dbiRef.dbiId == d->getURLString()) { in sl_docAdded()
465 Document *refDoc = AppContext::getProject()->findDocumentByURL(ref.dataRef.dbiRef.dbiId); in sl_referenceLoaded()
641 QFile f(assembly.dbiId); in checkPermissions()
646 …ing file:\n%1\nYou don't have enough rights to change file").arg(assembly.dbiId), QMessageBox::Ok,… in checkPermissions()
651 …It might happen because file \n%1\n is read only. If not try to reload file").arg(assembly.dbiId)); in checkPermissions()
/dports/biology/ugene/ugene-40.1/src/corelibs/U2Lang/src/model/url_attribute/
H A DSharedDbUrlUtils.cpp89 return dbiRef.dbiFactoryId + DB_PROVIDER_SEP + dbiRef.dbiId; in createDbUrl()
108 …return dbiRef.dbiFactoryId + DB_PROVIDER_SEP + dbiRef.dbiId + DB_URL_SEP + QString::number(compati… in createDbFolderUrl()
148 …return dbiRef.dbiFactoryId + DB_PROVIDER_SEP + dbiRef.dbiId + DB_URL_SEP + objId2Str(objId, objNam… in createDbObjectUrl()
219 const QString dbUrl = getDbRefFromEntityUrl(url).dbiId; in getDbShortNameFromEntityUrl()
/dports/biology/ugene/ugene-40.1/src/corelibs/U2View/src/ov_msa/mca_reads/
H A DMcaAlternativeMutationsWidget.cpp112 mcaDbiObj.dbiId = mcaObject->getEntityRef().dbiRef.dbiId; in updateValuesFromDb()
/dports/biology/ugene/ugene-40.1/src/corelibs/U2Core/src/tasks/
H A DConnectSharedDatabaseTask.cpp61 return GUrl(dbiRef.dbiId, GUrl_Network); in getUrlFromRef()
H A DCmdlineInOutTaskRunner.cpp82 return dbiRef.dbiFactoryId + ">" + dbiRef.dbiId; in toString()
/dports/biology/ugene/ugene-40.1/src/corelibs/U2Formats/src/mysql_dbi/util/upgraders/
H A DMysqlUpgraderFrom_1_16_To_1_24.cpp115 const qint64 dbiId = getQuery.getInt64(0); in repackInfo() local
123 setQuery.bindInt64(":id", dbiId); in repackInfo()
/dports/biology/ugene/ugene-40.1/src/plugins/workflow_designer/src/library/
H A DExtractConsensusWorker.cpp101 …const SharedDbiDataHandler dbiId = data[BaseSlots::ASSEMBLY_SLOT().getId()].value<SharedDbiDataHan… in takeAssembly() local
102 const AssemblyObject *obj = StorageUtils::getAssemblyObject(context->getDataStorage(), dbiId); in takeAssembly()
H A DExtractAssemblyCoverageWorker.cpp104 …const SharedDbiDataHandler dbiId = data[BaseSlots::ASSEMBLY_SLOT().getId()].value<SharedDbiDataHan… in takeAssembly() local
105 const AssemblyObject *obj = StorageUtils::getAssemblyObject(context->getDataStorage(), dbiId); in takeAssembly()
/dports/biology/ugene/ugene-40.1/src/corelibs/U2Core/src/datatype/udr/
H A DRawDataUdrSchema.cpp204 dstObject.dbiId = dstDbiRef.dbiId; in cloneObject()
/dports/biology/ugene/ugene-40.1/src/plugins/api_tests/src/core/dbi/
H A DDbiTest.cpp76 ref.dbiId = dbUrl; in init()
/dports/biology/ugene/ugene-40.1/src/corelibs/U2Core/src/gobjects/
H A DMultipleChromatogramAlignmentObject.cpp82 obj.dbiId = dstDbiRef.dbiId; in clone()
/dports/biology/ugene/ugene-40.1/src/corelibs/U2Formats/src/sqlite_dbi/
H A DSQLiteObjectDbi.cpp349 object.dbiId = dbId; in getObjectFolders()
906 object.dbiId = dbi->getDbiId(); in createObject()
917 object.dbiId = dbi->getDbiId(); in getObject()
1049 q.bindString(3, reference.dataRef.dbiRef.dbiId); in createCrossReference()
1071 res.dataRef.dbiRef.dbiId = q.getString(1); in getCrossReference()
1084 q.bindString(2, reference.dataRef.dbiRef.dbiId); in updateCrossReference()

12