public class SqliteBase extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
COMMA
Comma field constant.
|
protected static String |
DEFINITION_SUFIX
Definition constant.
|
protected static String |
DESCRIPTION
Description field constant.
|
protected static String |
GAP_THRESHOLD
Gap threshold field constant.
|
protected static String |
NAME
Name field constant.
|
protected static String |
TYPE
Type field constant.
|
protected static String |
UNIT
Unit field constant.
|
protected static String |
USER_VISIBLE
Show the column to the user.
|
Constructor and Description |
---|
SqliteBase(File newFile)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the SQL connection.
|
protected void |
executeStatement(String sql)
Execute the SQL statement.
|
protected PreparedStatement |
getPreparedStatement(String sql)
Get the prepared statement from the SQL value.
|
protected Statement |
getStatement()
Get the statement from the SQL value.
|
void |
open()
Open the SQL connection.
|
protected static final String DEFINITION_SUFIX
protected static final String TYPE
protected static final String DESCRIPTION
protected static final String GAP_THRESHOLD
protected static final String USER_VISIBLE
protected static final String UNIT
protected static final String NAME
protected static final String COMMA
public SqliteBase(File newFile)
newFile
- to usepublic void open() throws SqliteException
SqliteException
- in case of errorpublic void close()
protected void executeStatement(String sql) throws SqliteException
sql
- to executeSqliteException
- in case of errorprotected PreparedStatement getPreparedStatement(String sql) throws SqliteException
sql
- valueSqliteException
- in case of errorprotected Statement getStatement() throws SqliteException
SqliteException
- in case of errorCopyright © 2024. All rights reserved.