Class VcsRootIdentifiersManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.identifiers.BaseExternalIdGenerator
-
- jetbrains.buildServer.serverSide.identifiers.BaseIdentifiersManager<INT>
-
- jetbrains.buildServer.serverSide.identifiers.BaseValidatingIdentifiersManager<Long,VcsRootIdentifiersValidatorExtension>
-
- jetbrains.buildServer.serverSide.identifiers.VcsRootIdentifiersManagerImpl
-
- All Implemented Interfaces:
ExternalIdGenerator,IdentifiersManager<Long>,VcsRootIdentifiersManager
public class VcsRootIdentifiersManagerImpl extends BaseValidatingIdentifiersManager<Long,VcsRootIdentifiersValidatorExtension> implements VcsRootIdentifiersManager
- Author:
- Leonid Bushuev from JetBrains
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.identifiers.BaseValidatingIdentifiersManager
myExtensions
-
Fields inherited from class jetbrains.buildServer.serverSide.identifiers.BaseIdentifiersManager
myDbfProvider, myGuidGenerator, myIdKindName, myLogger, myServerResponsibility
-
-
Constructor Summary
Constructors Constructor Description VcsRootIdentifiersManagerImpl(DBFunctionsProvider dbfProvider, GuidGenerator guidGenerator, ExtensionsProvider extensionsProvider, NumericIdSequences idSequences, ServerResponsibility serverResponsibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringfindExternalIdByInternalId(DBFunctions dbf, Long internalId)protected LongfindInternalIdByConfigId(DBFunctions dbf, String configId)protected LonggenerateNewIntId(String newExtId)protected Class<Long>getType()Should return type of entity which is then used to properly construct SQL queries with temp tables.protected voidinsertNewEntityInDB(DBFunctions dbf, Long intId, String configId)protected voidinsertNewPairInDB(DBFunctions dbf, Long intId, String extId)protected LongpreprocessInternalId(String internalId)-
Methods inherited from class jetbrains.buildServer.serverSide.identifiers.BaseValidatingIdentifiersManager
isExternalIdOccupied, validateExternalId
-
Methods inherited from class jetbrains.buildServer.serverSide.identifiers.BaseIdentifiersManager
configIdToInternal, consumeEntityIds, deleteFromCache, deleteFromMaps, ensureCanChangeIdsMapping, externalIdSatisfiesConvention, externalToInternal, externalToInternal, findEntityIdByConfigId, findEntityIdByExternalId, findEntityIdByInternalId, generateAndRegisterBrandNewExternalId, generateNewExternalId, getAllExternalIds, getAllExternalIds, getAllExtIdsSet, getAllInternalIds, internalToExternal, internalToExternal, isExternalIdAlias, loadMissingIdentifiersFromDB, markRemoved, modifyConfigId, modifyExternalId, reassignInternalId, reassignInternalIdInMemory, refreshFromDbIfNecessary, registerBrandNewExternalId, registerEntities, registerOrReuseExternalAndConfigId, removeExternalIdAlias, resetRemoved, updateEntitiesRemovedMark
-
Methods inherited from class jetbrains.buildServer.serverSide.identifiers.BaseExternalIdGenerator
generateNewExternalId, generateNewId, generateNewId, regenerateExternalId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.identifiers.ExternalIdGenerator
externalIdSatisfiesConvention, generateNewExternalId, generateNewExternalId, regenerateExternalId
-
Methods inherited from interface jetbrains.buildServer.serverSide.identifiers.IdentifiersManager
configIdToInternal, consumeEntityIds, externalToInternal, externalToInternal, findEntityIdByConfigId, findEntityIdByExternalId, findEntityIdByInternalId, generateAndRegisterBrandNewExternalId, getAllExternalIds, getAllExternalIds, getAllInternalIds, internalToExternal, internalToExternal, isExternalIdAlias, markRemoved, modifyConfigId, modifyExternalId, reassignInternalId, reassignInternalIdInMemory, refreshFromDbIfNecessary, registerBrandNewExternalId, registerOrReuseExternalAndConfigId, removeExternalIdAlias, resetRemoved, validateExternalId
-
-
-
-
Constructor Detail
-
VcsRootIdentifiersManagerImpl
public VcsRootIdentifiersManagerImpl(@NotNull DBFunctionsProvider dbfProvider, @NotNull GuidGenerator guidGenerator, @NotNull ExtensionsProvider extensionsProvider, @NotNull NumericIdSequences idSequences, @NotNull ServerResponsibility serverResponsibility)
-
-
Method Detail
-
preprocessInternalId
@NotNull protected Long preprocessInternalId(@NotNull String internalId)
- Specified by:
preprocessInternalIdin classBaseIdentifiersManager<Long>
-
findInternalIdByConfigId
@Nullable protected Long findInternalIdByConfigId(@NotNull DBFunctions dbf, @NotNull String configId)
- Specified by:
findInternalIdByConfigIdin classBaseIdentifiersManager<Long>
-
findExternalIdByInternalId
@Nullable protected String findExternalIdByInternalId(@NotNull DBFunctions dbf, @NotNull Long internalId)
- Specified by:
findExternalIdByInternalIdin classBaseIdentifiersManager<Long>
-
generateNewIntId
@NotNull protected Long generateNewIntId(@NotNull String newExtId)
- Specified by:
generateNewIntIdin classBaseIdentifiersManager<Long>
-
insertNewEntityInDB
protected void insertNewEntityInDB(@NotNull DBFunctions dbf, @NotNull Long intId, @NotNull String configId)- Specified by:
insertNewEntityInDBin classBaseIdentifiersManager<Long>
-
insertNewPairInDB
protected void insertNewPairInDB(@NotNull DBFunctions dbf, @NotNull Long intId, @NotNull String extId)- Specified by:
insertNewPairInDBin classBaseIdentifiersManager<Long>
-
getType
@NotNull protected Class<Long> getType()
Description copied from class:BaseIdentifiersManagerShould return type of entity which is then used to properly construct SQL queries with temp tables.- Specified by:
getTypein classBaseIdentifiersManager<Long>- Returns:
- see above
-
-