Package edu.pdx.cs410J.di
Class CreditCardDatabase
java.lang.Object
edu.pdx.cs410J.di.JaxbDatabase
edu.pdx.cs410J.di.CreditCardDatabase
Stores
CreditCard
s in an XML file-
Constructor Summary
ConstructorDescriptionCreditCardDatabase
(File directory) CreditCardDatabase
(File directory, String fileName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
debit
(CreditCard card, double amount) com.google.common.collect.ImmutableMap<CreditCard,
Double> (package private) void
setBalance
(CreditCard card, double balance) Methods inherited from class edu.pdx.cs410J.di.JaxbDatabase
getDatabaseFile, readFile, writeXml
-
Constructor Details
-
CreditCardDatabase
@Inject public CreditCardDatabase(@DataDirectory File directory) throws jakarta.xml.bind.JAXBException, IOException - Throws:
jakarta.xml.bind.JAXBException
IOException
-
CreditCardDatabase
CreditCardDatabase(File directory, String fileName) throws IOException, jakarta.xml.bind.JAXBException - Throws:
IOException
jakarta.xml.bind.JAXBException
-
-
Method Details
-
setBalance
-
debit
-
getBalances
-