Codota Logo
SetImpl
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: nhaarman/SQLiteBuilder

@NotNull
@Override
public Set set(@NotNull final String... columnNames) {
 return new SetImpl(columnNames, this);
}
origin: nhaarman/SQLiteBuilder

UpdateValuesImpl(@NotNull final Object[] values, @NotNull final SetImpl previous) {
 if (values.length != previous.getColumnCount()) {
  throw new IllegalArgumentException(String.format("Invalid number of values. Supplied %d columns and %d values.", previous.getColumnCount(), values.length));
 }
 mValues = values;
 mPrevious = previous;
}
origin: nhaarman/SQLiteBuilder

@Test
public void prependTo_withSingleColumn_prependsProperSql() {
 /* Given */
 SetImpl set = new SetImpl(new String[] {"a"}, mock(SqlPart.class));
 RawSqlBuilder builder = new RawSqlBuilderImpl();
 /* When */
 set.prependTo(builder);
 /* Then */
 assertThat(builder.toString(), is("SET a=?"));
}
origin: nhaarman/SQLiteBuilder

 @Test
 public void values_returnsNotNullValue() {
  /* Given */
  SetImpl set = new SetImpl(new String[] {"a"}, mock(SqlPart.class));

  /* When */
  UpdateValues result = set.values(2);

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

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

@Test
public void prependTo_withMultipleColumns_prependsProperSql() {
 /* Given */
 SetImpl set = new SetImpl(new String[] {"a", "b", "c"}, mock(SqlPart.class));
 RawSqlBuilder builder = new RawSqlBuilderImpl();
 /* When */
 set.prependTo(builder);
 /* Then */
 assertThat(builder.toString(), is("SET a=?,b=?,c=?"));
}
com.nhaarman.sqlitebuilder.implSetImpl

Most used methods

  • <init>
  • getColumnCount
  • prependTo
  • previous
  • values

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now