How to associate the data store of the target for the newly created using the API Interface

How to create a new Interface under project, need to associate the data store target for mappings for the interface by using APIs "."

Able to get the associated interface created temporary data store. You need to associate a new database model. How to do this using the API

My code is,

String pCode = "DEVELOPMENT";
Context OdiContext = (mgr.getFinder (OdiContext.class)) .findByCode (pCode) (IOdiContextFinder);
System.out.println (Context.getLastDate ());

OdiInterface pInterface = new OdiInterface ("toDeleted_Interface", pFolder, context);
pFolder.addInterface (pInterface);

The list of ds < DataSet > = pInterface.getDataSets ();
< DataSet > iterator itr = ds.iterator ();
DataSet ds_nxt = itr.next ();

PAlias string = "HRA_TMPL_DEFNS_TL";
pOrder int = 0;
OdiModel pModel = (mgr.getFinder (OdiModel.class)) .findByCode ("FILE_PM_MODEL") (IOdiModelFinder);
String pName = "HRA_TMPL_DEFNS_TL";
OdiDataStore pUnderlyingOdiDataStore = new OdiDataStore (pModel, pName);
SourceDataStore pSourceDataStore = new SourceDataStore (ds_nxt, false, pAlias, pOrder, pUnderlyingOdiDataStore);
ds_nxt.addSourceDataStore (pSourceDataStore);

TargetDataStore tdata = pInterface.getTargetDataStore ();

If (tdata.isTemporaryDataStore ())
{
}

http://odiexperts.com/creating-interface-for-single-source-and-target/
http://odiexperts.com/creating-temporary-interface-using-ODI-SDK/

Tags: Business Intelligence

