Class PostgresqlSequenceUpdateTool
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.tools.AbstractSequenceUpdateTool
-
- de.akquinet.jbosscc.guttenbase.tools.postgresql.PostgresqlSequenceUpdateTool
-
public class PostgresqlSequenceUpdateTool extends AbstractSequenceUpdateTool
Usually Postgresql creates an autoincrement ID sequence for tables. After data migration these sequences need to be updated...By default the sequence is updated to SELECT(MAX(ID) + 1) FROM table
© 2012-2020 akquinet tech@spree
- Author:
- M. Dahm
-
-
Field Summary
-
Fields inherited from class de.akquinet.jbosscc.guttenbase.tools.AbstractSequenceUpdateTool
_connectorRepository, _minMaxIdSelector, _scriptExecutor
-
-
Constructor Summary
Constructors Constructor Description PostgresqlSequenceUpdateTool(ConnectorRepository connectorRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSequenceName(String tableName)
String
getUpdateSequenceClause(String sequenceName, long sequenceValue)
-
Methods inherited from class de.akquinet.jbosscc.guttenbase.tools.AbstractSequenceUpdateTool
updateSequences
-
-
-
-
Constructor Detail
-
PostgresqlSequenceUpdateTool
public PostgresqlSequenceUpdateTool(ConnectorRepository connectorRepository)
-
-
Method Detail
-
getSequenceName
public String getSequenceName(String tableName)
- Specified by:
getSequenceName
in classAbstractSequenceUpdateTool
-
getUpdateSequenceClause
public String getUpdateSequenceClause(String sequenceName, long sequenceValue)
- Specified by:
getUpdateSequenceClause
in classAbstractSequenceUpdateTool
-
-