Tabnine Logo
SelectImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
SelectImpl
in
com.nhaarman.sqlitebuilder.impl

Best Java code snippets using com.nhaarman.sqlitebuilder.impl.SelectImpl (Showing top 6 results out of 315)

origin: nhaarman/SQLiteBuilder

@NotNull
public static Select select(@NotNull final String... columns) {
 return new SelectImpl(columns);
}
origin: nhaarman/SQLiteBuilder

@Test
public void prependTo_withMultipleColumns_prependsProperSql() {
 /* Given */
 String[] columns = {"a", "b", "c"};
 SelectImpl select = new SelectImpl(columns);
 RawSqlBuilder builder = new RawSqlBuilderImpl();
 /* When */
 select.prependTo(builder);
 /* Then */
 assertThat(builder.toString(), is("SELECT a,b,c"));
}
origin: nhaarman/SQLiteBuilder

@Test
public void previous_returnsNull() {
 /* Given */
 SelectImpl select = new SelectImpl();
 /* When */
 SqlPart result = select.previous();
 /* Then */
 assertThat(result, is(nullValue()));
}
origin: nhaarman/SQLiteBuilder

 @Test
 public void from_returnsNotNullValue() {
  /* Given */
  SelectImpl select = new SelectImpl();

  /* When */
  SelectFrom result = select.from("my_table");

  /* Then */
  assertThat(result, is(notNullValue()));
 }
}
origin: nhaarman/SQLiteBuilder

@Test
public void prependTo_withoutColumns_prependsProperSql() {
 /* Given */
 SelectImpl select = new SelectImpl();
 RawSqlBuilder builder = new RawSqlBuilderImpl();
 /* When */
 select.prependTo(builder);
 /* Then */
 assertThat(builder.toString(), is("SELECT *"));
}
origin: nhaarman/SQLiteBuilder

@Test
public void prependTo_withOneColumn_prependsProperSql() {
 /* Given */
 String[] columns = {"a"};
 SelectImpl select = new SelectImpl(columns);
 RawSqlBuilder builder = new RawSqlBuilderImpl();
 /* When */
 select.prependTo(builder);
 /* Then */
 assertThat(builder.toString(), is("SELECT a"));
}
com.nhaarman.sqlitebuilder.implSelectImpl

Most used methods

  • <init>
  • from
  • prependTo
  • previous

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JButton (javax.swing)
  • Top plugins for WebStorm
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