Tabnine Logo
DatabaseConnection.isTableExists
Code IndexAdd Tabnine to your IDE (free)

How to use
isTableExists
method
in
com.j256.ormlite.support.DatabaseConnection

Best Java code snippets using com.j256.ormlite.support.DatabaseConnection.isTableExists (Showing top 5 results out of 315)

origin: j256/ormlite-core

  @Override
  public boolean isTableExists(String tableName) throws SQLException {
    if (proxy == null) {
      return false;
    } else {
      return proxy.isTableExists(tableName);
    }
  }
}
origin: com.j256.ormlite/ormlite-core

  @Override
  public boolean isTableExists(String tableName) throws SQLException {
    if (proxy == null) {
      return false;
    } else {
      return proxy.isTableExists(tableName);
    }
  }
}
origin: j256/ormlite-core

@Override
public boolean isTableExists() throws SQLException {
  checkForInitialized();
  DatabaseConnection connection = connectionSource.getReadOnlyConnection(tableInfo.getTableName());
  try {
    return connection.isTableExists(tableInfo.getTableName());
  } finally {
    connectionSource.releaseConnection(connection);
  }
}
origin: com.j256.ormlite/ormlite-core

@Override
public boolean isTableExists() throws SQLException {
  checkForInitialized();
  DatabaseConnection connection = connectionSource.getReadOnlyConnection(tableInfo.getTableName());
  try {
    return connection.isTableExists(tableInfo.getTableName());
  } finally {
    connectionSource.releaseConnection(connection);
  }
}
origin: j256/ormlite-core

@Test
public void testIsTableExists() throws Exception {
  DatabaseConnection conn = createMock(DatabaseConnection.class);
  boolean tableExists = true;
  String tableName = "fjewfjwef";
  expect(conn.isTableExists(tableName)).andReturn(tableExists);
  conn.close();
  DatabaseConnectionProxy proxy = new DatabaseConnectionProxy(conn);
  replay(conn);
  assertEquals(tableExists, proxy.isTableExists(tableName));
  proxy.close();
  verify(conn);
}
com.j256.ormlite.supportDatabaseConnectionisTableExists

Javadoc

Return true if the table exists in the database.

Popular methods of DatabaseConnection

  • executeStatement
    Execute a statement directly on the connection.
  • isAutoCommit
    Return if auto-commit is currently enabled.
  • setAutoCommit
    Set the auto-commit to be on (true) or off (false). Setting auto-commit to true may or may-not cause
  • commit
    Commit all changes since the savepoint was created. If savePoint is null then commit all outstanding
  • compileStatement
    Like compileStatement(String, StatementType, FieldType[]) except the caller can specify the result f
  • setSavePoint
    Start a save point with a certain name. It can be a noop if savepoints are not supported.
  • close
  • closeQuietly
    Close the connection to the database but swallow any exceptions.
  • insert
    Perform a SQL update while with the associated SQL statement, arguments, and types. This will possib
  • isAutoCommitSupported
    Return if auto-commit is supported.
  • queryForLong
    Perform a query whose result should be a single long-integer value.
  • rollback
    Roll back all changes since the savepoint was created. If savePoint is null then roll back all outst
  • queryForLong,
  • rollback,
  • delete,
  • isClosed,
  • queryForOne,
  • update,
  • releaseSavePoint

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Join (org.hibernate.mapping)
  • CodeWhisperer alternatives
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