org.qi4j.index.sql.support.skeletons
Class AbstractSQLIndexing

java.lang.Object
  extended by org.qi4j.index.sql.support.skeletons.AbstractSQLIndexing
All Implemented Interfaces:
Activatable, SQLIndexing
Direct Known Subclasses:
PostgreSQLIndexing

public class AbstractSQLIndexing
extends Object
implements SQLIndexing, Activatable


Field Summary
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 Summary
AbstractSQLIndexing()
           
 
Method Summary
 void activate()
          This is invoked on the service when the instance is being activated
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 createInsertStatement(String schemaName, String tableName, Integer amountOfColumns, 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)
           
 void indexEntities(Iterable<EntityState> changedStates)
          This method is called when states need to be indexed.
 void passivate()
          This is invoked on the service when the instance is being passivated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AMOUNT_OF_COLUMNS_IN_ENTITY_TABLE

public static final Integer AMOUNT_OF_COLUMNS_IN_ENTITY_TABLE

AMOUNT_OF_COLUMNS_IN_ALL_QNAMES_TABLE

public static final Integer AMOUNT_OF_COLUMNS_IN_ALL_QNAMES_TABLE

AMOUNT_OF_COLUMNS_IN_ASSO_TABLE

public static final Integer AMOUNT_OF_COLUMNS_IN_ASSO_TABLE

AMOUNT_OF_COLUMNS_IN_MANY_ASSO_TABLE

public static final Integer AMOUNT_OF_COLUMNS_IN_MANY_ASSO_TABLE
Constructor Detail

AbstractSQLIndexing

public AbstractSQLIndexing()
Method Detail

activate

public void activate()
              throws Exception
Description copied from interface: Activatable
This is invoked on the service when the instance is being activated

Specified by:
activate in interface Activatable
Throws:
Exception - if service could not be activated

passivate

public void passivate()
               throws Exception
Description copied from interface: Activatable
This is invoked on the service when the instance is being passivated

Specified by:
passivate in interface Activatable
Throws:
Exception - if the service could not be passivated

indexEntities

public void indexEntities(Iterable<EntityState> changedStates)
                   throws SQLException
Description copied from interface: SQLIndexing
This method is called when states need to be indexed.

Specified by:
indexEntities in interface SQLIndexing
Parameters:
changedStates - The states which changed.
Throws:
SQLException - If SQL.

createInsertStatement

protected org.sql.generation.api.grammar.modification.InsertStatement createInsertStatement(String schemaName,
                                                                                            String tableName,
                                                                                            Integer amountOfColumns,
                                                                                            org.sql.generation.api.vendor.SQLVendor vendor)

createUpdateEntityTableStatement

protected org.sql.generation.api.grammar.modification.UpdateStatement createUpdateEntityTableStatement(String schemaName,
                                                                                                       org.sql.generation.api.vendor.SQLVendor vendor)

createQueryEntityPkByIdentityStatement

protected org.sql.generation.api.grammar.query.QueryExpression createQueryEntityPkByIdentityStatement(String schemaName,
                                                                                                      org.sql.generation.api.vendor.SQLVendor vendor)

createDeleteFromEntityTableStatement

protected org.sql.generation.api.grammar.modification.DeleteStatement createDeleteFromEntityTableStatement(String schemaName,
                                                                                                           org.sql.generation.api.vendor.SQLVendor vendor)

createClearEntityDataStatement

protected org.sql.generation.api.grammar.modification.DeleteStatement createClearEntityDataStatement(String schemaName,
                                                                                                     org.sql.generation.api.vendor.SQLVendor vendor)

createDeleteFromTableStatement

protected org.sql.generation.api.grammar.modification.DeleteStatement createDeleteFromTableStatement(String schemaName,
                                                                                                     String tableName,
                                                                                                     String columnName,
                                                                                                     org.sql.generation.api.vendor.SQLVendor vendor)

createPropertyInsert

protected org.sql.generation.api.grammar.modification.InsertStatement createPropertyInsert(QNameInfo qNameInfo,
                                                                                           org.sql.generation.api.vendor.SQLVendor vendor)

createAssoInsert

protected org.sql.generation.api.grammar.modification.InsertStatement createAssoInsert(QNameInfo qNameInfo,
                                                                                       org.sql.generation.api.vendor.SQLVendor vendor,
                                                                                       Integer amountOfParams)