Tabnine Logo
MetaService.upsertJobDef
Code IndexAdd Tabnine to your IDE (free)

How to use
upsertJobDef
method
in
com.enioka.admin.MetaService

Best Java code snippets using com.enioka.admin.MetaService.upsertJobDef (Showing top 3 results out of 315)

origin: com.enioka.jqm/jqm-admin

public static void syncJobDefs(DbConn cnx, List<JobDefDto> dtos)
{
  for (JobDefDto existing : getJobDef(cnx))
  {
    boolean foundInNewSet = false;
    for (JobDefDto newdto : dtos)
    {
      if (newdto.getId() != null && newdto.getId().equals(existing.getId()))
      {
        foundInNewSet = true;
        break;
      }
    }
    if (!foundInNewSet)
    {
      deleteJobDef(cnx, existing.getId());
    }
  }
  for (JobDefDto dto : dtos)
  {
    upsertJobDef(cnx, dto);
  }
}
origin: enioka/jqm

public static void syncJobDefs(DbConn cnx, List<JobDefDto> dtos)
{
  for (JobDefDto existing : getJobDef(cnx))
  {
    boolean foundInNewSet = false;
    for (JobDefDto newdto : dtos)
    {
      if (newdto.getId() != null && newdto.getId().equals(existing.getId()))
      {
        foundInNewSet = true;
        break;
      }
    }
    if (!foundInNewSet)
    {
      deleteJobDef(cnx, existing.getId());
    }
  }
  for (JobDefDto dto : dtos)
  {
    upsertJobDef(cnx, dto);
  }
}
origin: enioka/jqm

MetaService.upsertJobDef(cnx, dto);
cnx.commit();
MetaService.upsertJobDef(cnx, dto);
cnx.commit();
dto2 = MetaService.getJobDef(cnx, i);
MetaService.upsertJobDef(cnx, dto2);
cnx.commit();
dto2 = MetaService.getJobDef(cnx, i);
MetaService.upsertJobDef(cnx, dto2);
cnx.commit();
dto2 = MetaService.getJobDef(cnx, i);
MetaService.upsertJobDef(cnx, dto2);
cnx.commit();
dto2 = MetaService.getJobDef(cnx, i);
MetaService.upsertJobDef(cnx, dto2);
cnx.commit();
MetaService.upsertJobDef(cnx, dto2);
cnx.commit();
dto2.getSchedules().get(0).addParameter("test1", "value1");
dto2.getSchedules().get(0).addParameter("test2", "value2");
MetaService.upsertJobDef(cnx, dto2);
cnx.commit();
com.enioka.adminMetaServiceupsertJobDef

Popular methods of MetaService

  • getNodes
  • getQueueMappings
  • upsertNode
  • changeUserPassword
  • getGlobalParameter
  • getJndiObjectResource
  • getJobDef
  • getNode
  • getRoles
  • upsertJndiObjectResource
    Update or insert a resource. Convention is that if dto.id is null, we always insert. If non null, al
  • addSubElementsToDto
  • deleteAllTransac
    This method is an exception - it does not deal with metadata but transactional data. It is included
  • addSubElementsToDto,
  • deleteAllTransac,
  • deleteGlobalParameter,
  • deleteJndiObjectResource,
  • deleteJobDef,
  • deleteQueue,
  • deleteQueueMapping,
  • deleteRole,
  • deleteUser

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • BoxLayout (javax.swing)
  • Top 12 Jupyter Notebook extensions
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