public class MappedEntity extends Object
| Constructor and Description |
|---|
MappedEntity()
Creates a new instance of
MappedEntity. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAutoIncColumn() |
DbEntity |
getEntity() |
PreparedStatement |
getInsert() |
PreparedStatement |
getInsertReturning() |
PreparedStatement |
getInsertWithAutoInc() |
MappedEntity |
setAutoIncColumn(String autoIncColumn) |
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.
|
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, com.feedzai.commons.sql.abstraction.entry.EntityEntry, boolean)public MappedEntity setInsertWithAutoInc(PreparedStatement insertWithAutoInc)
insertWithAutoInc - The insert statement with auto inc columns.DatabaseEngine.persist(String, com.feedzai.commons.sql.abstraction.entry.EntityEntry, boolean)public String getAutoIncColumn()
public MappedEntity setAutoIncColumn(String autoIncColumn)
Copyright © 2013. All Rights Reserved.