Seitenhistorie
...
Bei der Anbindung des SEPA-Nuclets sind die folgende Fassadenklassen für Debitoren, Referenzen und Zahlungsreferenzen anzupassen (die Klassen befinden sich alle im Java-Package org.nuclet.sepa.facade):
| Fassaden-Klasse | Anmerkung | Funktion | Anwendungsfall | Java-Package | DebitorFacade|||
|---|---|---|---|---|---|---|---|
| CreditorFacade | neu ab v2.0.0 |
| Debitorenklasse
| org.nuclet.sepa.facade | Überweisungen | ||
| CreditorReferenceFacade | neu ab v2.0.0 |
| |||||
| CreditTransferReferenceFacade | neu ab v2.0.0 |
| |||||
| DebitorFacade | neu ab v2.0.0 |
| Lastschriften | ||||
| DebitorReferenceFacade | neu ab v2.0.0 |
| |||||
| DirectDebitReferenceFacade | neu ab v2.0.0 |
| |||||
| obsolet, wird ab v2.0.0 ersetzt durch DebitorReferenceFacade |
| ReferenceFacade | Definition der tatsächlichen Klasse für
| org.nuclet.sepa.facade | |||
| obsolet, wird ab v2.0.0 ersetzt durch DirectDebitReferenceFacadePaymentReferenceFacade |
| org.nuclet.sepa.facade |
Tabelle 4.8.2: Übersicht, Anpassungen in Fassaden-Klassen
...
| Codeblock | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
package org.nuclet.sepa.facade;
import java.util.ArrayList;
import java.util.List;
import org.nuclos.api.businessobject.BusinessObject;
import org.nuclos.api.businessobject.facade.Modifiable;
import org.nuclos.api.businessobject.attribute.ForeignKeyAttribute;
import org.nuclos.api.exception.BusinessException;
import org.nuclet.sepa.wrapper.AbstractPaymentReferenceWrapper;
import org.nuclet.sepa.wrapper.PaymentReferenceWrapper;
// @replace! Bitte bei Nuclet-Integration mit eigenem Code ersetzen!
//
// Beispiel:
//
// import org.nuclet.businesstemplate.ClientBillingPosition;
/**
* Facade for Business Objects of type "PaymentReference"
*
* @version 1.0
* @date 21.03.2014
* @nuclet org.nuclet.SEPA
* @nucletversion 1.0.0
* @sincenucletversion 1.0.0
* @since 21.03.2014
*
* @author frank.lehmann@nuclos.de
*
*/
public class PaymentReferenceFacade<T extends BusinessObject & Modifiable> extends AbstractPaymentReferenceFacade<T> // @replace! AbstractPaymentReferenceFacade<ClientBillingPosition>
{
private static final PaymentReferenceFacade instance = new PaymentReferenceFacade();
/**
* Liefert die Singleton-Instanz dieser Klasse
*
*/
public static PaymentReferenceFacade getInstance()
{
return instance;
}
/**
* Wrap the actual payment reference objects inside an <code>AbstractPaymentReferenceWrapper</code>
*
* @return the actual payment reference objects, wrapped inside an <code>AbstractPaymentReferenceWrapper</code>
*
*/
public AbstractPaymentReferenceWrapper getPaymentReferenceWrapper(final Modifiable boPaymentReference)
{
return new PaymentReferenceWrapper(boPaymentReference);
}
/**
* Get the class of the actual payment reference objects, i.e. the class wrapped by <code>PaymentReferenceWrapper</code>
*
* @return the class of the actual payment reference objects, i.e. the class wrapped by <code>PaymentReferenceWrapper</code>
*
*/
public Class<T> getWrappedClass() // @replace! public Class<ClientBillingPosition> getWrappedClass()
{
// @replace!
//
// return ClientBillingPosition.class;
return null;
}
/**
* Get the attribue, that identifies the SEPA payment information
*
* @return the attribue, that identifies the SEPA payment information
*
*/
protected ForeignKeyAttribute<Long> getSEPAPaymentInformationAttribute()
{
// @replace!
//
// return ClientBillingPosition.SEPAPaymentInformation;
return null;
}
} |
- Definition der tatsächlichen Debitorenklasse
- Wrapper-Methoden
Überblick
Inhalte