public abstract class Entity extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Entity.Loader<E extends Entity> |
static class |
Entity.Writer<E extends Entity>
Write this entity to a CSV file.
|
| Modifier and Type | Field and Description |
|---|---|
static double |
DOUBLE_MISSING |
int |
id
Represents the csv line for feeds that have been loaded from a zip file.
|
static int |
INT_MISSING |
| Constructor and Description |
|---|
Entity() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
This method should be overridden by each Entity subtype to return the proper key field for that subtype.
|
Integer |
getSequenceNumber()
This method should be overridden by each Entity subtype to return the proper sequence field for that subtype.
|
static String |
human(long n) |
static void |
setDoubleParameter(PreparedStatement statement,
int oneBasedIndex,
double value) |
static void |
setIntParameter(PreparedStatement statement,
int oneBasedIndex,
int value) |
abstract void |
setStatementParameters(PreparedStatement statement,
boolean setDefaultId)
This method should be overridden by each Entity subtybe to handle setting parameters for a prepared statement
created from the entity table constants defined in
Table. |
public static final int INT_MISSING
public static final double DOUBLE_MISSING
public int id
public String getId()
public Integer getSequenceNumber()
public abstract void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException
Table.SQLExceptionpublic static void setIntParameter(PreparedStatement statement, int oneBasedIndex, int value) throws SQLException
SQLExceptionpublic static void setDoubleParameter(PreparedStatement statement, int oneBasedIndex, double value) throws SQLException
SQLExceptionpublic static final String human(long n)
Copyright © 2019. All rights reserved.