public static class MiscOperations.TradeAlertRetainedEvent extends RetainedEvent implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CASHAMOUNT_COL_INDEX
Column position (zero-based) for the playername
|
static int |
COL_LENGTH
Number of columns used to define this retained event
|
static int |
NONROSTER_COL_INDEX
Column position (zero-based) for the playername
|
static int |
PLAYER_COL_INDEX
Column position (zero-based) for the player name
|
static int |
PLAYERID_COL_INDEX
Column position (zero-based) for the player id
|
static int |
TRADEDATE_COL_INDEX
Column position (zero-based) for the playername
|
m_Values
Constructor and Description |
---|
TradeAlertRetainedEvent()
Construct an empty TradeAlertRetainedEvent.
|
TradeAlertRetainedEvent(String player,
int playerId,
Date tradeDate,
boolean nonRoster,
long cashAmount)
Construct a TradeAlertRetainedEvent
|
Modifier and Type | Method and Description |
---|---|
RetainedEvent[] |
constructArray(int size)
Construct an array of the specified size.
|
RetainedEvent |
constructInstance()
Construct a new unpopulated instance, of the correct type.
|
long |
getCashAmount()
Get amount of cash associated with the trade (negative indicates
cash spent)
|
int |
getPlayerId()
Get the player ID
|
String |
getPlayerName()
Get the player name
|
protected RetainedEventDescriptor[] |
getRetainedEventDescriptors()
Get name/type descriptors that define the payload for this
retained event.
|
String |
getSequenceName()
Get sequence name used by this specific type of retained event.
|
String |
getTableName()
Get table name used to store the specific type of retained event.
|
Date |
getTradeDate()
Get the trade date
|
boolean |
isNonRoster()
Get indication as to whether the trade was a non-roster trade
|
void |
process(LibrarySession session)
Process this retained event.
|
createDatabaseObjects, delete, dropDatabaseObjects, getCreateSequenceStatementSql, getCreateTableStatementSql, getDeleteStatementKey, getDeleteStatementSql, getDropSequenceStatementSql, getDropTableStatementSql, getId, getInsertStatementKey, getInsertStatementSql, getSelectStatementKey, getSelectStatementSql, getValues, insert, processAll, select, setValues, toString
public static final int COL_LENGTH
public static final int PLAYER_COL_INDEX
public static final int PLAYERID_COL_INDEX
public static final int TRADEDATE_COL_INDEX
public static final int NONROSTER_COL_INDEX
public static final int CASHAMOUNT_COL_INDEX
public TradeAlertRetainedEvent()
This variant is used when an instance is needed to select other instances of TradeAlertRetainedEvent from the database.
public TradeAlertRetainedEvent(String player, int playerId, Date tradeDate, boolean nonRoster, long cashAmount) throws IfsException
player
- the name of the player that was tradedplayerId
- the ID of the player that was tradedtradeDate
- the date the trade ocurrednonRoster
- was this a non-roster trade?cashAmount
- cash spent or received (negative number indicates
cash spent)IfsException
public final String getTableName()
getTableName
in class RetainedEvent
public String getSequenceName()
getSequenceName
in class RetainedEvent
protected RetainedEventDescriptor[] getRetainedEventDescriptors()
getRetainedEventDescriptors
in class RetainedEvent
public RetainedEvent constructInstance()
constructInstance
in class RetainedEvent
public RetainedEvent[] constructArray(int size)
constructArray
in class RetainedEvent
size
- the array sizepublic String getPlayerName() throws IfsException
IfsException
public int getPlayerId() throws IfsException
IfsException
public Date getTradeDate() throws IfsException
IfsException
public boolean isNonRoster() throws IfsException
IfsException
public long getCashAmount() throws IfsException
IfsException
public void process(LibrarySession session) throws IfsException
process
in class RetainedEvent
session
- session contextIfsException
- if the operation failsCopyright © 2023. All rights reserved.