congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
GroupByImpl
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: nhaarman/SQLiteBuilder

@NotNull
@Override
public GroupBy groupBy(@NotNull final String expression) {
 return new GroupByImpl(expression, this);
}
origin: nhaarman/SQLiteBuilder

@Test
public void previous_returnsProperItem() {
 /* Given */
 SqlPart sqlPart = mock(SqlPart.class);
 GroupByImpl groupBy = new GroupByImpl("a", sqlPart);
 /* When */
 SqlPart result = groupBy.previous();
 /* Then */
 assertThat(result, is(sqlPart));
}
origin: nhaarman/SQLiteBuilder

@Test
public void orderBy_returnsNotNullValue() {
 /* Given */
 GroupByImpl groupBy = new GroupByImpl("a", mock(SqlPart.class));
 /* When */
 OrderBy result = groupBy.orderBy("a");
 /* Then */
 assertThat(result, is(notNullValue()));
}
origin: nhaarman/SQLiteBuilder

 @Test
 public void limit_returnsNotNullValue() {
  /* Given */
  GroupByImpl groupBy = new GroupByImpl("a", mock(SqlPart.class));

  /* When */
  Limit result = groupBy.limit(5);

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

@Test
public void prependTo_prependsProperSql() {
 /* Given */
 GroupByImpl groupBy = new GroupByImpl("a", mock(SqlPart.class));
 RawSqlBuilder builder = new RawSqlBuilderImpl();
 /* When */
 groupBy.prependTo(builder);
 /* Then */
 assertThat(builder.toString(), is("GROUP BY a"));
}
origin: nhaarman/SQLiteBuilder

@NotNull
@Override
public GroupBy groupBy(@NotNull final String expression) {
 return new GroupByImpl(expression, this);
}
com.nhaarman.sqlitebuilder.implGroupByImpl

Most used methods

  • <init>
  • limit
  • orderBy
  • prependTo
  • previous

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JLabel (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • PhpStorm for WordPress
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