org.jumpmind.symmetric.db
Class AbstractDbDialect

java.lang.Object
  extended by org.jumpmind.symmetric.db.AbstractDbDialect
All Implemented Interfaces:
IDbDialect
Direct Known Subclasses:
Db2DbDialect, DerbyDbDialect, FirebirdDbDialect, HsqlDbDialect, MsSqlDbDialect, MySqlDbDialect, OracleDbDialect, PostgreSqlDbDialect

public abstract class AbstractDbDialect
extends java.lang.Object
implements IDbDialect


Field Summary
protected  org.apache.ddlutils.model.Database cachedModel
           
protected  org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
           
static int MAX_SYMMETRIC_SUPPORTED_TRIGGER_SIZE
           
protected  org.apache.ddlutils.Platform platform
           
protected  org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator sqlErrorTranslator
           
protected  SqlTemplate sqlTemplate
           
protected  java.lang.String tablePrefix
           
protected  org.springframework.transaction.support.TransactionTemplate transactionTemplate
           
 
Constructor Summary
protected AbstractDbDialect()
           
 
Method Summary
protected  void addPrefixAndCreateTablesIfNecessary(org.apache.ddlutils.model.Database targetTables)
           
protected  boolean allowsNullForIdentityColumn()
           
 void cleanupAfterDataLoad(org.apache.ddlutils.model.Table table)
          This is called by the data loader each time the table context changes away from a table or when the the data loader is closed, giving the dialect an opportunity to do any post loading work for the given table.
 java.lang.String createCsvDataSql(Trigger trigger, java.lang.String whereClause)
           
 java.lang.String createCsvPrimaryKeySql(Trigger trigger, java.lang.String whereClause)
           
 java.lang.String createInitalLoadSqlFor(Node node, Trigger trigger)
           
 java.lang.String createPostTriggerDDL(DataEventType dml, Trigger config, TriggerHistory hist, java.lang.String tablePrefix, org.apache.ddlutils.model.Table table)
           
 java.lang.String createPurgeSqlFor(Node node, Trigger trigger, TriggerHistory hist)
           
protected  void createRequiredFunctions()
           
 java.lang.Object createSavepoint()
           
 java.lang.Object createSavepointForFallback()
           
 void createTables(java.lang.String xml)
           
protected  void determineAutoIncrementFromResultSetMetaData(org.apache.ddlutils.model.Table table, org.apache.ddlutils.model.Column[] columnsToCheck)
           
 void disableSyncTriggers()
           
 boolean doesDatabaseNeedConfigured()
          Check to see if the database is configured for symmetric already, or if it needs configured.
 boolean doesTriggerExist(java.lang.String catalogName, java.lang.String schema, java.lang.String tableName, java.lang.String triggerName)
           
protected abstract  boolean doesTriggerExistOnPlatform(java.lang.String catalogName, java.lang.String schema, java.lang.String tableName, java.lang.String triggerName)
           
 org.apache.ddlutils.model.Table findTable(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tblName)
           
protected  void fixForeignKeys(org.apache.ddlutils.model.Table table, java.lang.String tablePrefix, boolean clone)
           
 BinaryEncoding getBinaryEncoding()
           
protected  org.apache.ddlutils.model.Database getConfigDdlDatabase()
           
protected  java.net.URL getConfigDdlXml()
           
 java.lang.String getCreateSymmetricDDL()
           
 java.lang.String getCreateTableSQL(Trigger trig)
           
 java.lang.String getCreateTableXML(Trigger trig)
           
 IColumnFilter getDatabaseColumnFilter()
           
 java.lang.String getEngineName()
          Get the name of this symmetric instance.
 java.lang.String getIdentifierQuoteString()
           
 org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
           
 int getMajorVersion()
           
 int getMaxTriggerNameLength()
          Provide a default implementation of this method using DDLUtils, getMaxColumnNameLength()
 org.apache.ddlutils.model.Table getMetaDataFor(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, boolean useCache)
          This method uses the ddlutil's model reader which uses the jdbc metadata to lookup up table metadata.
 org.apache.ddlutils.model.Table getMetaDataFor(Trigger trigger, boolean useCache)
           
 int getMinorVersion()
           
 java.lang.String getName()
           
 org.apache.ddlutils.Platform getPlatform()
           
 java.lang.String getProductVersion()
           
 java.lang.String getSelectLastInsertIdSql(java.lang.String sequenceName)
           
