Codota Logo
ProfileSchemaDao.findByApplicationId
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • addToBackStack (FragmentTransaction)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • JCheckBox (javax.swing)
  • JFileChooser (javax.swing)
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