Class BatchEntry
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.batch.BatchEntry
-
public class BatchEntry extends Object
Represents a batch entry that contains the data of the entry and the table name.- Since:
- 2.0.0
- Author:
- Rui Vilao (rui.vilao@feedzai.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityEntryentityEntrythe entity dataprotected StringtableNamethe table name
-
Constructor Summary
Constructors Constructor Description BatchEntry(String tableName, EntityEntry entityEntry)Creates a new instance ofBatchEntry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)EntityEntrygetEntityEntry()Gets the entity data.StringgetTableName()Gets the table name.inthashCode()voidsetEntityEntry(EntityEntry entityEntry)Sets new the entity data.voidsetTableName(String tableName)Sets new the table name.StringtoString()
-
-
-
Field Detail
-
tableName
protected String tableName
the table name
-
entityEntry
protected EntityEntry entityEntry
the entity data
-
-
Constructor Detail
-
BatchEntry
public BatchEntry(String tableName, EntityEntry entityEntry)
Creates a new instance ofBatchEntry.- Parameters:
tableName- The table name.entityEntry- The entity entry.
-
-
Method Detail
-
setTableName
public void setTableName(String tableName)
Sets new the table name.- Parameters:
tableName- New value of the table name.
-
setEntityEntry
public void setEntityEntry(EntityEntry entityEntry)
Sets new the entity data.- Parameters:
entityEntry- New value of the entity data.
-
getEntityEntry
public EntityEntry getEntityEntry()
Gets the entity data.- Returns:
- Value of the entity data.
-
getTableName
public String getTableName()
Gets the table name.- Returns:
- Value of the table name.
-
-