Tabnine Logo
ProfileSchemaDao.findByApplicationId
Code IndexAdd Tabnine to your IDE (free)

How to use
findByApplicationId
method
in
org.kaaproject.kaa.server.common.dao.impl.ProfileSchemaDao

Best Java code snippets using org.kaaproject.kaa.server.common.dao.impl.ProfileSchemaDao.findByApplicationId (Showing top 4 results out of 315)

origin: kaaproject/kaa

@Override
public List<VersionDto> findProfileSchemaVersionsByAppId(String applicationId) {
 validateSqlId(applicationId, "Can't find profile schemas. Invalid application id: "
                + applicationId);
 List<EndpointProfileSchema> endpointProfileSchemas =
     profileSchemaDao.findByApplicationId(applicationId);
 List<VersionDto> schemas = new ArrayList<>();
 for (EndpointProfileSchema endpointProfileSchema : endpointProfileSchemas) {
  schemas.add(endpointProfileSchema.toVersionDto());
 }
 return schemas;
}
origin: kaaproject/kaa

@Override
public void removeProfileSchemasByAppId(String applicationId) {
 validateSqlId(applicationId, "Can't remove profile schema. Invalid application id: "
                + applicationId);
 List<EndpointProfileSchema> schemas = profileSchemaDao.findByApplicationId(applicationId);
 if (schemas != null && !schemas.isEmpty()) {
  LOG.debug("Remove profile shemas by application id {}", applicationId);
  for (EndpointProfileSchema schema : schemas) {
   removeProfileSchemaById(schema.getId().toString());
  }
 }
}
origin: kaaproject/kaa

@Override
public List<EndpointProfileSchemaDto> findProfileSchemasByAppId(String applicationId) {
 validateSqlId(applicationId, "Can't find profile schema. Invalid application id: "
                + applicationId);
 return convertDtoList(profileSchemaDao.findByApplicationId(applicationId));
}
origin: kaaproject/kaa

@Test
public void findByApplicationId() {
 List<EndpointProfileSchema> schemas = generateProfSchema(null, 3);
 Assert.assertEquals(3, schemas.size());
 EndpointProfileSchema schema = schemas.get(0);
 Application app = schema.getApplication();
 List<EndpointProfileSchema> found = profileSchemaDao.findByApplicationId(app.getId().toString());
 Assert.assertEquals(3, found.size());
 Assert.assertEquals(schemas, found);
}
org.kaaproject.kaa.server.common.dao.implProfileSchemaDaofindByApplicationId

Javadoc

Find profile schemas by application id.

Popular methods of ProfileSchemaDao

  • findByAppIdAndVersion
    Find profile schema by application id and version.
  • findLatestByAppId
    Find latest profile schema by application id.
  • save
  • findById
  • removeById

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now