protected  java.lang.String getSequenceName(SequenceIdentifier identifier)
           
 org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator getSqlErrorTranslator()
           
 int getStreamingResultsFetchSize()
           
 java.lang.String getTablePrefix()
          Get the string prepended to the Symmetric configuration tables.
 java.lang.String getTransactionTriggerExpression(Trigger trigger)
           
 java.lang.String getTriggerName(DataEventType dml, java.lang.String triggerPrefix, int maxTriggerNameLength, Trigger trigger, TriggerHistory history)
           
 java.lang.String getVersion()
           
 void init(org.apache.ddlutils.Platform pf)
           
protected  java.util.List<org.apache.ddlutils.platform.MetaDataColumnDescriptor> initColumnsForColumn()
           
protected  java.util.List initColumnsForIndex()
           
protected  java.util.List<org.apache.ddlutils.platform.MetaDataColumnDescriptor> initColumnsForPK()
           
protected  java.util.List<org.apache.ddlutils.platform.MetaDataColumnDescriptor> initColumnsForTable()
           
 void initConfigDb()
           
protected abstract  void initForSpecificDialect()
           
 void initTrigger(DataEventType dml, Trigger trigger, TriggerHistory hist, java.lang.String tablePrefix, org.apache.ddlutils.model.Table table)
          Create the configured trigger.
 long insertWithGeneratedKey(java.lang.String sql, SequenceIdentifier sequenceId)
           
 long insertWithGeneratedKey(java.lang.String sql, SequenceIdentifier sequenceId, org.springframework.jdbc.core.PreparedStatementCallback callback)
           
 boolean isBlobOverrideToBinary()
           
 boolean isBlobSyncSupported()
           
 boolean isClobSyncSupported()
           
 boolean isDateOverrideToTimestamp()
           
 boolean isTransactionIdOverrideSupported()
          An indicator as to whether the ability to override the default transaction id provided by the dialect can be overridden in the trigger configuration.
protected  void makeAllColumnsPrimaryKeysIfNoPrimaryKeysFound(org.apache.ddlutils.model.Table table)
          Treat tables with no primary keys as a table with all primary keys.
protected  boolean prefixConfigDatabase(org.apache.ddlutils.model.Database targetTables)
           
 void prepareTableForDataLoad(org.apache.ddlutils.model.Table table)
          This is called by the data loader each time the table context changes, giving the dialect an opportunity to do any pre loading work.
protected  org.apache.ddlutils.model.Column readColumn(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData, java.util.Map values)
           
protected  java.util.Collection<org.apache.ddlutils.model.Column> readColumns(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData, java.lang.String tableName)
           
protected  java.util.Map<java.lang.String,java.lang.Object> readColumns(java.sql.ResultSet resultSet, java.util.List columnDescriptors)
           
protected  void readIndex(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData, java.util.Map values, java.util.Map knownIndices)
           
protected  java.util.Collection readIndices(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData, java.lang.String tableName)
           
protected  java.lang.String readPrimaryKeyName(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData, java.util.Map values)
           
protected  java.util.Collection<java.lang.String> readPrimaryKeyNames(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData, java.lang.String tableName)
           
protected  org.apache.ddlutils.model.Table readTable(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData, java.util.Map values)
           
 void releaseSavepoint(java.lang.Object savepoint)
           
 java.lang.String replaceTemplateVariables(DataEventType dml, Trigger trigger, TriggerHistory history, java.lang.String targetString)
          Give access to the templating mechanism that is used for trigger creation.
 boolean requiresSavepointForFallback()
           
 void rollbackToSavepoint(java.lang.Object savepoint)
           
 void setParameterService(IParameterService parameterService)
           
 void setSqlTemplate(SqlTemplate sqlTemplate)
           
 void setStreamingResultsFetchSize(int streamingResultsFetchSize)
           
 void setTablePrefix(java.lang.String tablePrefix)
           
 void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
           
 boolean storesLowerCaseNamesInCatalog()
           
 boolean storesUpperCaseNamesInCatalog()
           
 boolean supportsGetGeneratedKeys()
           
 boolean supportsTransactionId()
           
