public PricingTier toPricingTier() throws MojoExecutionException { if (pricingTierBidiMap.containsKey(pricingTier)) { return pricingTierBidiMap.get(pricingTier); } else { throw new MojoExecutionException("Unknown value of the pricingTier, please correct it in pom.xml."); } }
public PricingTier toPricingTier() throws MojoExecutionException { if (pricingTierBidiMap.containsKey(pricingTier)) { return pricingTierBidiMap.get(pricingTier); } else { throw new MojoExecutionException("Unknown value of the pricingTier, please correct it in pom.xml."); } }
public RuntimeStack getLinuxRuntime() throws MojoExecutionException { // todo: add unit tests if (StringUtils.equalsIgnoreCase(javaVersion, JRE_8)) { final String fixRuntime = StringUtils.isEmpty(webContainer) ? JRE_8 : webContainer; if (runtimeStackMap.containsKey(fixRuntime)) { return runtimeStackMap.get(fixRuntime); } else { throw new MojoExecutionException( String.format("Unknown value of <webContainer>. Supported values are %s.", StringUtils.join(runtimeStackMap.keySet(), ","))); } } throw new MojoExecutionException(String.format( "Unknown value of <javaVersion>. Supported values is %s", JRE_8)); }
/** * Check if this RowSet is ready for update. * @throws SQLException If this rowset has no exposed PK column. */ private void checkUpdate(int column) throws SQLException { if(cachedColumnNames == null) { cacheColumnNames(); } if(pk_name.isEmpty() || !cachedColumnNames.containsKey(pk_name)) { throw new SQLException(I18N.tr("Edition is disabled on table without single numeric primary key.")); } //else if(cachedColumnNames.get(pk_name) == column) { // throw new SQLException(I18N.tr("Can not edit primary key values")); //} }
public synchronized DAG addVertex(Vertex vertex) { if (vertices.containsKey(vertex.getName())) { throw new IllegalStateException( "Vertex " + vertex.getName() + " already defined!"); } vertices.put(vertex.getName(), vertex); return this; }
cacheColumnNames(); boolean ignoreFirstColumn = !cachedColumnNames.containsKey(pk_name); try (Connection connection = dataSource.getConnection(); PreparedStatement st = createBatchQuery(connection, firstPk, cacheData, queryOffset, cacheData ?
cacheColumnNames(); boolean ignoreFirstColumn = !cachedColumnNames.containsKey(pk_name); if(whereClause.length()>0) { if (ignoreFirstColumn) {
if (addressToSocketId.containsKey(source)) { continue;