Class SQLiteDataOperator<T extends BaseDataEntity<String>>
java.lang.Object
com.ultikits.ultitools.interfaces.impl.data.AbstractRelationalDataOperator<T>
com.ultikits.ultitools.interfaces.impl.data.sqlite.SQLiteDataOperator<T>
- Type Parameters:
T- the entity type
- All Implemented Interfaces:
DataOperator<T>
public class SQLiteDataOperator<T extends BaseDataEntity<String>>
extends AbstractRelationalDataOperator<T>
SQLite implementation of the data operator.
Extends the abstract relational operator, providing SQLite-specific table creation without engine specification.
- Since:
- 6.0.0
- Author:
- wisdomme
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ultikits.ultitools.interfaces.DataOperator
DataOperator.LikeType -
Field Summary
Fields inherited from class com.ultikits.ultitools.interfaces.impl.data.AbstractRelationalDataOperator
dataSource, queryRunner, tableName, transactionManager, type -
Constructor Summary
ConstructorsConstructorDescriptionSQLiteDataOperator(DataSource dataSource, Class<T> type) Creates a new SQLite data operator. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateTableSqlFromClazz(Class<T> type) Creates the SQL statement to create the table.Methods inherited from class com.ultikits.ultitools.interfaces.impl.data.AbstractRelationalDataOperator
buildColumnDefinitions, del, delById, exist, exist, getAll, getAll, getById, getLike, getListHandler, insert, insertAll, page, setTransactionManager, transaction, transaction, update, update, updateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ultikits.ultitools.interfaces.DataOperator
query
-
Constructor Details
-
SQLiteDataOperator
Creates a new SQLite data operator.- Parameters:
dataSource- the SQLite data sourcetype- the entity class
-
-
Method Details
-
createTableSqlFromClazz
Description copied from class:AbstractRelationalDataOperatorCreates the SQL statement to create the table.Override this method to customize table creation for different databases.
- Specified by:
createTableSqlFromClazzin classAbstractRelationalDataOperator<T extends BaseDataEntity<String>>- Parameters:
type- the entity class- Returns:
- the CREATE TABLE SQL statement
-