Uses of Class
jetbrains.buildServer.serverSide.db.DBException
-
-
Uses of DBException in jetbrains.buildServer.maintenance.exceptions
Constructors in jetbrains.buildServer.maintenance.exceptions with parameters of type DBException Constructor Description DBExceptionAdapter(DBException dbe)
-
Uses of DBException in jetbrains.buildServer.serverSide.db
Subclasses of DBException in jetbrains.buildServer.serverSide.db Modifier and Type Class Description class
ConnectionPoolExhaustedException
class
CouldNotConnectToDatabaseException
Thrown when TeamCity could not connect to DBMS or DBMS could not open files.class
DatabaseAccessDeniedException
Access to one or several database objects is denied.class
DatabaseDeadlockException
Deadlock.class
DatabaseDriverMissingException
class
DatabaseIsNotReachableException
Thrown when TeamCity could not connect to DBMS or DBMS could not open files.class
DatabaseIsOutOfSpaceException
Thrown when could not create or extend a stored object because no free space or tablespace quota is exhausted.class
DatumIsTooLargeException
Thrown when the data value could not fit into a column.class
DBDisconnectedException
Thrown when TeamCity could not connect to DBMS or DBMS could not open files.class
DBDuplicatedRowException
Thrown when unique key violation occured.class
DBStringValueIsTooLongException
Thrown when attempted to bind/pass a string that could not fit into the corresponding field.class
IncorrectConnectionSettingsException
class
JdbcDriverIsTooOldException
class
JdbcIncompatibilityException
class
LockWaitTimeoutException
Thrown when database could not acquire lock in appropriate time.class
NativeDatabaseDriverIsNotAccessibleException
Thrown when native database driver is not found.class
RetryException
Thrown by a client code inside "runAndRetry", if the transaction is failed and should be tried again.class
SecondTeamCityInstanceException
class
ShutdownException
Created by IntelliJ IDEA.class
TooManyRetriesException
Thrown when transaction could not been completed because of too manyRetryException
occurrences.class
UnexpectedDBException
class
UnknownDatabaseTypeException
class
UnsupportedSQLPhraseException
Thrown when one attempted to use a SQL phrase that is not supported by the current RDBMS.Methods in jetbrains.buildServer.serverSide.db that return DBException Modifier and Type Method Description DBException
DBFunctions. convertSQLException(String operation, SQLException sqle)
DBException
DBFunctions. convertSQLException(String operation, SQLException sqle, String query)
DBException
SQLExceptionConvertor. convertSQLException(String operation, SQLException sqle)
DBException
SQLExceptionConvertor. convertSQLException(String operation, SQLException sqle, String query)
DBException
SQLExceptionConvertorBase. convertSQLException(String operation, SQLException sqle)
ConvertsSQLException
toDBException
.DBException
SQLExceptionConvertorBase. convertSQLException(String operation, SQLException sqle, String query)
ConvertsSQLException
toDBException
.Methods in jetbrains.buildServer.serverSide.db that throw DBException Modifier and Type Method Description boolean
TeamCityDatabaseManager. activateHeartbeat(String nodeId, Set<NodeResponsibility> supportedResponsibilities, boolean fixedResponsibilities, ServerPaths serverPaths, Heartbeat.AppType appType, String accessToken, String uuid, Date serverStartupTimestamp)
Captures the TeamCity database lockvoid
DBFunctions. applyParameters(PreparedStatement stmt, Object[] params)
static void
DatabaseUtil. assignTmpInts(DBFunctions dbf, String tableName, Collection<Integer> values)
Assigns the given set of integer values to the specified temporary table.static void
DatabaseUtil. assignTmpLongs(DBFunctions dbf, String tableName, Collection<Long> values)
Assigns the given set of long integer values to the specified temporary table.static void
DatabaseUtil. assignTmpStrings(DBFunctions dbf, String tableName, Collection<String> values)
Assigns the given set of strings to the specified temporary table.static void
DatabaseUtil. assignUnicodeTmpStrings(DBFunctions dbf, String tableName, Collection<UnicodeString> values)
Assigns the given set of objects to the specified temporary table.boolean
DBFunctions. checkQueryReturnsRows(String query, Object... params)
Executes the given query and checks whether it returns at least one row.boolean
DBFunctions. checkQueryReturnsRows(String query, Map<String,Object> params)
Executes the given query and checks whether it returns at least one row.static void
DatabaseUtil. cleanTmpTable(DBFunctions dbf, String tableName)
Cleans the specified temporary table.void
TeamCityDatabaseManager. connect(boolean pooling)
Connects do the database.static void
DBSchema. createInitialData(DBFunctions dbf, GuidGenerator guidGenerator)
void
DBFunctions. executeDdls(String... commands)
Executes one or several DDL commands.protected void
BaseDatabaseTestCase. executeScript(String script)
Map<String,Integer>
DBFunctions. getTableColumnWidths(String tableName)
Retrieves column widths for the specified table.static Collection<Integer>
DatabaseUtil. getTmpInts(DBFunctions dbf, String tableName)
Retrieves integer values from the first column of the specified temporary table.static Collection<Long>
DatabaseUtil. getTmpLongs(DBFunctions dbf, String tableName)
Retrieves long integer values from the first column of the specified temporary table.static Collection<String>
DatabaseUtil. getTmpStrings(DBFunctions dbf, String tableName)
Retrieves strings from the first column of the specified temporary table.void
DatabaseSettings. initializeFromProperties(Properties properties)
boolean
DBFunctions. queryForSingleBoolean(String query, boolean defaultValue, Object... params)
Performs a "select" query and expects one row with one boolean or integer column.int
DBFunctions. queryForSingleInt(String query, int defaultValue, Object... params)
Performs a "select" query and expects one row with one integer column.long
DBFunctions. queryForSingleLong(String query, long defaultValue, Object... params)
Performs a "select" query and expects one row with one long integer column.String
DBFunctions. queryForSingleString(String query, String defaultValue, Object... params)
Performs a "select" query and expects one row with one column.String
DBFunctions. queryForSingleString(String query, String defaultValue, Map<String,Object> params)
Performs a "select" query and expects one row with one column.Timestamp
DBFunctions. queryForSingleTimestamp(String query, Timestamp defaultValue, Object... params)
Performs a "select" query and expects one row with one timestamp column.Pair<Long,Long>
DBFunctions. queryForTwoLongsSingleRecord(String query, Object... params)
Performs a "select" query and expects one row with two long integer columns.<T> T
DBFunctions. queryForValue(Class<T> clazz, String query, Object... params)
Performs a "select" query and expects one row with one column.<T> T
DBFunctions. queryForValue(Class<T> clazz, String query, Map<String,Object> params)
Performs a "select" query and expects one row with one column.T
DBAction. run(DBFunctions dbf)
void
DBAction2. run(DBFunctions dbf1, DBFunctions dbf2)
void
DBActionNoResults. run(DBFunctions dbf)
void
DBFacade. runDdls(String[] queries)
Performs the specified DDL commands.void
DBFacade. runDmls(String[] queries)
Performs the specified DML queries (insert, update, delete), and commits the transaction. -
Uses of DBException in jetbrains.buildServer.serverSide.db.HSQL
Subclasses of DBException in jetbrains.buildServer.serverSide.db.HSQL Modifier and Type Class Description class
CouldNotConnectToHsqlException
Throws when TeamCity unable to open an HSQL database.class
HsqlFileDoesntExistException
Thrown when requested to open an existent HSQL database (and not create a new one), but the specified database file doesn't exists.class
HsqlInternalError
class
HSQLInternalInitializingError
class
HsqlOutOfMemoryException
Internal HSQL memory problem.class
HsqlOutOfMemoryOrCorruptedException
Internal HSQL memory problem, or HSQL DB is corrupted. -
Uses of DBException in jetbrains.buildServer.serverSide.db.jdbcLoader
Subclasses of DBException in jetbrains.buildServer.serverSide.db.jdbcLoader Modifier and Type Class Description class
NoSuitableJdbcDrivers
Raises whe no suitable JDBC drivers found. -
Uses of DBException in jetbrains.buildServer.serverSide.db.MySQL
Subclasses of DBException in jetbrains.buildServer.serverSide.db.MySQL Modifier and Type Class Description class
MySqlDriverIncompatibilityError
A dumb incompatibility between MySQL server and MySQL jdbc driver.class
MySqlIncorrectStringValueException
MySQL problem with non-BMP characters. -
Uses of DBException in jetbrains.buildServer.serverSide.db.queries
Methods in jetbrains.buildServer.serverSide.db.queries that throw DBException Modifier and Type Method Description String
DebugQuery. executeToString(DBFunctions dbf)
-
Uses of DBException in jetbrains.buildServer.serverSide.impl.cleanup
Methods in jetbrains.buildServer.serverSide.impl.cleanup that throw DBException Modifier and Type Method Description Map<String,gnu.trove.list.TLongList>
HistoryRetentionPolicy. getBuildsToClean(DBFunctions dbf, Collection<String> buildTypeIds, int packSize, ProjectManagerEx projectManager, jetbrains.buildServer.serverSide.impl.cleanup.CleanupStatistics statistics, CleanupDecisionListener decisionListener)
Collection<Long>
BuildsHistoryCleaner. performBuildsCleanup(List<Long> buildIds, KeepLevel keepLevel, KeepBuildData keepBuildData)
Collection<Long>
BuildsHistoryCleanerImpl. performBuildsCleanup(List<Long> buildIds, KeepLevel keepLevel, KeepBuildData keepBuildData)
void
BuildsHistoryCleaner. performCleanup(Map<String,jetbrains.buildServer.serverSide.impl.cleanup.BaseKeepRule> buildTypeId2BaseRule, Map<String,Collection<KeepRule>> buildTypeId2CombinedRules, CleanupProcessStateEx cleanupState)
void
BuildsHistoryCleanerImpl. performCleanup(Map<String,jetbrains.buildServer.serverSide.impl.cleanup.BaseKeepRule> buildTypeId2BaseRule, Map<String,Collection<KeepRule>> buildTypeId2CombinedRules, CleanupProcessStateEx cleanupState)
-
Uses of DBException in jetbrains.buildServer.serverSide.versioning
Methods in jetbrains.buildServer.serverSide.versioning that throw DBException Modifier and Type Method Description static void
VersionManager. checkVersionsAndUpgradeSchemaIfNeeded(DBFunctions dbf, ServerPaths serverPaths)
Upgrades an existance schema if needed.static void
VersionManager. ensureActualDatabase(TeamCityDatabaseManager tcdbm, ServerPaths serverPaths)
static void
VersionManager. upgradeIt(ServerPaths serverPaths, DBFunctions dbf, IntInterval upgradeRange)
WARNING! - we're assume that upgradeRange.B will be exactly the current software version number. -
Uses of DBException in jetbrains.buildServer.serverSide.versioning.converters
Methods in jetbrains.buildServer.serverSide.versioning.converters that throw DBException Modifier and Type Method Description void
BuildProblemIdInAllTablesConverter. convert(DBFunctions dbf, File teamCityDataDir)
void
BuildProblemIdInAllTablesConverterPart2. convert(DBFunctions dbf, File teamCityDataDir)
void
RemoveCommentIdentifiersFromAgentTableConverter. convertInternal(DBFunctions dbf, File teamCityDataDir)
-