congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CreateTableIfNotExistsImpl
Code IndexAdd Tabnine to your IDE (free)

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

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

@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 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 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 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"));
}
origin: nhaarman/SQLiteBuilder

 @NotNull
 @Override
 public CreateTableIfNotExists tableIfNotExists(@Nullable final String databaseName, @NotNull final String tableName) {
  return new CreateTableIfNotExistsImpl(databaseName, tableName, this);
 }
}
com.nhaarman.sqlitebuilder.implCreateTableIfNotExistsImpl

Most used methods

  • <init>
  • columns
  • prependTo
  • previous

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • String (java.lang)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for WebStorm
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