| Package | Description |
|---|---|
| org.seasar.doma.jdbc.entity |
Provides the classes that are related to entities.
|
| org.seasar.doma.jdbc.id |
Provides classes that are related to identity generation of entity.
|
| org.seasar.doma.jdbc.query |
Provides query objects that build SQL statements.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
GeneratedIdPropertyType.isAutoGeneratedKeysSupported(IdGenerationConfig config) |
boolean |
GeneratedIdPropertyType.isBatchSupported(IdGenerationConfig config) |
boolean |
GeneratedIdPropertyType.isIncluded(IdGenerationConfig config) |
ENTITY |
GeneratedIdPropertyType.postInsert(EntityType<ENTITY> entityType,
ENTITY entity,
IdGenerationConfig config,
java.sql.Statement statement) |
ENTITY |
GeneratedIdPropertyType.preInsert(EntityType<ENTITY> entityType,
ENTITY entity,
IdGenerationConfig config) |
void |
GeneratedIdPropertyType.validateGenerationStrategy(IdGenerationConfig config) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
AbstractPreGenerateIdGenerator.generatePostInsert(IdGenerationConfig config,
java.sql.Statement statement) |
java.lang.Long |
IdGenerator.generatePostInsert(IdGenerationConfig config,
java.sql.Statement statement)
Generates the identity value after an insert.
|
java.lang.Long |
BuiltinIdentityIdGenerator.generatePostInsert(IdGenerationConfig config,
java.sql.Statement statement) |
java.lang.Long |
AbstractPreGenerateIdGenerator.generatePreInsert(IdGenerationConfig config) |
java.lang.Long |
IdGenerator.generatePreInsert(IdGenerationConfig config)
Generates the identity value before an insert.
|
java.lang.Long |
BuiltinIdentityIdGenerator.generatePreInsert(IdGenerationConfig config) |
protected long |
BuiltinIdentityIdGenerator.getGeneratedValue(IdGenerationConfig config)
Retrieves the generated value by using a specific SQL.
|
protected long |
AbstractIdGenerator.getGeneratedValue(IdGenerationConfig config,
java.sql.ResultSet resultSet)
Retrieves a generated identity from the
ResultSet object. |
protected long |
AbstractIdGenerator.getGeneratedValue(IdGenerationConfig config,
Sql<?> sql)
Executes the SQL and gets a generated identity.
|
protected long |
BuiltinIdentityIdGenerator.getGeneratedValue(IdGenerationConfig config,
java.sql.Statement statement)
Retrieves the generated value by using
Statement.getGeneratedKeys(). |
protected AbstractPreGenerateIdGenerator.IdContext |
AbstractPreGenerateIdGenerator.getIdContext(IdGenerationConfig config)
Returns the identity context.
|
protected long |
BuiltinTableIdGenerator.getNewInitialValue(IdGenerationConfig config) |
protected abstract long |
AbstractPreGenerateIdGenerator.getNewInitialValue(IdGenerationConfig config)
Return the next initial value.
|
protected long |
BuiltinSequenceIdGenerator.getNewInitialValue(IdGenerationConfig config) |
long |
AbstractPreGenerateIdGenerator.IdContext.getNextValue(IdGenerationConfig config)
Returns the next identity value.
|
boolean |
AbstractPreGenerateIdGenerator.includesIdentityColumn(IdGenerationConfig config) |
boolean |
IdGenerator.includesIdentityColumn(IdGenerationConfig config)
Whether this generator includes the identity column into SQL INSERT statements.
|
boolean |
BuiltinIdentityIdGenerator.includesIdentityColumn(IdGenerationConfig config) |
protected long |
BuiltinTableIdGenerator.selectId(IdGenerationConfig config,
PreparedSql sql) |
protected void |
AbstractIdGenerator.setupOptions(IdGenerationConfig config,
java.sql.PreparedStatement preparedStatement)
Set up options for the
preparedStatement object. |
boolean |
AbstractPreGenerateIdGenerator.supportsAutoGeneratedKeys(IdGenerationConfig config) |
boolean |
IdGenerator.supportsAutoGeneratedKeys(IdGenerationConfig config)
Whether this generator supports
Statement.getGeneratedKeys(). |
boolean |
BuiltinIdentityIdGenerator.supportsAutoGeneratedKeys(IdGenerationConfig config) |
boolean |
AbstractPreGenerateIdGenerator.supportsBatch(IdGenerationConfig config) |
boolean |
IdGenerator.supportsBatch(IdGenerationConfig config)
Whether this generator supports the batch insert.
|
boolean |
BuiltinIdentityIdGenerator.supportsBatch(IdGenerationConfig config) |
protected void |
BuiltinTableIdGenerator.updateId(IdGenerationConfig config,
PreparedSql sql) |
| Modifier and Type | Field and Description |
|---|---|
protected IdGenerationConfig |
AutoInsertQuery.idGenerationConfig |
protected IdGenerationConfig |
AutoBatchInsertQuery.idGenerationConfig |