Seitenhistorie
...
Ein Beispiel dazu ist jeweils in einem Kommentarblock angegeben, dieses Beispiel ist an das tatsächlich genutzte Referenzbusinessobjekt (bzw. dessen BusinessObject-Klasse) anzupassen.
Hinweis |
---|
Bitte beachten Sie außerdem, dass das generische "<T>" in den Zeilen 33 und 65 entsprechend ersetzt werden muss. |
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.exception.BusinessException; import org.nuclet.sepa.wrapper.AbstractReferenceWrapper; import org.nuclet.sepa.wrapper.ReferenceWrapper; // @replace! Bitte bei Nuclet-Integration mit eigenem Code ersetzen! // // import org.nuclet.businesstemplate.ClientBilling; /** * Facade for Business Objects of type "Reference" * * @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 ReferenceFacade<T extends BusinessObject & Modifiable> extends AbstractReferenceFacade<T> // @replace public class<ClientBilling> getWrappedClass() { private static final ReferenceFacade instance = new ReferenceFacade(); /** * Liefert die Singleton-Instanz dieser Klasse * */ public static ReferenceFacade getInstance() { return instance; } /** * Wrap the actual reference objects inside an <code>AbstractReferenceWrapper</code> * * @return the actual reference objects, wrapped inside an <code>AbstractReferenceWrapper</code> * */ public AbstractReferenceWrapper getReferenceWrapper(final Modifiable boReference) { return new ReferenceWrapper(boReference); } /** * Get the class of the actual reference objects, i.e. the class wrapped by <code>ReferenceWrapper</code> * * @return the class of the actual reference objects, i.e. the class wrapped by <code>ReferenceWrapper</code> * */ public Class<T> getWrappedClass() // @replace public class<ClientBilling> getWrappedClass() { // @replace! // // return ClientBilling.class; return null; } } |
...
Überblick
Inhalte