Codota Logo
DatabaseProcessingException
Code IndexAdd Codota to your IDE (free)

How to use
DatabaseProcessingException
in
org.kaaproject.kaa.server.common.dao.exception

Best Java code snippets using org.kaaproject.kaa.server.common.dao.exception.DatabaseProcessingException (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: kaaproject/kaa

if (!newSchemaMetaInfo.equals(prevSchemaMetaInfo)) {
 if (isBlank(newSchemaMetaInfo.getFqn())) {
  throw new DatabaseProcessingException("FQN can't be empty.");
  throw new DatabaseProcessingException("Can't change FQN of the existing common type.");
   != prevScope) {
  if (SYSTEM.equals(newScope)) {
   throw new DatabaseProcessingException("Can't update scope to system.");
   throw new DatabaseProcessingException("Can't update scope to lower.");
  throw new DatabaseProcessingException("Can't change tenant reference for the existing "
                     + "common type.");
  throw new DatabaseProcessingException("Can't change application reference for the "
                     + "existing common type.");
origin: kaaproject/kaa

} else {
 LOG.warn("Endpoint is not assigned to current user {}!", endpointUserId);
 throw new DatabaseProcessingException("Endpoint is not assigned to current user.");
throw new DatabaseProcessingException("Endpoint user is not present in db.");
origin: kaaproject/kaa

  LOG.warn("Endpoint is already assigned to different user {}. Unassign it first!.",
      endpoint.getEndpointUserId());
  throw new DatabaseProcessingException("Endpoint is already assigned to different user.");
 throw new DatabaseProcessingException("No endpoint found for specified accessToken.");
throw new DatabaseProcessingException("Endpoint user is not present in db.");
origin: kaaproject/kaa

  throw new DatabaseProcessingException("Common type version can't be deleted because "
                     + "it is referenced by system modules.");
throw new DatabaseProcessingException("Common type version can't be deleted because it is"
                   + " referenced by other types.");
origin: kaaproject/kaa

@Override
public CTLSchemaDto updateCtlSchema(CTLSchemaDto ctlSchema) {
 validateCtlSchemaObject(ctlSchema);
 LOG.debug("Update ctl schema with id [{}]", ctlSchema.getId());
 CtlSchema schema = ctlSchemaDao.findById(ctlSchema.getId());
 if (schema != null) {
  synchronized (this) {
   if (ctlSchema.getVersion()
     != schema.getVersion()) {
    throw new DatabaseProcessingException("Can't change version of existing common type "
                       + "version.");
   }
   CtlSchemaMetaInfo metaInfo = schema.getMetaInfo();
   if (!ctlSchema.getMetaInfo().equals(metaInfo.toDto())) {
    throw new DatabaseProcessingException("Can't update scope of existing common type "
                       + "version within update procedure.");
   }
   ctlSchemaMetaInfoDao.lockRequest(lockOptions).setScope(true).lock(metaInfo);
   schema.update(ctlSchema);
   return DaoUtil.getDto(ctlSchemaDao.save(schema, true));
  }
 } else {
  throw new DatabaseProcessingException("Can't find common type version by id.");
 }
}
origin: kaaproject/kaa

 dto.setType(schema.getType());
} else {
 throw new DatabaseProcessingException("Can't find notification schema by id " + schemaId);
} catch (IOException ex) {
 LOG.error("Can't serialize notification body using schema. ", ex);
 throw new DatabaseProcessingException("Can't serialize notification body using schema: "
                    + schemaId);
origin: kaaproject/kaa

LOG.error("[{}] Stored profile is null. Can't update endpoint profile.",
  profile.getId());
throw new DatabaseProcessingException("Stored profile is null. "
  + "Can't update endpoint profile.");
origin: kaaproject/kaa

@Override
public void removeEndpointProfileByKeyHash(byte[] endpointProfileKeyHash) {
 validateHash(endpointProfileKeyHash, "Can't remove endpoint profile by key hash. Invalid key "
                    + "hash "
                    + endpointProfileKeyHash);
 EndpointProfile endpointProfile = endpointProfileDao.findByKeyHash(endpointProfileKeyHash);
 if (endpointProfile
   != null) {
  if (isValidId(endpointProfile.getEndpointUserId())) {
   detachEndpointFromUser(getDto(endpointProfile));
  }
  endpointProfileDao.removeByKeyHash(endpointProfileKeyHash);
 } else {
  throw new DatabaseProcessingException("Endpoint profile is not present in db.");
 }
}
origin: kaaproject/kaa

@Override
public CtlSchemaMetaInfoDto updateCtlSchemaMetaInfoScope(CtlSchemaMetaInfoDto ctlSchemaMetaInfo) {
 validateObject(ctlSchemaMetaInfo, "Incorrect ctl schema meta info object");
 LOG.debug("Update ctl schema meta info scope with id [{}]", ctlSchemaMetaInfo.getId());
 CtlSchemaMetaInfo schemaMetaInfo = ctlSchemaMetaInfoDao.findById(ctlSchemaMetaInfo.getId());
 if (schemaMetaInfo
   != null) {
  synchronized (this) {
   ctlSchemaMetaInfoDao.lockRequest(lockOptions).setScope(true).lock(schemaMetaInfo);
   if (checkScopeUpdate(ctlSchemaMetaInfo, schemaMetaInfo.toDto())) {
    List<CtlSchemaMetaInfo> others = ctlSchemaMetaInfoDao.findOthersByFqnAndTenantId(
        ctlSchemaMetaInfo.getFqn(), ctlSchemaMetaInfo.getTenantId(), ctlSchemaMetaInfo
            .getId());
    if (others != null && !others.isEmpty()) {
     throw new DatabaseProcessingException("Can't update scope of the common type due to "
                        + "an FQN conflict.");
    }
    schemaMetaInfo = ctlSchemaMetaInfoDao.updateScope(
        new CtlSchemaMetaInfo(ctlSchemaMetaInfo));
   }
   return DaoUtil.getDto(schemaMetaInfo);
  }
 } else {
  throw new DatabaseProcessingException("Can't find common type by id.");
 }
}
origin: kaaproject/kaa

    .getFqn(), metaInfo.getTenantId(), metaInfo.getApplicationId());
if (existingFqns != null && !existingFqns.isEmpty()) {
 throw new DatabaseProcessingException("Can't save common type due to an FQN conflict.");
 dto = getDto(ctlSchemaDao.save(ctlSchema, true));
} catch (DataIntegrityViolationException ex) {
 throw new DatabaseProcessingException("Can't save common type: such FQN and version "
                    + "already exist.");
} catch (Exception ex) {
 throw new DatabaseProcessingException(ex);
origin: kaaproject/kaa

EndpointProfile ep = endpointProfileDao.findByKeyHash(endpointKeyHash);
if (ep == null) {
 throw new DatabaseProcessingException("Can't find endpoint profile by hash "
                    + endpointKeyHash);
 throw new DatabaseProcessingException("Endpoint profile is not subscribed to this topic");
} catch (IOException ex) {
 LOG.error("Can't serialize notification body using schema. ", ex);
 throw new DatabaseProcessingException("Can't serialize notification body using schema: "
                    + schemaId);
throw new DatabaseProcessingException("Can't find notification schema by id " + schemaId);
origin: kaaproject/kaa

} else {
 LOG.warn("Endpoint profile with key hash {} already exists.", keyHash);
 throw new DatabaseProcessingException("Can't save endpoint profile with existing key "
                    + "hash.");
origin: kaaproject/kaa

     activatedUsername);
} else {
 throw new DatabaseProcessingException("Incorrect old profile filters. "
                    + "Profile schema id is empty.");
 profileNotification.setChangeNotificationDto(changeNotificationDto);
} else {
 throw new DatabaseProcessingException("Can't activate profile filter.");
origin: kaaproject/kaa

 configurationDao.deactivateOldConfiguration(schemaId, groupId, activatedUsername);
} else {
 throw new DatabaseProcessingException(
   "Incorrect old configuration. Configuration schema or endpoint group id is empty.");
org.kaaproject.kaa.server.common.dao.exceptionDatabaseProcessingException

Most used methods

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • requestLocationUpdates (LocationManager)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now