

setLoginTimeout public void setLoginTimeout(int seconds).Throws SQLException Specified by: setLogWriter in interface CommonDataSource Throws: SQLException See Also: tLogWriter(java.io.PrintWriter) setLogWriter public void setLogWriter( PrintWriter out) Unlike most other SQL implementations, SQLite does not have a separate BOOLEAN data type.Throws SQLFeatureNotSupportedException Specified by: getParentLogger in interface CommonDataSource Throws: SQLFeatureNotSupportedException coerceautoincrementtoserial BOOL Get or set a boolean value that indicates whether or not auto-increment columns will be considered to have the column. getParentLogger public Logger getParentLogger().Throws SQLException Specified by: getLoginTimeout in interface CommonDataSource Throws: SQLException See Also: CommonDataSource.getLoginTimeout() getLoginTimeout public int getLoginTimeout().Throws SQLException Specified by: getLogWriter in interface CommonDataSource Throws: SQLException See Also: CommonDataSource.getLogWriter() getLogWriter public PrintWriter getLogWriter() In SQLite Boolean data types instead of Boolean values we use integer values that are 0 and 1, where 0 for false and 1 for true.Throws SQLException Specified by: getConnection in interface DataSource Throws: SQLException See Also: DataSource.getConnection(, ) On backends without a native boolean type, this is emulated with the smallest supported.


Instead, Boolean values are stored as integers 0 (false) and 1 (true). However, you could use a CASE expression to explicitly map the strings true and false to 1 and 0 respectively: SELECT active, CASE WHEN LOWER (active) 'true' THEN 1 ELSE 0 END AS activebool FROM samples. Throws SQLException Specified by: getConnection in interface DataSource Throws: SQLException See Also: DataSource.getConnection() SQLite does not have a separate Boolean storage class. The closest thing would probably just be using an integer column and storing 0 for false and 1 for true. getConnection public Connection getConnection().Integer stored in the database header at offset 60.
