congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SqlJetDb.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.tmatesoft.sqljet.core.table.SqlJetDb
constructor

Best Java code snippets using org.tmatesoft.sqljet.core.table.SqlJetDb.<init> (Showing top 3 results out of 315)

origin: org.tmatesoft.sqljet/sqljet

/**
 * @param file
 * @param write
 * @param fs
 * @return SqlJetDb object for opened database
 * @throws SqlJetException
 */
public static SqlJetDb open(File file, boolean write, final ISqlJetFileSystem fs) throws SqlJetException {
  final SqlJetDb db = new SqlJetDb(file, write, fs);
  db.open();
  return db;
}
origin: org.tmatesoft.sqljet/sqljet

/**
 * @param file
 * @param write
 * @param fsName
 * @return SqlJetDb object for opened database
 * @throws SqlJetException
 */
public static SqlJetDb open(File file, boolean write, final String fsName) throws SqlJetException {
  final SqlJetDb db = new SqlJetDb(file, write, fsName);
  db.open();
  return db;
}
origin: org.tmatesoft.sqljet/sqljet

/**
 * <p>
 * Opens connection to data base. It does not create any locking on
 * database. First lock will be created when be called any method which
 * requires real access to options or schema.
 * <p>
 * 
 * <p>
 * File could be null or have special value {@link #IN_MEMORY}. If file is
 * null then will be created temporary file which will be deleted at close.
 * If file is {@link #IN_MEMORY} then file doesn't created and instead
 * database will placed in memory. If regular file is specified but doesn't
 * exist then it will be tried to created.
 * </p>
 * 
 * @param file
 *            path to data base. Could be null or {@link #IN_MEMORY}.
 * @param write
 *            open for writing if true.
 * @throws SqlJetException
 *             if any trouble with access to file or database format.
 */
public static SqlJetDb open(File file, boolean write) throws SqlJetException {
  final SqlJetDb db = new SqlJetDb(file, write);
  db.open();
  return db;
}
org.tmatesoft.sqljet.core.tableSqlJetDb<init>

Javadoc

Creates connection to database but not open it. Doesn't open database file until not called method #open().

File could be null or have special value #IN_MEMORY. If file is null then will be created temporary file which will be deleted at close. If file is #IN_MEMORY then file doesn't created and instead database will placed in memory. If regular file is specified but doesn't exist then it will be tried to created.

Popular methods of SqlJetDb

  • getTable
    Open table.
  • open
  • close
  • getOptions
  • createIndex
    Create index from SQL clause.
  • createTable
    Create table from SQL clause.
  • runWithLock
    Do some actions with locking database's internal threads synchronization mutex. It is related only w
  • runWriteTransaction
    Run modifications in write transaction.
  • beginTransaction
  • commit
  • getSchema
    Get database schema.
  • runReadTransaction
    Run read-only transaction.
  • getSchema,
  • runReadTransaction,
  • dropIndex,
  • dropTable,
  • getTemporaryDatabase,
  • isInTransaction,
  • isOpen,
  • rollback,
  • alterTable

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ImageIO (javax.imageio)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JButton (javax.swing)
  • Github Copilot 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