Class SQLiteTable
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.localdb.Table
- 
- com.inductiveautomation.ignition.gateway.localdb.sqlite.SQLiteTable
 
 
- 
 public class SQLiteTable extends Table Created by colby.clegg on 11/12/2015.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.gateway.localdb.TableTable.Column, Table.ForeignKey, Table.PrimaryKey
 
- 
 - 
Constructor SummaryConstructors Constructor Description SQLiteTable()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAlterFrom(Table existing)Returns true if all of the modifications required can be handled through altering.java.lang.StringcolQC()protected java.util.List<java.lang.String>findSequences(java.lang.String tableName, java.sql.Connection connection)protected java.lang.StringgetColumnTypeSql(SFieldScalar field)protected java.lang.StringsqlDefinition_CreateSequence(java.lang.String sequence, java.lang.String table)Returns the full "CREATE SEQUENCE seqName"protected java.lang.StringsqlDefinition_DropIndex(java.lang.String indexName)protected booleansupportsConstraintModification()protected booleansupportsDropColumn()protected java.lang.StringvalueToQueryLiteral(java.lang.Object value, java.lang.String columnType)protected java.lang.StringvalueToQueryLiteral(java.lang.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.TablebuildFor, 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
 
- 
 
- 
- 
- 
Method Detail- 
supportsConstraintModificationprotected boolean supportsConstraintModification() - Overrides:
- supportsConstraintModificationin class- Table
 
 - 
findSequencesprotected java.util.List<java.lang.String> findSequences(java.lang.String tableName, java.sql.Connection connection) throws java.sql.SQLException- Specified by:
- findSequencesin class- Table
- Throws:
- java.sql.SQLException
 
 - 
sqlDefinition_CreateSequenceprotected java.lang.String sqlDefinition_CreateSequence(java.lang.String sequence, java.lang.String table)Description copied from class:TableReturns the full "CREATE SEQUENCE seqName"- Overrides:
- sqlDefinition_CreateSequencein class- Table
 
 - 
sqlDefinition_DropIndexprotected java.lang.String sqlDefinition_DropIndex(java.lang.String indexName) - Overrides:
- sqlDefinition_DropIndexin class- Table
 
 - 
getColumnTypeSqlprotected java.lang.String getColumnTypeSql(SFieldScalar field) - Overrides:
- getColumnTypeSqlin class- Table
 
 - 
supportsDropColumnprotected boolean supportsDropColumn() - Overrides:
- supportsDropColumnin class- Table
 
 - 
valueToQueryLiteralprotected java.lang.String valueToQueryLiteral(java.lang.Object value, SFieldScalar field)Description copied from class:TableIn 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:
- valueToQueryLiteralin class- Table
 
 - 
valueToQueryLiteralprotected java.lang.String valueToQueryLiteral(java.lang.Object value, java.lang.String columnType)- Overrides:
- valueToQueryLiteralin class- Table
 
 - 
canAlterFrompublic boolean canAlterFrom(Table existing) Description copied from class:TableReturns true if all of the modifications required can be handled through altering. If not, a new version of the table will be made.- Overrides:
- canAlterFromin class- Table
 
 
- 
 
-