public class MappedEntity extends Object
| Constructor and Description |
|---|
MappedEntity()
Creates a new instance of
MappedEntity. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAutoIncColumn()
Gets the auto increment column.
|
DbEntity |
getEntity()
Gets the entity.
|
PreparedStatement |
getInsert()
Gets the prepared statement for inserts.
|
PreparedStatement |
getInsertReturning()
Gets the prepared statement for inserts that retrieve the generated keys using the
insert statement.
|
PreparedStatement |
getInsertWithAutoInc()
Gets the insert statement with auto increment columns.
|
boolean |
isSequenceDirty()
Checks if a sequence is dirty.
|
MappedEntity |
setAutoIncColumn(String autoIncColumn)
Sets the auto increment column.
|
MappedEntity |
setEntity(DbEntity entity)
Sets the entity.
|
MappedEntity |
setInsert(PreparedStatement insert)
Sets the insert statement.
|
MappedEntity |
setInsertReturning(PreparedStatement insertReturning)
Sets the insert statement that allows returning the generated keys.
|
MappedEntity |
setInsertWithAutoInc(PreparedStatement insertWithAutoInc)
Sets the insert statement auto inc columns.
|
void |
setSequenceDirty(boolean sequenceDirty)
Sets a sequence as dirty or not.
|
public MappedEntity()
MappedEntity.public MappedEntity setEntity(DbEntity entity)
entity - The entity.public MappedEntity setInsert(PreparedStatement insert)
insert - The insert statement.public DbEntity getEntity()
public PreparedStatement getInsert()
public PreparedStatement getInsertReturning()
public MappedEntity setInsertReturning(PreparedStatement insertReturning)
insertReturning - The insert statement that allows returning the generated keyspublic PreparedStatement getInsertWithAutoInc()
DatabaseEngine.persist(String, EntityEntry, boolean)public MappedEntity setInsertWithAutoInc(PreparedStatement insertWithAutoInc)
insertWithAutoInc - The insert statement with auto inc columns.DatabaseEngine.persist(String, EntityEntry, boolean)public String getAutoIncColumn()
public MappedEntity setAutoIncColumn(String autoIncColumn)
autoIncColumn - the auto increment column.public boolean isSequenceDirty()
true if the sequence is dirty, false otherwise.public void setSequenceDirty(boolean sequenceDirty)
sequenceDirty - The flag signaling the status of the sequence.Copyright © 2014 Feedzai. All Rights Reserved.