|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.objects.DcObject
net.datacrow.core.objects.Loan
public class Loan
Represents a loan.
Field Summary | |
---|---|
static int |
_A_STARTDATE
|
static int |
_B_ENDDATE
|
static int |
_C_CONTACTPERSONID
|
static int |
_D_OBJECTID
|
static int |
_E_DUEDATE
|
Fields inherited from class net.datacrow.core.objects.DcObject |
---|
_ID, _SYS_AVAILABLE, _SYS_CONTAINER, _SYS_CREATED, _SYS_DISPLAYVALUE, _SYS_EXTERNAL_REFERENCES, _SYS_FILEHASH, _SYS_FILEHASHTYPE, _SYS_FILENAME, _SYS_FILESIZE, _SYS_LENDBY, _SYS_LOANDAYSTILLOVERDUE, _SYS_LOANDUEDATE, _SYS_LOANDURATION, _SYS_MODIFIED, _SYS_MODULE, _SYS_SERVICE, _SYS_SERVICEURL, _VALUE, children |
Constructor Summary | |
---|---|
Loan()
Creates a new instance. |
Method Summary | |
---|---|
java.lang.Long |
getDaysLoaned()
The duration of the loan. |
java.lang.Long |
getDaysTillOverdue()
Indicates the days till the loan is overdue. |
java.util.Date |
getDueDate()
|
DcObject |
getPerson()
Retrieves information on the person who lend the item. |
void |
initializeReferences()
Loads the actual reference information. |
boolean |
isAvailable(java.lang.String ID)
Indicates if the given item is available. |
boolean |
isOverdue()
Calculates the due date against the current date to determine if the loan is overdue. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int _A_STARTDATE
public static final int _B_ENDDATE
public static final int _C_CONTACTPERSONID
public static final int _D_OBJECTID
public static final int _E_DUEDATE
Constructor Detail |
---|
public Loan()
Method Detail |
---|
public void initializeReferences()
DcObject
initializeReferences
in class DcObject
public boolean isAvailable(java.lang.String ID)
ID
- public DcObject getPerson()
public java.util.Date getDueDate()
public java.lang.Long getDaysTillOverdue()
public boolean isOverdue()
public java.lang.Long getDaysLoaned()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |