package TawnTerracottaCaching.v01.services;
// -----( IS Java Code Template v1.2
// -----( CREATED: 2018-03-07 09:36:51 AST
// -----( ON-HOST: TerracottaProd.TAWN.COM
import com.wm.data.*;
import com.wm.util.Values;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;
// --- <> ---
import java.io.*;
import java.lang.Object;
import com.wm.app.b2b.client.cache.config.*;
// --- <> ---
public final class util
{
// ---( internal utility methods )---
final static util _instance = new util();
static util _newInstance() { return new util(); }
static util _cast(Object o) { return (util)o; }
// ---( server methods )---
public static final void searchResultToIdata (IData pipeline)
throws ServiceException
{
// --- <> ---
// @sigtype java 3.5
// [i] object:1:required result
// [o] record:1:required R1
Object[] object = (Object[]) IDataUtil.get(pipeline.getCursor(), "result");
IData[] Result = new IData[object.length];
for (int i = 0; i < object.length; i++) {
com.wm.app.b2b.client.cache.config.SearchResult res = (com.wm.app.b2b.client.cache.config.SearchResult) object[i];
Result [i] = ( IData ) res.getValue();
}
pipeline.getCursor().insertBefore("Result", Result);
// --- <> ---
}
}
// -----( IS Java Code Template v1.2
// -----( CREATED: 2018-03-07 09:36:51 AST
// -----( ON-HOST: TerracottaProd.TAWN.COM
import com.wm.data.*;
import com.wm.util.Values;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;
// --- <
import java.io.*;
import java.lang.Object;
import com.wm.app.b2b.client.cache.config.*;
// --- <
public final class util
{
// ---( internal utility methods )---
final static util _instance = new util();
static util _newInstance() { return new util(); }
static util _cast(Object o) { return (util)o; }
// ---( server methods )---
public static final void searchResultToIdata (IData pipeline)
throws ServiceException
{
// --- <
// @sigtype java 3.5
// [i] object:1:required result
// [o] record:1:required R1
Object[] object = (Object[]) IDataUtil.get(pipeline.getCursor(), "result");
IData[] Result = new IData[object.length];
for (int i = 0; i < object.length; i++) {
com.wm.app.b2b.client.cache.config.SearchResult res = (com.wm.app.b2b.client.cache.config.SearchResult) object[i];
Result [i] = ( IData ) res.getValue();
}
pipeline.getCursor().insertBefore("Result", Result);
// --- <
}
}
No comments:
Post a Comment