Ether Framework
Unified API docs for Ether modules
Loading...
Searching...
No Matches
dev.rafex.ether.database.sqlite.client.SQLiteDatabaseClient Class Reference

SQLite-specific wrapper around JdbcDatabaseClient. More...

Inheritance diagram for dev.rafex.ether.database.sqlite.client.SQLiteDatabaseClient:
Collaboration diagram for dev.rafex.ether.database.sqlite.client.SQLiteDatabaseClient:

Classes

class  Builder
 Builder for SQLiteDatabaseClient.
interface  DatabaseOperation
 Functional interface for database operations. More...

Public Member Functions

long[] batch (final String sql, final List< StatementBinder > binders)
int execute (final SqlQuery query)
 Executes a SQL statement (INSERT, UPDATE, DELETE, or stored procedure call).
Optional< SQLiteConfiggetConfig ()
 Returns the SQLite configuration, if present.
 SQLiteDatabaseClient (final DataSource dataSource)
 Creates a new SQLiteDatabaseClient with the specified data source.
 SQLiteDatabaseClient (final DataSource dataSource, final SQLiteConfig config)
 Creates a new SQLiteDatabaseClient with the specified data source and configuration.

Static Public Member Functions

static Builder builder (final DataSource dataSource)
 Returns a builder for creating SQLiteDatabaseClient instances.

Detailed Description

SQLite-specific wrapper around JdbcDatabaseClient.

This class provides SQLite-specific configuration and error handling while delegating all database operations to JdbcDatabaseClient.

Definition at line 55 of file SQLiteDatabaseClient.java.

Constructor & Destructor Documentation

◆ SQLiteDatabaseClient() [1/2]

dev.rafex.ether.database.sqlite.client.SQLiteDatabaseClient.SQLiteDatabaseClient ( final DataSource dataSource)

Creates a new SQLiteDatabaseClient with the specified data source.

Parameters
dataSourcethe data source to use for database connections
Exceptions
NullPointerExceptionif dataSource is null

Definition at line 66 of file SQLiteDatabaseClient.java.

◆ SQLiteDatabaseClient() [2/2]

dev.rafex.ether.database.sqlite.client.SQLiteDatabaseClient.SQLiteDatabaseClient ( final DataSource dataSource,
final SQLiteConfig config )

Creates a new SQLiteDatabaseClient with the specified data source and configuration.

Parameters
dataSourcethe data source to use for database connections
configthe SQLite configuration to apply
Exceptions
NullPointerExceptionif dataSource or config is null

Definition at line 78 of file SQLiteDatabaseClient.java.

Member Function Documentation

◆ batch()

long[] dev.rafex.ether.database.sqlite.client.SQLiteDatabaseClient.batch ( final String sql,
final List< StatementBinder > binders )

◆ builder()

Builder dev.rafex.ether.database.sqlite.client.SQLiteDatabaseClient.builder ( final DataSource dataSource)
static

Returns a builder for creating SQLiteDatabaseClient instances.

Parameters
dataSourcethe data source to use
Returns
a builder instance

Definition at line 93 of file SQLiteDatabaseClient.java.

◆ execute()

int dev.rafex.ether.database.sqlite.client.SQLiteDatabaseClient.execute ( final SqlQuery query)

Executes a SQL statement (INSERT, UPDATE, DELETE, or stored procedure call).

Parameters
querythe SQL query to execute
Returns
the number of rows affected, or -1 if the statement returned a ResultSet

Implements dev.rafex.ether.database.core.DatabaseClient.

Definition at line 282 of file SQLiteDatabaseClient.java.

◆ getConfig()

Optional< SQLiteConfig > dev.rafex.ether.database.sqlite.client.SQLiteDatabaseClient.getConfig ( )

Returns the SQLite configuration, if present.

Returns
an optional containing the SQLite configuration, or empty if not configured

Definition at line 229 of file SQLiteDatabaseClient.java.


The documentation for this class was generated from the following file: