Tabnine Logo
EventClassFamilyDao.findByTenantIdAndName
Code IndexAdd Tabnine to your IDE (free)

How to use
findByTenantIdAndName
method
in
org.kaaproject.kaa.server.common.dao.impl.EventClassFamilyDao

Best Java code snippets using org.kaaproject.kaa.server.common.dao.impl.EventClassFamilyDao.findByTenantIdAndName (Showing top 2 results out of 315)

origin: kaaproject/kaa

@Override
public EventClassFamilyDto findEventClassFamilyByTenantIdAndName(String tenantId, String name) {
 if (isValidSqlId(tenantId)) {
  LOG.debug("Find event class family by tenant id [{}] and name {}", tenantId, name);
  return eventClassFamilyDao.findByTenantIdAndName(tenantId, name).toDto();
 } else {
  throw new IncorrectParameterException("Incorrect tenant id: " + tenantId);
 }
}
origin: kaaproject/kaa

@Test
public void findByTenantIdAndNameTest() {
 List<EventClassFamily> eventClassFamilies = generateEventClassFamily(null, 2);
 EventClassFamily dto = eventClassFamilyDao.findById(eventClassFamilies.get(0).getStringId());
 Assert.assertNotNull(dto);
 EventClassFamily eventClassFamily = eventClassFamilyDao.findByTenantIdAndName(dto.getTenant().getStringId(), dto.getName());
 Assert.assertNotNull(eventClassFamily);
 Assert.assertEquals(dto, eventClassFamily);
}
org.kaaproject.kaa.server.common.dao.implEventClassFamilyDaofindByTenantIdAndName

Javadoc

Find EventClassFamily by tenant id and name.

Popular methods of EventClassFamilyDao

  • findByEcfvId
    Find EventClassFamily by ECF version id.
  • findById
  • findByTenantId
    Find EventClassFamily by tenant id.
  • save
  • removeById
  • removeByTenantId
    Remove all EventClassFamily objects by tenant id.
  • validateClassName
    Validate event class family class name for uniqueness within the tenant.
  • validateName
    Validate event class family name for uniqueness within the tenant.

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Runner (org.openjdk.jmh.runner)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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