protected  java.lang.String switchCatalogForTriggerInstall(java.lang.String catalog, java.sql.Connection c)
          Provide the option switch a connection's schema for trigger installation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jumpmind.symmetric.db.IDbDialect
disableSyncTriggers, enableSyncTriggers, getDefaultCatalog, getDefaultSchema, getSyncTriggersExpression, isCharSpacePadded, isCharSpaceTrimmed, isEmptyStringNulled, purge, removeTrigger
 

Field Detail

MAX_SYMMETRIC_SUPPORTED_TRIGGER_SIZE

public static final int MAX_SYMMETRIC_SUPPORTED_TRIGGER_SIZE
See Also:
Constant Field Values

jdbcTemplate

protected org.springframework.jdbc.core.JdbcTemplate jdbcTemplate

platform

protected org.apache.ddlutils.Platform platform

cachedModel

protected org.apache.ddlutils.model.Database cachedModel

sqlTemplate

protected SqlTemplate sqlTemplate

sqlErrorTranslator

protected org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator sqlErrorTranslator

tablePrefix

protected java.lang.String tablePrefix

transactionTemplate

protected org.springframework.transaction.support.TransactionTemplate transactionTemplate
Constructor Detail

AbstractDbDialect

protected AbstractDbDialect()
Method Detail

getDatabaseColumnFilter

public IColumnFilter getDatabaseColumnFilter()
Specified by:
getDatabaseColumnFilter in interface IDbDialect

prepareTableForDataLoad

public void prepareTableForDataLoad(org.apache.ddlutils.model.Table table)
Description copied from interface: IDbDialect
This is called by the data loader each time the table context changes, giving the dialect an opportunity to do any pre loading work. Only one table is active at any one point.

Specified by:
prepareTableForDataLoad in interface IDbDialect

cleanupAfterDataLoad

public void cleanupAfterDataLoad(org.apache.ddlutils.model.Table table)
Description copied from interface: IDbDialect
This is called by the data loader each time the table context changes away from a table or when the the data loader is closed, giving the dialect an opportunity to do any post loading work for the given table.

Specified by:
cleanupAfterDataLoad in interface IDbDialect

allowsNullForIdentityColumn

protected boolean allowsNullForIdentityColumn()

getMaxTriggerNameLength

public int getMaxTriggerNameLength()
Provide a default implementation of this method using DDLUtils, getMaxColumnNameLength()

Specified by:
getMaxTriggerNameLength in interface IDbDialect

init

public void init(org.apache.ddlutils.Platform pf)

initForSpecificDialect

protected abstract void initForSpecificDialect()

initConfigDb

public void initConfigDb()
Specified by:
initConfigDb in interface IDbDialect

doesTriggerExist

public final boolean doesTriggerExist(java.lang.String catalogName,
                                      java.lang.String schema,
                                      java.lang.String tableName,
                                      java.lang.String triggerName)
Specified by:
doesTriggerExist in interface IDbDialect

createRequiredFunctions

protected void createRequiredFunctions()

getBinaryEncoding

public BinaryEncoding getBinaryEncoding()
Specified by:
getBinaryEncoding in interface IDbDialect

isBlobOverrideToBinary

public boolean isBlobOverrideToBinary()
Specified by:
isBlobOverrideToBinary in interface IDbDialect

isDateOverrideToTimestamp

public boolean isDateOverrideToTimestamp()
Specified by:
isDateOverrideToTimestamp in interface IDbDialect

doesTriggerExistOnPlatform

protected abstract boolean doesTriggerExistOnPlatform(java.lang.String catalogName,
                                                      java.lang.String schema,
                                                      java.lang.String tableName,
                                                      java.lang.String triggerName)

