Package com.plannaplan.entities
Class Exchange
java.lang.Object
com.plannaplan.entities.Exchange
@Entity
public class Exchange
extends java.lang.Object
Entity that keeps user exchange offer.
-
Constructor Summary
Constructors Constructor Description Exchange()
Exchange(Assignment ownedAssignment, Groups desiredAssignment)
-
Method Summary
Modifier and Type Method Description java.sql.Timestamp
getDataExchange()
Groups
getDesiredAssignment()
java.lang.Long
getId()
Assignment
getOwnedAssignment()
java.lang.Long
getOwnerId()
void
setDesiredAssignment(Groups desiredAssignment)
void
setOwnedAssignment(Assignment ownedAssignment)
void
setOwnerId(java.lang.Long ownerId)
-
Constructor Details
-
Method Details
-
getOwnerId
public java.lang.Long getOwnerId()- Returns:
- Long ID of exchange trader
-
setOwnerId
public void setOwnerId(java.lang.Long ownerId)- Parameters:
ownerId
- ID of exchange trader
-
getDataExchange
public java.sql.Timestamp getDataExchange() -
getId
public java.lang.Long getId()- Returns:
- Long ID in database
-
getDesiredAssignment
- Returns:
- Groups Target group
-
setDesiredAssignment
- Parameters:
desiredAssignment
- Target group
-
getOwnedAssignment
- Returns:
- Assignment Owned assignment
-
setOwnedAssignment
- Parameters:
ownedAssignment
- Owned assignment
-