java.lang.Object | |||
↳ | com.mysema.query.sql.dml.AbstractSQLClause<C extends com.mysema.query.sql.dml.AbstractSQLClause<C>> | ||
↳ | com.mysema.query.sql.dml.SQLInsertClause | ||
↳ | com.atlassian.jira.database.IdGeneratingSQLInsertClause |
Extended SQLInsertClause supporting Generation of OfBiz sequence values.
[Expand]
Inherited Fields | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.mysema.query.sql.dml.AbstractSQLClause
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add an automatically generated "ID" column value to the insert statement and execute it.
| |||||||||||
Add an automatically generated "ID" column value to the insert statement.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.mysema.query.sql.dml.SQLInsertClause
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From class
com.mysema.query.sql.dml.AbstractSQLClause
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From class java.lang.Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From interface
com.mysema.query.dml.DMLClause
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From interface
com.mysema.query.dml.InsertClause
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From interface
com.mysema.query.dml.StoreClause
|
Add an automatically generated "ID" column value to the insert statement and execute it.
This method uses the Ofbiz sequence generator to generate an Id for the relation being inserted.
Example Usage:
final Long generatedId = dbConnectionManager.executeQuery(dbConnection -> dbConnection. .insert(QProject.PROJECT) .set(QProject.PROJECT.name, "some name") .executeWithId(); );
Add an automatically generated "ID" column value to the insert statement.
This method uses the Ofbiz sequence generator to generate an Id for the relation being inserted.
Users of this method should not manually add
an "ID" using another call such as set(Path, Object)
or populate(Object)
.