getTransactionTriggerExpression

public java.lang.String getTransactionTriggerExpression(Trigger trigger)
Specified by:
getTransactionTriggerExpression in interface IDbDialect

createInitalLoadSqlFor

public java.lang.String createInitalLoadSqlFor(Node node,
                                               Trigger trigger)
Specified by:
createInitalLoadSqlFor in interface IDbDialect

createPurgeSqlFor

public java.lang.String createPurgeSqlFor(Node node,
                                          Trigger trigger,
                                          TriggerHistory hist)
Specified by:
createPurgeSqlFor in interface IDbDialect

createCsvDataSql

public java.lang.String createCsvDataSql(Trigger trigger,
                                         java.lang.String whereClause)
Specified by:
createCsvDataSql in interface IDbDialect

createCsvPrimaryKeySql

public java.lang.String createCsvPrimaryKeySql(Trigger trigger,
                                               java.lang.String whereClause)
Specified by:
createCsvPrimaryKeySql in interface IDbDialect

getMetaDataFor

public org.apache.ddlutils.model.Table getMetaDataFor(Trigger trigger,
                                                      boolean useCache)
Specified by:
getMetaDataFor in interface IDbDialect

getMetaDataFor

public org.apache.ddlutils.model.Table getMetaDataFor(java.lang.String catalogName,
                                                      java.lang.String schemaName,
                                                      java.lang.String tableName,
                                                      boolean useCache)
This method uses the ddlutil's model reader which uses the jdbc metadata to lookup up table metadata.

Dialect may optionally override this method to more efficiently lookup up table metadata directly against information schemas.

Specified by:
getMetaDataFor in interface IDbDialect

findTable

public org.apache.ddlutils.model.Table findTable(java.lang.String catalogName,
                                                 java.lang.String schemaName,
                                                 java.lang.String tblName)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

makeAllColumnsPrimaryKeysIfNoPrimaryKeysFound

protected void makeAllColumnsPrimaryKeysIfNoPrimaryKeysFound(org.apache.ddlutils.model.Table table)
Treat tables with no primary keys as a table with all primary keys.


readTable

protected org.apache.ddlutils.model.Table readTable(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData,
                                                    java.util.Map values)
                                             throws java.sql.SQLException
Throws:
java.sql.SQLException

initColumnsForTable

protected java.util.List<org.apache.ddlutils.platform.MetaDataColumnDescriptor> initColumnsForTable()

initColumnsForColumn

protected java.util.List<org.apache.ddlutils.platform.MetaDataColumnDescriptor> initColumnsForColumn()

initColumnsForPK

protected java.util.List<org.apache.ddlutils.platform.MetaDataColumnDescriptor> initColumnsForPK()

readColumns

protected java.util.Collection<org.apache.ddlutils.model.Column> readColumns(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData,
                                                                             java.lang.String tableName)
                                                                      throws java.sql.SQLException
Throws:
java.sql.SQLException

readColumn

protected org.apache.ddlutils.model.Column readColumn(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData,
                                                      java.util.Map values)
                                               throws java.sql.SQLException
Throws:
java.sql.SQLException

determineAutoIncrementFromResultSetMetaData

protected void determineAutoIncrementFromResultSetMetaData(org.apache.ddlutils.model.Table table,
                                                           org.apache.ddlutils.model.Column[] columnsToCheck)
                                                    throws java.sql.SQLException
Throws:
java.sql.SQLException

readColumns

protected java.util.Map<java.lang.String,java.lang.Object> readColumns(java.sql.ResultSet resultSet,
                                                                       java.util.List columnDescriptors)
                                                                throws java.sql.SQLException
Throws:
java.sql.SQLException

readPrimaryKeyNames

protected java.util.Collection<java.lang.String> readPrimaryKeyNames(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData,
                                                                     java.lang.String tableName)
                                                              throws java.sql.SQLException
Throws:
java.sql.SQLException

readPrimaryKeyName

