Tabnine Logo
BatchInsertGenKeysOp$FjList.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.novarto.sanedbc.core.ops.BatchInsertGenKeysOp$FjList
constructor

Best Java code snippets using com.novarto.sanedbc.core.ops.BatchInsertGenKeysOp$FjList.<init> (Showing top 3 results out of 315)

origin: novarto-oss/sane-dbc

private static BatchInsertGenKeysOp.FjList<String, Integer> insertKeysOp(Iterable<String> dummys)
{
  return new BatchInsertGenKeysOp.FjList<>("INSERT INTO MySqlTest_IDS(DUMMY) VALUES (?)",
      x -> st -> st.setString(1, x), dummys, rs -> rs.getInt(1));
}
origin: novarto-oss/sane-dbc

public static DB<Unit> insertOrders(List<CreateOrder> newOrders)
{
  // insert all the orders via batch, return the ORDER_ID keys
  DB<List<Integer>> insertOrdersGetKeys = new BatchInsertGenKeysOp.FjList<>(
      "INSERT INTO ORDERS(USER_EMAIL, TEXT) VALUES(?, ?)",
      x -> ps -> {
        ps.setString(1, x.userEmail);
        ps.setString(2, x.text);
      },
      newOrders,
      rs -> rs.getInt(1)
  );
  return insertOrdersGetKeys.map(ignore -> Unit.unit());
}
origin: novarto-oss/sane-dbc

DB.transact(new BatchInsertGenKeysOp.FjList<>(
    "whatevs",
    x -> ps -> {
com.novarto.sanedbc.core.opsBatchInsertGenKeysOp$FjList<init>

Popular methods of BatchInsertGenKeysOp$FjList

  • bind

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • CodeWhisperer alternatives
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