public abstract class AbstractSQLIndexing extends Object implements SQLIndexing
| Modifier and Type | Field and Description | 
|---|---|
static Integer | 
AMOUNT_OF_COLUMNS_IN_ALL_QNAMES_TABLE  | 
static Integer | 
AMOUNT_OF_COLUMNS_IN_ASSO_TABLE  | 
static Integer | 
AMOUNT_OF_COLUMNS_IN_ENTITY_TABLE  | 
static Integer | 
AMOUNT_OF_COLUMNS_IN_MANY_ASSO_TABLE  | 
| Constructor and Description | 
|---|
AbstractSQLIndexing()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addEntityInfoToInsertToEntityTablePS(EntityState state,
                                    PreparedStatement ps,
                                    int startingIndex)  | 
protected org.sql.generation.api.grammar.modification.InsertStatement | 
createAssoInsert(QNameInfo qNameInfo,
                org.sql.generation.api.vendor.SQLVendor vendor,
                Integer amountOfParams)  | 
protected org.sql.generation.api.grammar.modification.DeleteStatement | 
createClearEntityDataStatement(String schemaName,
                              org.sql.generation.api.vendor.SQLVendor vendor)  | 
protected org.sql.generation.api.grammar.modification.DeleteStatement | 
createDeleteFromEntityTableStatement(String schemaName,
                                    org.sql.generation.api.vendor.SQLVendor vendor)  | 
protected org.sql.generation.api.grammar.modification.DeleteStatement | 
createDeleteFromTableStatement(String schemaName,
                              String tableName,
                              String columnName,
                              org.sql.generation.api.vendor.SQLVendor vendor)  | 
protected org.sql.generation.api.grammar.modification.InsertStatement | 
createInsertEntityTypeStatement(String schemaName,
                               org.sql.generation.api.vendor.SQLVendor vendor)  | 
protected org.sql.generation.api.grammar.modification.InsertStatement | 
createInsertStatement(String schemaName,
                     String tableName,
                     Integer amountOfColumns,
                     org.sql.generation.api.vendor.SQLVendor vendor)  | 
protected abstract org.sql.generation.api.grammar.modification.InsertStatement | 
createInsertStatementWithAutoGeneratedIDForEntitiesTable(String schemaName,
                                                        String tableName,
                                                        org.sql.generation.api.vendor.SQLVendor vendor)  | 
protected org.sql.generation.api.grammar.modification.InsertStatement | 
createPropertyInsert(QNameInfo qNameInfo,
                    org.sql.generation.api.vendor.SQLVendor vendor)  | 
protected org.sql.generation.api.grammar.query.QueryExpression | 
createQueryEntityPkByIdentityStatement(String schemaName,
                                      org.sql.generation.api.vendor.SQLVendor vendor)  | 
protected org.sql.generation.api.grammar.modification.UpdateStatement | 
createUpdateEntityTableStatement(String schemaName,
                                org.sql.generation.api.vendor.SQLVendor vendor)  | 
protected Long | 
findEntityPK(EntityState state,
            org.qi4j.index.sql.support.skeletons.SQLSkeletonUtil.Lazy<PreparedStatement,SQLException> queryPKPS)  | 
protected abstract long | 
getPKFromAutoGeneratedIDInsert(EntityState state,
                              PreparedStatement autoGeneratedIDStatement,
                              org.sql.generation.api.vendor.SQLVendor vendor,
                              Connection connection)  | 
void | 
indexEntities(Iterable<EntityState> changedStates)
This method is called when states need to be indexed. 
 | 
public static final Integer AMOUNT_OF_COLUMNS_IN_ENTITY_TABLE
public static final Integer AMOUNT_OF_COLUMNS_IN_ALL_QNAMES_TABLE
public static final Integer AMOUNT_OF_COLUMNS_IN_ASSO_TABLE
public static final Integer AMOUNT_OF_COLUMNS_IN_MANY_ASSO_TABLE
public void indexEntities(Iterable<EntityState> changedStates) throws SQLException
SQLIndexingindexEntities in interface SQLIndexingchangedStates - The states which changed.SQLException - If SQL.protected org.sql.generation.api.grammar.modification.InsertStatement createInsertStatement(String schemaName, String tableName, Integer amountOfColumns, org.sql.generation.api.vendor.SQLVendor vendor)
protected abstract org.sql.generation.api.grammar.modification.InsertStatement createInsertStatementWithAutoGeneratedIDForEntitiesTable(String schemaName, String tableName, org.sql.generation.api.vendor.SQLVendor vendor)
protected void addEntityInfoToInsertToEntityTablePS(EntityState state, PreparedStatement ps, int startingIndex) throws SQLException
SQLExceptionprotected Long findEntityPK(EntityState state, org.qi4j.index.sql.support.skeletons.SQLSkeletonUtil.Lazy<PreparedStatement,SQLException> queryPKPS) throws SQLException
SQLExceptionprotected abstract long getPKFromAutoGeneratedIDInsert(EntityState state, PreparedStatement autoGeneratedIDStatement, org.sql.generation.api.vendor.SQLVendor vendor, Connection connection) throws SQLException
SQLExceptionprotected org.sql.generation.api.grammar.modification.UpdateStatement createUpdateEntityTableStatement(String schemaName, org.sql.generation.api.vendor.SQLVendor vendor)
protected org.sql.generation.api.grammar.query.QueryExpression createQueryEntityPkByIdentityStatement(String schemaName, org.sql.generation.api.vendor.SQLVendor vendor)
protected org.sql.generation.api.grammar.modification.DeleteStatement createDeleteFromEntityTableStatement(String schemaName, org.sql.generation.api.vendor.SQLVendor vendor)
protected org.sql.generation.api.grammar.modification.DeleteStatement createClearEntityDataStatement(String schemaName, org.sql.generation.api.vendor.SQLVendor vendor)
protected org.sql.generation.api.grammar.modification.DeleteStatement createDeleteFromTableStatement(String schemaName, String tableName, String columnName, org.sql.generation.api.vendor.SQLVendor vendor)
protected org.sql.generation.api.grammar.modification.InsertStatement createPropertyInsert(QNameInfo qNameInfo, org.sql.generation.api.vendor.SQLVendor vendor)
protected org.sql.generation.api.grammar.modification.InsertStatement createAssoInsert(QNameInfo qNameInfo, org.sql.generation.api.vendor.SQLVendor vendor, Integer amountOfParams)
protected org.sql.generation.api.grammar.modification.InsertStatement createInsertEntityTypeStatement(String schemaName, org.sql.generation.api.vendor.SQLVendor vendor)