protected java.lang.String readPrimaryKeyName(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData,
                                              java.util.Map values)
                                       throws java.sql.SQLException
Throws:
java.sql.SQLException

initColumnsForIndex

protected java.util.List initColumnsForIndex()

readIndices

protected java.util.Collection readIndices(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData,
                                           java.lang.String tableName)
                                    throws java.sql.SQLException
Throws:
java.sql.SQLException

readIndex

protected void readIndex(org.apache.ddlutils.platform.DatabaseMetaDataWrapper metaData,
                         java.util.Map values,
                         java.util.Map knownIndices)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

initTrigger

public void initTrigger(DataEventType dml,
                        Trigger trigger,
                        TriggerHistory hist,
                        java.lang.String tablePrefix,
                        org.apache.ddlutils.model.Table table)
Create the configured trigger. The catalog will be changed to the source schema if the source schema is configured.

Specified by:
initTrigger in interface IDbDialect

switchCatalogForTriggerInstall

protected java.lang.String switchCatalogForTriggerInstall(java.lang.String catalog,
                                                          java.sql.Connection c)
                                                   throws java.sql.SQLException
Provide the option switch a connection's schema for trigger installation.

Throws:
java.sql.SQLException

createPostTriggerDDL

public java.lang.String createPostTriggerDDL(DataEventType dml,
                                             Trigger config,
                                             TriggerHistory hist,
                                             java.lang.String tablePrefix,
                                             org.apache.ddlutils.model.Table table)

getCreateSymmetricDDL

public java.lang.String getCreateSymmetricDDL()
Specified by:
getCreateSymmetricDDL in interface IDbDialect

getCreateTableSQL

public java.lang.String getCreateTableSQL(Trigger trig)
Specified by:
getCreateTableSQL in interface IDbDialect

getCreateTableXML

public java.lang.String getCreateTableXML(Trigger trig)
Specified by:
getCreateTableXML in interface IDbDialect

createTables

public void createTables(java.lang.String xml)
Specified by:
createTables in interface IDbDialect

doesDatabaseNeedConfigured

public boolean doesDatabaseNeedConfigured()
Description copied from interface: IDbDialect
Check to see if the database is configured for symmetric already, or if it needs configured.

Specified by:
doesDatabaseNeedConfigured in interface IDbDialect
Returns:
true if configuration tables need to be created.

prefixConfigDatabase

protected boolean prefixConfigDatabase(org.apache.ddlutils.model.Database targetTables)

addPrefixAndCreateTablesIfNecessary

protected void addPrefixAndCreateTablesIfNecessary(org.apache.ddlutils.model.Database targetTables)

getConfigDdlDatabase

protected org.apache.ddlutils.model.Database getConfigDdlDatabase()

getConfigDdlXml

protected java.net.URL getConfigDdlXml()

fixForeignKeys

protected void fixForeignKeys(org.apache.ddlutils.model.Table table,
                              java.lang.String tablePrefix,
                              boolean clone)
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

getPlatform

public org.apache.ddlutils.Platform getPlatform()
Specified by:
getPlatform in interface IDbDialect

getName

public java.lang.String getName()
Specified by:
getName in interface IDbDialect

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface IDbDialect

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface IDbDialect

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface IDbDialect

getProductVersion

public java.lang.String getProductVersion()
Specified by:
getProductVersion in interface IDbDialect

replaceTemplateVariables

public java.lang.String replaceTemplateVariables(DataEventType dml,
                                                 Trigger trigger,
                                                 TriggerHistory history,
                                                 java.lang.String targetString)
Description copied from interface: IDbDialect
Give access to the templating mechanism that is used for trigger creation.

Specified by:
replaceTemplateVariables in interface IDbDialect

supportsGetGeneratedKeys

public boolean supportsGetGeneratedKeys()

getSelectLastInsertIdSql

public java.lang.String getSelectLastInsertIdSql(java.lang.String sequenceName)
Specified by:
getSelectLastInsertIdSql in interface IDbDialect

insertWithGeneratedKey

public long insertWithGeneratedKey(java.lang.String sql,
                                   SequenceIdentifier sequenceId)
