All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tentackle.persist.wurblet.AssertRemote Maven / Gradle / Ivy

// wurblet generated by Wurbelizer 21.6.0.0, see https://wurbelizer.org

package org.tentackle.persist.wurblet;

import org.tentackle.wurblet.*;
import org.tentackle.buildsupport.*;
import java.util.*;
import java.io.*;
import org.tentackle.common.*;
import org.wurbelizer.wurbel.*;
import org.tentackle.sql.*;
import org.tentackle.model.*;
import org.wurbelizer.wurblet.*;

/**
 * ({@code @wurblet}) Asserts that remote delegates exist and generates them if missing.
 * 

* usage:
* @wurblet <tag> AssertRemote *

* For more options, see {@link DbModelWurblet}. */ public class AssertRemote extends DbModelWurblet { @Override public void run() throws WurbelException { super.run(); try { wurbel(); } catch (Throwable t) { if (t instanceof WurbelException) { throw (WurbelException) t; } throw new WurbelException("wurblet " + this + " failed", t); } } // ----------------- begin wurblet code ----------------- private void wurbel() throws WurbelException { if (isRemote()) { // create includes RemoteIncludes genInc = new RemoteIncludes(this); PrintStream implOut = genInc.getImplStream(); PrintStream remoteOut = genInc.getRemoteStream(); out.print(source[0]); // 17:2 = " // remote delegates: verified!" } else { out.print(source[1]); // 22:2 = " // remote code generation disabled" } } // ----------------- end wurblet code ----------------- }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy