Java List Create createEntireInStatement(List values)

Here you can find the source of createEntireInStatement(List values)

Description

create Entire In Statement

License

Open Source License

Declaration

public static String createEntireInStatement(List<String> values) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    public static String createEntireInStatement(List<String> values) {
        StringBuilder builder = new StringBuilder(" IN (");

        for (String value : values) {
            builder.append("'" + value + "',");
        }/*from   w  ww .  j  a  v  a  2  s  .  c  o  m*/

        return builder.subSequence(0, builder.length() - 1).toString() + ")";
    }
}

Related

  1. createDriverSheetNames(List driverBeans)
  2. createEmptyAdjacencyList(int n)
  3. createEmptyList(Class type)
  4. createEmptyListArray(int size)
  5. createEmptyListOfType(List original, boolean sameSize)
  6. createErrorStringFromList(List errorList)
  7. createGrantScript(List objectsToGrant, String grantee)
  8. createHTMLList(String list, String link, boolean APPEND, String title)
  9. createIfNull(List list)