Specified by:
insertWithGeneratedKey in interface IDbDialect

getSequenceName

protected java.lang.String getSequenceName(SequenceIdentifier identifier)

insertWithGeneratedKey

public long insertWithGeneratedKey(java.lang.String sql,
                                   SequenceIdentifier sequenceId,
                                   org.springframework.jdbc.core.PreparedStatementCallback callback)
Specified by:
insertWithGeneratedKey in interface IDbDialect

createSavepoint

public java.lang.Object createSavepoint()
Specified by:
createSavepoint in interface IDbDialect

createSavepointForFallback

public java.lang.Object createSavepointForFallback()
Specified by:
createSavepointForFallback in interface IDbDialect

rollbackToSavepoint

public void rollbackToSavepoint(java.lang.Object savepoint)
Specified by:
rollbackToSavepoint in interface IDbDialect

releaseSavepoint

public void releaseSavepoint(java.lang.Object savepoint)
Specified by:
releaseSavepoint in interface IDbDialect

requiresSavepointForFallback

public boolean requiresSavepointForFallback()
Specified by:
requiresSavepointForFallback in interface IDbDialect

disableSyncTriggers

public void disableSyncTriggers()
Specified by:
disableSyncTriggers in interface IDbDialect

supportsTransactionId

public boolean supportsTransactionId()
Specified by:
supportsTransactionId in interface IDbDialect

isBlobSyncSupported

public boolean isBlobSyncSupported()
Specified by:
isBlobSyncSupported in interface IDbDialect

isClobSyncSupported

public boolean isClobSyncSupported()
Specified by:
isClobSyncSupported in interface IDbDialect

isTransactionIdOverrideSupported

public boolean isTransactionIdOverrideSupported()
Description copied from interface: IDbDialect
An indicator as to whether the ability to override the default transaction id provided by the dialect can be overridden in the trigger configuration.

Specified by:
isTransactionIdOverrideSupported in interface IDbDialect

storesUpperCaseNamesInCatalog

public boolean storesUpperCaseNamesInCatalog()
Specified by:
storesUpperCaseNamesInCatalog in interface IDbDialect

storesLowerCaseNamesInCatalog

public boolean storesLowerCaseNamesInCatalog()
Specified by:
storesLowerCaseNamesInCatalog in interface IDbDialect

setSqlTemplate

public void setSqlTemplate(SqlTemplate sqlTemplate)

getSqlErrorTranslator

public org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator getSqlErrorTranslator()
Specified by:
getSqlErrorTranslator in interface IDbDialect

setTablePrefix

public void setTablePrefix(java.lang.String tablePrefix)

getStreamingResultsFetchSize

public int getStreamingResultsFetchSize()
Specified by:
getStreamingResultsFetchSize in interface IDbDialect

setStreamingResultsFetchSize

public void setStreamingResultsFetchSize(int streamingResultsFetchSize)

getJdbcTemplate

public org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
Specified by:
getJdbcTemplate in interface IDbDialect

setTransactionTemplate

public void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)

getEngineName

public java.lang.String getEngineName()
Description copied from interface: IDbDialect
Get the name of this symmetric instance. This can be set in symmetric.properties using the symmetric.runtime.engine.name property.

Specified by:
getEngineName in interface IDbDialect

getTablePrefix

public java.lang.String getTablePrefix()
Description copied from interface: IDbDialect
Get the string prepended to the Symmetric configuration tables.

Specified by:
getTablePrefix in interface IDbDialect
Returns:

setParameterService

public void setParameterService(IParameterService parameterService)

getIdentifierQuoteString

public java.lang.String getIdentifierQuoteString()
Specified by:
getIdentifierQuoteString in interface IDbDialect

getTriggerName

public java.lang.String getTriggerName(DataEventType dml,
                                       java.lang.String triggerPrefix,
                                       int maxTriggerNameLength,
                                       Trigger trigger,
                                       TriggerHistory history)
Specified by:
getTriggerName in interface IDbDialect


Copyright © 2007-2008. All Rights Reserved.