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

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

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

origin: nhaarman/SQLiteBuilder

@NotNull
@Override
public DropTableIfExists tableIfExists(@Nullable final String databaseName, @NotNull final String tableName) {
 return new DropTableIfExistsImpl(databaseName, tableName, this);
}
origin: nhaarman/SQLiteBuilder

 @Test
 public void previous_returnsProperItem() {
  /* Given */
  SqlPart sqlPart = mock(SqlPart.class);
  DropTableIfExistsImpl dropTable = new DropTableIfExistsImpl(null, "table", sqlPart);

  /* When */
  SqlPart result = dropTable.previous();

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

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

@Test
public void prependTo_withOnlyTableName_prependsProperSql() {
 /* Given */
 DropTableIfExistsImpl dropTable = new DropTableIfExistsImpl(null, "table", mock(SqlPart.class));
 RawSqlBuilder builder = new RawSqlBuilderImpl();
 /* When */
 dropTable.prependTo(builder);
 /* Then */
 assertThat(builder.toString(), is("TABLE IF EXISTS table"));
}
com.nhaarman.sqlitebuilder.implDropTableIfExistsImpl<init>

Popular methods of DropTableIfExistsImpl

  • prependTo
  • previous

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Notification (javax.management)
  • 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