Tabnine Logo
SelectImpl.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.nhaarman.sqlitebuilder.impl.SelectImpl.<init> (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 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_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 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<init>

Popular methods of SelectImpl

  • from
  • prependTo
  • previous

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JComboBox (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
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