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

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

Best Java code snippets using com.nhaarman.sqlitebuilder.impl.CreateTableIfNotExistsImpl.<init> (Showing top 6 results out of 315)

origin: nhaarman/SQLiteBuilder

 @NotNull
 @Override
 public CreateTableIfNotExists tableIfNotExists(@Nullable final String databaseName, @NotNull final String tableName) {
  return new CreateTableIfNotExistsImpl(databaseName, tableName, this);
 }
}
origin: nhaarman/SQLiteBuilder

 @NotNull
 @Override
 public CreateTableIfNotExists tableIfNotExists(@Nullable final String databaseName, @NotNull final String tableName) {
  return new CreateTableIfNotExistsImpl(databaseName, tableName, this);
 }
}
origin: nhaarman/SQLiteBuilder

 @Test
 public void columns_returnsNotNullValue() {
  /* Given */
  CreateTableIfNotExistsImpl createTableIfNotExists = new CreateTableIfNotExistsImpl(null, "table", mock(SqlPart.class));

  /* When */
  CreateColumns result = createTableIfNotExists.columns();

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

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

@Test
public void prependTo_withOnlyTableName_prependsProperSql() {
 /* Given */
 CreateTableIfNotExistsImpl createTableIfNotExists = new CreateTableIfNotExistsImpl(null, "table", mock(SqlPart.class));
 RawSqlBuilder builder = new RawSqlBuilderImpl();
 /* When */
 createTableIfNotExists.prependTo(builder);
 /* Then */
 assertThat(builder.toString(), is("TABLE IF NOT EXISTS table"));
}
origin: nhaarman/SQLiteBuilder

@Test
public void prependTo_withDatabaseAndTableName_prependsProperSql() {
 /* Given */
 CreateTableIfNotExistsImpl createTableIfNotExists = new CreateTableIfNotExistsImpl("database", "table", mock(SqlPart.class));
 RawSqlBuilder builder = new RawSqlBuilderImpl();
 /* When */
 createTableIfNotExists.prependTo(builder);
 /* Then */
 assertThat(builder.toString(), is("TABLE IF NOT EXISTS database.table"));
}
com.nhaarman.sqlitebuilder.implCreateTableIfNotExistsImpl<init>

Popular methods of CreateTableIfNotExistsImpl

  • columns
  • prependTo
  • previous

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JComboBox (javax.swing)
  • Top Sublime Text plugins
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