Added missing functions (TODO)

Added missing functions without functionalities which need to be
implemented:
persist(Person)
persist(Contract)
isApartment(EstateID)
This commit is contained in:
Togepy95 2017-04-20 16:53:46 +02:00
parent 799d2ab0fe
commit d2d02b859e
1 changed files with 24 additions and 0 deletions

View File

@ -589,6 +589,30 @@ public class ORM {
}
}
/**
* Persists the given person.
*
* @param person the person that should be persisted
*/
public void persist(Person person)
{
//TODO
}
/**
* Persists the given contract.
*
* @param contract the contract that should be persisted
*/
public void persist(Contract contract)
{
//TODO
}
/**
* Checks is the Estate is an Apartment or House
* @param estateID ID from the estate that should be checked
* @return true if apartment, false if house
*/
public boolean isApartment(int estateID){
//TODO check in the DB if the Estate with the ID is an Apartment then return true. If it is a house return false.
return true;