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

  • Finding current android device location
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • 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
  • JFrame (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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