Class PostgresqlSequenceCreationTool
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.tools.AbstractSequenceCreationTool
-
- de.akquinet.jbosscc.guttenbase.tools.postgresql.PostgresqlSequenceCreationTool
-
public class PostgresqlSequenceCreationTool extends AbstractSequenceCreationTool
Create an autoincrement ID sequence for tables.© 2012-2020 akquinet tech@spree
- Author:
- M. Dahm
-
-
Field Summary
-
Fields inherited from class de.akquinet.jbosscc.guttenbase.tools.AbstractSequenceCreationTool
_connectorRepository, _scriptExecutor
-
-
Constructor Summary
Constructors Constructor Description PostgresqlSequenceCreationTool(ConnectorRepository connectorRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getCreateSequenceClauses(String tableName, String idColumn, String sequenceName, long start, long incrementBy)
protected String
getIdColumn(TableMetaData tableMetaData)
String
getSequenceName(String tableName)
-
Methods inherited from class de.akquinet.jbosscc.guttenbase.tools.AbstractSequenceCreationTool
createSequences
-
-
-
-
Constructor Detail
-
PostgresqlSequenceCreationTool
public PostgresqlSequenceCreationTool(ConnectorRepository connectorRepository)
-
-
Method Detail
-
getIdColumn
protected String getIdColumn(TableMetaData tableMetaData)
- Specified by:
getIdColumn
in classAbstractSequenceCreationTool
-
getCreateSequenceClauses
public List<String> getCreateSequenceClauses(String tableName, String idColumn, String sequenceName, long start, long incrementBy)
- Specified by:
getCreateSequenceClauses
in classAbstractSequenceCreationTool
-
getSequenceName
public String getSequenceName(String tableName)
- Specified by:
getSequenceName
in classAbstractSequenceCreationTool
-
-