Class SQLiteTable
java.lang.Object
com.inductiveautomation.ignition.gateway.localdb.Table
com.inductiveautomation.ignition.gateway.localdb.sqlite.SQLiteTable
Created by colby.clegg on 11/12/2015.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.gateway.localdb.Table
Table.Column, Table.ForeignKey, Table.PrimaryKey
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canAlterFrom
(Table existing) Returns true if all of the modifications required can be handled through altering.colQC()
findSequences
(String tableName, Connection connection) protected String
getColumnTypeSql
(SFieldScalar field) protected String
sqlDefinition_CreateSequence
(String sequence, String table) Returns the full "CREATE SEQUENCE seqName"protected String
sqlDefinition_DropIndex
(String indexName) protected boolean
protected boolean
protected String
valueToQueryLiteral
(Object value, String columnType) protected String
valueToQueryLiteral
(Object value, SFieldScalar field) In some cases, we put the value of the column directly into the query.Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.Table
buildFor, buildFor, buildFor, buildNew, findColumn, getColumnDdl, getColumns, getConstraintDdl, getForeignKeys, getIndexName, getPhase1AlterDdl, getPhase1Transfer, getPhase2AlterDdl, getPhase2Transfer, getPrimaryKey, getTableCreateDdl, getTableName, getTransferCommand, qc, sqlDefinition_CreateForeignKeys, sqlDefinition_CreateIndex, sqlDefinition_Table, tableExists
-
Constructor Details
-
SQLiteTable
public SQLiteTable()
-
-
Method Details
-
supportsConstraintModification
protected boolean supportsConstraintModification()- Overrides:
supportsConstraintModification
in classTable
-
colQC
-
findSequences
- Specified by:
findSequences
in classTable
- Throws:
SQLException
-
sqlDefinition_CreateSequence
Description copied from class:Table
Returns the full "CREATE SEQUENCE seqName"- Overrides:
sqlDefinition_CreateSequence
in classTable
-
sqlDefinition_DropIndex
- Overrides:
sqlDefinition_DropIndex
in classTable
-
getColumnTypeSql
- Overrides:
getColumnTypeSql
in classTable
-
supportsDropColumn
protected boolean supportsDropColumn()- Overrides:
supportsDropColumn
in classTable
-
valueToQueryLiteral
Description copied from class:Table
In some cases, we put the value of the column directly into the query. This allows us to override how it is represented in the query.- Overrides:
valueToQueryLiteral
in classTable
-
valueToQueryLiteral
- Overrides:
valueToQueryLiteral
in classTable
-
canAlterFrom
Description copied from class:Table
Returns true if all of the modifications required can be handled through altering. If not, a new version of the table will be made.- Overrides:
canAlterFrom
in classTable
-