Tabnine Logo
CreateTableImpl
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: nhaarman/SQLiteBuilder

@NotNull
@Override
public CreateTable table(@Nullable final String databaseName, @NotNull final String tableName) {
 return new CreateTableImpl(databaseName, tableName, this);
}
origin: nhaarman/SQLiteBuilder

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

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

@Test
public void columns_returnsNotNullValue() {
 /* Given */
 CreateTableImpl createTable = new CreateTableImpl(null, "table", mock(SqlPart.class));
 /* When */
 CreateColumns result = createTable.columns();
 /* Then */
 assertThat(result, is(notNullValue()));
}
origin: nhaarman/SQLiteBuilder

 @Test
 public void as_returnsNotNullValue() {
  /* Given */
  CreateTableImpl createTable = new CreateTableImpl(null, "table", mock(SqlPart.class));

  /* When */
  As result = createTable.as(select("a", "b").from("my_other_table"));

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

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

@NotNull
@Override
public CreateTable table(@Nullable final String databaseName, @NotNull final String tableName) {
 return new CreateTableImpl(databaseName, tableName, this);
}
com.nhaarman.sqlitebuilder.implCreateTableImpl

Most used methods

  • <init>
  • as
  • columns
  • prependTo
  • previous

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Top PhpStorm 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