Loopback Translator

Page edited by Steven Hawkins


Changes (11)

h1. {color:#000000}{*}Loopback Translator{*}{color}
h1. {*}Loopback Translator{*}

{color:#333333}The Loopback translator, known by the type name {color}{color:#333333}{_}loopback{_}{color}{color:#333333}, name {_}loopback{_}, provides a quick testing solution. It supports all SQL constructs and returns default results, with some configurable behavior.{color}

{color:#333333}{*}Execution Properties{*}{color}{color:#333333} {color}
|| {color:#000000}Name{color} || {color:#000000}Description{color} || {color:#000000}Default{color} ||
| {color:#333333}ThrowError{color} | {color:#333333}true to always throw an error{color} | {color:#333333}false{color} |
| {color:#333333}RowCount{color} | {color:#333333}Rows returned for non-update queries.{color} | {color:#333333}1{color} |
| {color:#333333}WaitTime{color} | {color:#333333}Wait randomly up to this number of milliseconds with each sourc query.{color} | {color:#333333}0{color} |
{*}Execution Properties{*} 
|| Name || Description || Default ||
| ThrowError | true to always throw an error | false |
| RowCount | Rows returned for non-update queries. | 1 |
| WaitTime | Wait randomly up to this number of milliseconds with each source query. | 0 |
| {color:#333333}PollIntervalInMilli{color} PollIntervalInMilli | {color:#333333}if positive results will be "asynchronously" returned - that is a DataNotAvailableException will be thrown initially and the engine will wait the poll interval before polling for the results.{color} | {color:#333333}\-1{color} \-1 |
| DelegateName | set to the name of the translator to mimic the capabilities of | |

h3. {color:#000000}{*}JCA Resource Adapter{*}{color}
You can also use the Loopback translator to mimic how a real source query would be formed for a given translator (although loopback will still return dummy data that may not be useful for your situation). To enable this behavior, set the DelegateName property to the name of the translator you wish to mimic. For example to disable all capabilities, set the DelegateName property to "jdbc-simple".

{color:#333333}The source connection is required for this translator{color}
h3. {*}JCA Resource Adapter{*}

A source connection is not required for this translator.

Full Content

Loopback Translator

The Loopback translator, known by the type name loopback, provides a quick testing solution. It supports all SQL constructs and returns default results, with some configurable behavior.

Execution Properties 

Name Description Default
ThrowError true to always throw an error false
RowCount Rows returned for non-update queries. 1
WaitTime Wait randomly up to this number of milliseconds with each source query. 0
PollIntervalInMilli if positive results will be "asynchronously" returned - that is a DataNotAvailableException will be thrown initially and the engine will wait the poll interval before polling for the results. -1
DelegateName set to the name of the translator to mimic the capabilities of  

You can also use the Loopback translator to mimic how a real source query would be formed for a given translator (although loopback will still return dummy data that may not be useful for your situation). To enable this behavior, set the DelegateName property to the name of the translator you wish to mimic. For example to disable all capabilities, set the DelegateName property to "jdbc-simple".

JCA Resource Adapter

A source connection is not required for this translator.

Stop watching space | Change email notification preferences
View Online | View Changes | Add Comment