org.qi4j.index.sql.support.postgresql
Class PostgreSQLAppStartup

java.lang.Object
  extended by org.qi4j.index.sql.support.skeletons.AbstractSQLStartup
      extended by org.qi4j.index.sql.support.postgresql.PostgreSQLAppStartup
All Implemented Interfaces:
Activatable, SQLAppStartup

public class PostgreSQLAppStartup
extends AbstractSQLStartup

TODO refactoring


Field Summary
 
Fields inherited from class org.qi4j.index.sql.support.skeletons.AbstractSQLStartup
DEFAULT_SCHEMA_NAME
 
Constructor Summary
PostgreSQLAppStartup()
           
 
Method Summary
 void activate()
          This is invoked on the service when the instance is being activated
protected  org.sql.generation.api.grammar.common.datatypes.SQLDataType getCollectionPathDataType()
           
protected  void modifyPrimitiveTypes(Map<Class<?>,org.sql.generation.api.grammar.common.datatypes.SQLDataType> primitiveTypes, Map<Class<?>,Integer> jdbcTypes)
           
protected  void setVendor(org.sql.generation.api.vendor.SQLVendor vendor)
           
protected  void testRequiredCapabilities()
           
 
Methods inherited from class org.qi4j.index.sql.support.skeletons.AbstractSQLStartup
checkSchemaName, dropTablesIfExist, getNextPK, initConnection, passivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgreSQLAppStartup

public PostgreSQLAppStartup()
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
Overrides:
activate in class AbstractSQLStartup
Throws:
Exception - if service could not be activated

testRequiredCapabilities

protected void testRequiredCapabilities()
                                 throws SQLException
Specified by:
testRequiredCapabilities in class AbstractSQLStartup
Throws:
SQLException

modifyPrimitiveTypes

protected void modifyPrimitiveTypes(Map<Class<?>,org.sql.generation.api.grammar.common.datatypes.SQLDataType> primitiveTypes,
                                    Map<Class<?>,Integer> jdbcTypes)
Specified by:
modifyPrimitiveTypes in class AbstractSQLStartup

getCollectionPathDataType

protected org.sql.generation.api.grammar.common.datatypes.SQLDataType getCollectionPathDataType()
Specified by:
getCollectionPathDataType in class AbstractSQLStartup

setVendor

protected void setVendor(org.sql.generation.api.vendor.SQLVendor vendor)
Specified by:
setVendor in class AbstractSQLStartup