public class Sequences extends Object
Constructor and Description |
---|
Sequences() |
Modifier and Type | Method and Description |
---|---|
protected String |
convertToSchemaTableName(String tableName) |
protected org.ofbiz.core.entity.GenericDelegator |
getDelegator() |
void |
update(Connection connection,
String sequenceName,
String tableName)
Update the sequence value for the next id to use for this table.
|
public void update(Connection connection, String sequenceName, String tableName) throws SQLException
connection
- The database connection to use to update the sequence.sequenceName
- The name of the sequence to update.tableName
- The name of the table that uses the value of the sequence for its primary key. The column which
stores the PK is assumed to be named "id"SQLException
- SQL exceptionprotected org.ofbiz.core.entity.GenericDelegator getDelegator()
Copyright © 2002-2017 Atlassian. All Rights Reserved.