Similar Questions

  • How to associate the key function on thinkpad T61p

    How to associate the key function on thinkpad__Fn Key__Hibernate mapping of keys for Lenovo Thinkpads

    How to map the keys "Fn F4" on my Thinkpad T61p to keyboard MS Wireless Comfort Keyboard 5000 to Hibernate?

    Your Thinkpad keyboard doesn't have access to the MS Wireless Comfort Keyboard 5000 drivers, firmware and add the functioon of Microsoft for the Thinkpad (and vice versa).

    Here is an article on how to remap the keys in Vista (with a link to a program that will help): http://www.howtogeek.com/howto/windows-vista/map-any-key-to-any-key-on-windows-xp-vista/. I don't know if this works with the function keys, but it's worth a try.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to implement the ScreenUiEngineAttachedListener Interface?

    How to implement the ScreenUiEngineAttachedListener Interface? It is somewhat a mystery reading through the API.

    I have a class that implements ScreenUiEngineAttachedListener:

    public class UiListener implements ScreenUiEngineAttachedListener {
      public void onScreenUiEngineAttached(Screen screen, boolean attached) {
      }
    }
    

    Then I have a class MyScreen which extends from screen and has two methods:

    public void addScreenUiEngineAttachedListener(ScreenUiEngineAttachedListener listener) {
      super.addScreenUiEngineAttachedListener(listener);
    }
    
    private void removeScreenUiEngineAttachedListener() {
    
    }
    
    • What is the correct positioning of everything?
    • Can I define an instance of UiListener and pass in the addScreenUiEngineAttachedListener?
    • How to remove UiListener in removeScreenUiEngineAttachedListener?

    You will need:

    • an instance of your UiListener - probably a static member inside your UiApplication;
    • a method that allows to retrieve the reference to this instance of UiListener;
    • a call in your constructor for the screen at addScreenUiEngineAttachedListener (yourApplication.getUiListener ()) or similar;
    • potentially a call within your onScreenUiEngineAttached (attached screen, boolean) routine, the branch (attachment is false) : screen.removeScreenUiEngineAttachedListener (this);

    However, all this is too much work for no gain. Just override protected void onUiEngineAttached (boolean attached) in your screen class and make your logic there - all members of your class are accessible and all the code is placed where it belongs.

  • How to distinguish the physical interface and logic (subinterface) interface to the Cisco router/Switch?

    Hi Expert,

    How to distinguish the physical interface and logic (subinterface) interface to the Cisco router/Switch? Can you please clarify a formal way for this so have?

    A physical interface is numbered with the same name of the interface when printing on the physical port. For example "GigabitEthernet 0/1" corresponds to port 1 of the 0 module (or the base unit).

    A logical interface can be a subinterface on a routed port and will have a point ("". "") preceding the number sous-interface (ex. GigabitEthernet 0/1.1). It can also be a loop or a virtual interface (on a router this could also include interfaces like the tunnel and virtual tunnel or VTI types). A switch may also have a VLAN logical interfaces (e.g. interface vlan 1) which are used as layer 3 virtual interfaces of type.

  • Workstation 9 - How to get the Web Interface

    As published in this thread: http://communities.vmware.com/message/2045995 but for VMW8, I can not access or find information in the manual on how to access the web interface of 'New' in VMW9?

    Any tips?

    Thank you!

    The WSX server for 9 Workstation is a separate download and install, see https://my.vmware.com/group/vmware/details?downloadGroup=WKST-900-WIN&productId=293&rPId=2920

    See also the configuration and usage WSX in VMware Workstation.

    -Andreas

  • How to restore the original interface of first Pro CC and drag the video to the timeline?

    I downloaded the trial version doesn't have the video and audio tracks on the mounting Panel. I tried to play to find, but it's what happened instead.

    Print screen.png

    Can I know how to restore the original interface?

    Also, how do I drag videos to the timeline when it doesn't have any audio or video track line that I can work with, unlike the CS6 version I was using?

    Thank you.

    Hi Erica,

    To restore:

    In the menu items, choose window > workspace > reset Workspace

    To add the video to the timeline:

    • Select file > new > sequence and create a sequence. Drag the video to the new sequence.

    or

    • In the project Panel, drag your video to the new article . This will create a sequence that best matches your clips properties.

    Best,

    Peter Garaway

    Adobe

    Premiere Pro

  • How to define JDBC Data Sources in Oracle MapViewer for Oracle database 12 c Release 1 (12.1.0.1)

    How to define JDBC Data Sources in Oracle MapViewer for Oracle database Release 1 (12.1.0.1) 12 c?

    Here is my setup in the conf\mapViewerConfig.xml:


    < name map_data_source = "mvdemo12".

    jdbc_host = "127.0.0.1".

    jdbc_sid = "orcl12c1".

    jdbc_port = '1522 '.

    jdbc_user = "mvdemo".

    jdbc_password = "7OVl2rJ + hOYxG5T3vKJQb + hW4NPgy9EN.

    jdbc_mode = 'thin '.

    number_of_mappers = '3 '.

    allow_jdbc_theme_based_foi = 'true '.

    Editable = "true" / >

    <!--  ****  -->

    But it does not work.

    After use "sqlplus mvdemo / [email protected]:1522 / pdborcl", it connected to the Oracle 12 c database.

    Anyone know it?

    Thank you

    11.1.1.7.1 use the jdbc_sid syntax, i.e.

    as described in the README file, mypdb1.foo.com

    -Sources of native data (no container) MapViewer can now use the service name of database instead of SID. To provide a db service name, you will use the same attribute of jdbc_sid, but specify the name of the service with double slashes in front, as follows:

    jdbc_host = "foo.com"

    jdbc_sid="//mypdb1.foo.com".

    jdbc_port = '1522 '.

    ... ...

    />

    Use a container_ds to the 11.1.1.7.0.

    that is, instead of using

    jdbc_host = "mydbinstance".

    jdbc_sid = "pdborcl12c".

    jdbc_port = '1522 '.

    jdbc_user = "mytestuser".

    jdbc_password = "m2E7T48U3LfRjKwR0YFETQcjNb4gCMLG8/X0KWjO00Q ="

    jdbc_mode = 'thin '.

    number_of_mappers = "6".

    allow_jdbc_theme_based_foi = "false".

    Editable = "false".

    />

    use

    container_ds = "jdbc/db12c.

    number_of_mappers = "6".

    allow_jdbc_theme_based_foi = "false".

    Editable = "false".

    />

    In my case the Glassfish 3.1.2.2 JDBC connection pool definition has been

    Property

    URL jdbc:oracle:thin:@mydbinstance:1522/pdborcl12c.rest_of.service.name

    Uncheck the wrap JDBC objects in advanced Panel, that is, the page properties change JDBC connection advanced pool.

    Add a resource to that newly created JDBC pool

    Use in mapviewerconfig.xml as above

  • How to get assistance from mozilla to answer questions for windows when I use a macintosh computer

    How to get assistance from mozilla to answer questions for windows when I use a macintosh computer?

    Look on the right side of the knowlegde base articles, where it is said ' help to ". Here, you can change the operating system and the version of firefox. The content of the article will adjust.

    If you ask a question on the help forum, you can simply say this in your question.

  • How to select different data store for the snapshot

    Hello

    I connected with two data store ESXi 4 server. First data store is a local raid-5 HD and the second data store is a netgear NFS nas.

    virtual machines are stored on the local data store. I want to archivie snapshot for my virtual machine to use the second (nas NFS) data store. I tried to snapcho, but the disk data store is used is always the local.

    can I select a different data store to store the snapshot files?

    Thank you

    http://KB.VMware.com/kb/1002929 could help...

    / Rubeck

  • How to associate the photo files to the Windows or Windows Live Photo Gallery Photo Viewer viewer?

    I want to be able to associate the photo files to the Windows and Windows Live Photo Gallery Photo Viewer viewer.  In both cases, I can't find the executable files.  I would like to know the file name and location.

    Hey healee.

    There is no executable file to the Windows Photo Viewer. It is not a stand-alone application. So you can't run it as an application rather it runs with dllhost.exe.

    Same information applies to Windows Live Photo Gallery.

    The dll for the photo viewer file is located here:C:\Program Files\Windows Photo Viewer\PhotoViewer.dll

     

    Coming to your point about the picture of opening attached files in Mozilla, you should be able to open the file with using Windows Photo Viewer open with which gives the possibility to choose the helper application.

    Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to associate the same contact with two different accounts to import

    Hello

    (1) I want to associate the same contact (ex: person) to two different accounts (account A and account B) import.

    I tried with the Unique ID from outside Contact but it is accidental and in the end, I am able to associate this Contact with a single account.



    (2) I also can't records to import custom object with the same name through the import process.



    Could someone advice on the same.

    With regard to your questions:

    (1) currently, it is not possible using the Import Wizard. However, it could be done using web services.
    (2) the name must be different.

  • How to remove a data store abandoned?

    Hello! I am the systems administrator for my organization where we have HP P6300 storage attached to our cluster of ESXi5. Usually, if we need a new Vdisk to any virtual computer, we create a new vdisk in storage and add them as a new data store in Vsphere, then we create the file within this new data store vmdk. I had to remove a disk of a virtual server. The steps are as below:

    1 remove the data from the drive

    2. remove the disk from the virtual machine and delete the vmdk file

    3 remove the data from the cluster of data store store

    4. remove the data store

    5 remove the vCenter store data (inventory------Clusters data store and data warehouses-right click on the data store and delete)

    6 - anyone the vdisk to ESXi hosts

    7 remove the vdisk to Storage Manager.

    But I made a mistake and missed the STEP n ° 4 and 5.

    Now I see the attached message whenever I'm trying to remove it. Guidelines for this problem and remove this missing data store in the vCenter?

    Thank you

    Ali

    OK, you have a way of death. The only way to fix it must restart the host.

    Kind regards

    Julien

  • How to specify what data store for use with OVFtool

    It drives me crazy! Way that you specify what data store to use when there are several?

    I ran exactly the same command on a box that had a data store and it worked fine (as expected). He created the folder of the virtual machine to the root of the SD and then pulled on the virtual machine of the FVO. However, with multiple it just says not: no datstore target specified. I tried 1 million combinations of?-ds = with hooks, without. It is said to be sometimes found in the inventory. I guess that's looking for a folder. But this cannot be so difficult?

    C:\Program VMware OVF tool & gt; ovftool P:\Downloads\PanoManagerVM-2.8.0

    -ovf\panomanager.ovf ' vi: / / [email protected].

    Source OVF opening: P:\Downloads\PanoManagerVM-2.8.0-ovf\panomanager.ovf

    ATTENTION: No manifest file

    Please enter the login information for the target vi://192.168.1.5/

    User name: root

    Password: *.

    Target of opening VI: vi: / / [email protected]/

    Error: No data store target specified

    Data warehouses is on target:

    SAN storage

    storage1

    something like

    OVFTool - ds = "SAN Storage" source target

    should work

    If you write ovftool - help you can see the full syntax.

    Eske

  • How to open the classic interface in Firefox, to find the Start button in Win8

    I downloaded and installed the classic interface on my Asus laptop and I use Firefox. I aim to recover the Start button.

    for Windows 8.
    

    Cannot get the program to open 'shell' does not appear. The program is there (can be seen in "uninstall programs"), but he does not seem to open it. He speaks i.e. so maybe it won't work on Firefox? It does not come as an add-on "in Firefox.

    Council welcomed please. I'm not very clever online so please can you explain carefully. Tell me if you need more information. Thank you.

    Oops. I think it's done. Not quite how, but thank you ed-meister for response.

  • Satellite P750 - 02K - how to enable the wireless interface?

    Hello

    I just bought a new laptop Satellite P750 / 02K with Windows 7 64 bit. How can I enable the wireless interface?

    I tried the Fn + F8, but it says it all, this is the 'wireless communication is disabled. Please activate the wireless communication switch. There is no switch that I see. The device driver is enabled and active. I even tried to reinstall the driver. The user manual makes no reference to a process physical either pass. I checked the BIOS but see no setting for all the wireless settings. I tried to restart the flash without result map.

    Any suggestions? Thank you.

    Hey Buddy,

    I Don t Satellite P750 in front of me, but the wireless network card is in the Device Manager?

    On Satellite P750, there is a tactile button between the screen and the keyboard to turn the WLAN function. The second button on the left (symbol of the antenna), you need to press to activate the WLAN.

    Also, check the BIOS. As I know most notebook contains an option for the WLAN that must be set to active.

