org.zeroexchange.model.mcredit
Class CreditLine

java.lang.Object
  extended by org.zeroexchange.model.Persistent
      extended by org.zeroexchange.model.IntegerPKPersistent
          extended by org.zeroexchange.model.mcredit.CreditLine
All Implemented Interfaces:
Serializable, Cloneable, Identifiable<Integer>

@Entity
public class CreditLine
extends IntegerPKPersistent
implements Cloneable

User's credit line.

Author:
black
See Also:
Serialized Form

Field Summary
static String FIELD_CREDITOR
           
static String FIELD_DEBTOR
           
 
Fields inherited from interface org.zeroexchange.model.Identifiable
FIELD_ID
 
Constructor Summary
CreditLine()
           
 
Method Summary
 Object clone()
          
 User getCreditor()
           
 BigDecimal getCurrentCredit()
           
 User getDebtor()
           
 BigDecimal getMaxCreditValue()
           
 Integer getVersion()
           
 void setCreditor(User creditor)
           
 void setCurrentCredit(BigDecimal currentCredit)
           
 void setDebtor(User debtor)
           
 void setMaxCreditValue(BigDecimal maxCreditValue)
           
 void setVersion(Integer version)
           
 
Methods inherited from class org.zeroexchange.model.IntegerPKPersistent
equals, getId, hashCode, setId
 
Methods inherited from class org.zeroexchange.model.Persistent
getTransientValues
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_CREDITOR

public static final String FIELD_CREDITOR
See Also:
Constant Field Values

FIELD_DEBTOR

public static final String FIELD_DEBTOR
See Also:
Constant Field Values
Constructor Detail

CreditLine

public CreditLine()
Method Detail

getVersion

public Integer getVersion()

setVersion

public void setVersion(Integer version)

getCreditor

public User getCreditor()

setCreditor

public void setCreditor(User creditor)

getDebtor

public User getDebtor()

setDebtor

public void setDebtor(User debtor)

getMaxCreditValue

public BigDecimal getMaxCreditValue()

setMaxCreditValue

public void setMaxCreditValue(BigDecimal maxCreditValue)

getCurrentCredit

public BigDecimal getCurrentCredit()

setCurrentCredit

public void setCurrentCredit(BigDecimal currentCredit)

clone

public Object clone()
             throws CloneNotSupportedException

Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2013. All Rights Reserved.