Class Position
java.lang.Object
com.bluebell.greenhouse.platform.models.core.entities.AbstractAuditableEntity
com.bluebell.greenhouse.platform.models.core.entities.position.Position
- All Implemented Interfaces:
GenericEntity
Class representation of a position a trader can have in the markets.
- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEnsures a position number exists before insert.booleanDefines an object's equivalence with this entity.static longGenerates the next position number.inthashCode()Computes the hash code.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GenericEntity
getCreatedAt, getId, getModifiedAt, isCreatedAtInferred
-
Constructor Details
-
Position
public Position()
-
-
Method Details
-
generatePositionNumber
public static long generatePositionNumber()Generates the next position number.- Returns:
- position number
-
ensurePositionNumber
public void ensurePositionNumber()Ensures a position number exists before insert. -
equals
-
hashCode
-