Maybe you are looking for

  • Is there a way to put the system buttons in the tab bar?

    I want to get the most out of the size of my screen, so I want the buttons triple system (minimize, maximize and close) to go even when I am running FF on my tab bar - windowed. Firefox (v37.0.2 on Win7) does this automatically when it is enlarged, s

  • Microsoft Office to replace iMac does not

    I got the transfer for the Apple store software and data from 2007 iMac (the one I'm using to write this) and iMac new 2016. The software includes Microsoft Office for Mac (a package of "Family" that could be used by up to 5 users).  After the transf

  • HP 15-AC053TX: 15-AC053TX of HP linux dual boot and RAM upgrade question

    Hello I want to buy HP laptop computer 15-AC053TX for VMS running on the science of data/data. I have the following questions (1) will require computer support dual-boot Linux OS like Ubuntu and CentOS 64-bit? (2) can I upgrade RAM 16 GB? Can I pre-o

  • Reset send # listed on the login screen

    on my user Windows XP screen of choice for the connection, under my name is a note that says that I have 1 unread email message. I clicked it to see what it is, and that's the one I set up in Outlook 2003 (only). There is no emails unread in my Inbox

  • Value of the field address in Debug portal

    I'm new to push the technology, I have download the sdk to push successfully for the blackberry and install site it now I want to push the message from the portal-debug in the management of debugging-gate push---> push--> I'm not able to find whose a