<html>
<head>
    <base href="https://docs.jboss.org/author">
            <link rel="stylesheet" href="/author/s/en/2172/19/5/_/styles/combined.css?spaceKey=TEIID&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://docs.jboss.org/author/display/TEIID/Loopback+Translator">Loopback Translator</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://docs.jboss.org/author/display/~shawkins">Steven Hawkins</a>
    </h4>
        <br/>
                         <h4>Changes (11)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">h1. {color:#000000}{*}Loopback Translator{*}{color} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">h1. {*}Loopback Translator{*} <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words"><span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">{color:#333333}</span>The</span> Loopback translator, known by the type <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">name&amp;nbsp;{color}{color:#333333}{_}loopback{_}{color}{color:#333333},</span> <span class="diff-added-words"style="background-color: #dfd;">name&amp;nbsp;{_}loopback{_},</span> provides a quick testing solution. It supports all SQL constructs and returns default results, with <span class="diff-added-words"style="background-color: #dfd;">some</span> configurable <span class="diff-changed-words">behavior.<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">{color}</span></span> <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">{color:#333333}{*}Execution Properties{*}{color}{color:#333333}&amp;nbsp;{color} <br>|| {color:#000000}Name{color} || {color:#000000}Description{color} || {color:#000000}Default{color} || <br>| {color:#333333}ThrowError{color} | {color:#333333}true to always throw an error{color} | {color:#333333}false{color} | <br>| {color:#333333}RowCount{color} | {color:#333333}Rows returned for non-update queries.{color} | {color:#333333}1{color} | <br>| {color:#333333}WaitTime{color} | {color:#333333}Wait randomly up to this number of milliseconds with each sourc query.{color} | {color:#333333}0{color} | <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{*}Execution Properties{*}&amp;nbsp; <br>|| Name || Description || Default || <br>| ThrowError | true to always throw an error | false | <br>| RowCount | Rows returned for non-update queries. | 1 | <br>| WaitTime | Wait randomly up to this number of milliseconds with each source query. | 0 | <br></td></tr>
            <tr><td class="diff-changed-lines" >| <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">{color:#333333}PollIntervalInMilli{color}</span> <span class="diff-added-words"style="background-color: #dfd;">PollIntervalInMilli</span> | <span class="diff-changed-words"><span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">{color:#333333}</span>if</span> positive results will be &quot;asynchronously&quot; returned - that is a DataNotAvailableException will be thrown initially and the engine will wait the poll interval before polling for the <span class="diff-changed-words">results.<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">{color}</span></span> | <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">{color:#333333}\-1{color}</span> <span class="diff-added-words"style="background-color: #dfd;">\-1</span> | <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">| DelegateName | set to the name of the translator to mimic the capabilities of  | | <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">h3. {color:#000000}{*}JCA Resource Adapter{*}{color} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">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 &quot;jdbc-simple&quot;. <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">{color:#333333}The source connection is required for this translator{color} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">h3. {*}JCA Resource Adapter{*} <br> <br>A source connection is not required for this translator. <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="LoopbackTranslator-%7B%7DLoopbackTranslator%7B%7D"></a><b>Loopback Translator</b></h1>

<p>The Loopback translator, known by the type name&nbsp;<em>loopback</em>, provides a quick testing solution. It supports all SQL constructs and returns default results, with some configurable behavior.</p>

<p><b>Execution Properties</b>&nbsp;</p>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Name </th>
<th class='confluenceTh'> Description </th>
<th class='confluenceTh'> Default </th>
</tr>
<tr>
<td class='confluenceTd'> ThrowError </td>
<td class='confluenceTd'> true to always throw an error </td>
<td class='confluenceTd'> false </td>
</tr>
<tr>
<td class='confluenceTd'> RowCount </td>
<td class='confluenceTd'> Rows returned for non-update queries. </td>
<td class='confluenceTd'> 1 </td>
</tr>
<tr>
<td class='confluenceTd'> WaitTime </td>
<td class='confluenceTd'> Wait randomly up to this number of milliseconds with each source query. </td>
<td class='confluenceTd'> 0 </td>
</tr>
<tr>
<td class='confluenceTd'> PollIntervalInMilli </td>
<td class='confluenceTd'> 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. </td>
<td class='confluenceTd'> &#45;1 </td>
</tr>
<tr>
<td class='confluenceTd'> DelegateName </td>
<td class='confluenceTd'> set to the name of the translator to mimic the capabilities of  </td>
<td class='confluenceTd'>&nbsp;</td>
</tr>
</tbody></table>
</div>


<p>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".</p>

<h3><a name="LoopbackTranslator-%7B%7DJCAResourceAdapter%7B%7D"></a><b>JCA Resource Adapter</b></h3>

<p>A source connection is not required for this translator.</p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;" class="grey">
                        <a href="https://docs.jboss.org/author/users/removespacenotification.action?spaceKey=TEIID">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://docs.jboss.org/author/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
        <a href="https://docs.jboss.org/author/display/TEIID/Loopback+Translator">View Online</a>
        |
        <a href="https://docs.jboss.org/author/pages/diffpagesbyversion.action?pageId=55477038&revisedVersion=4&originalVersion=3">View Changes</a>
                |
        <a href="https://docs.jboss.org/author/display/TEIID/Loopback+Translator?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>