Can I convert data inputted to Uppercase by using a EO/VO domain?

I am running version 10.1.3.1.0.3984 of JDeveloper and Release 10.1.3.1.26 of JHeadStart. I am trying to mimic a feature that we used extensively in our previous tool so I'm not sure that it can be done this way, but was wondering if I can use an Entity Object or View Object Domain at the Model Layer as the method to convert certain Text Inputted values into Upper Case. I have searched these forums and have not seen it done this way and we are persuing utilizing an Oracle Trigger solution, but wanted to ask this question.
When I create a Domain at the Entity Object Layer by selecting New --> Domain, I get the following code which is standard
package its.sis.entities.UWDomains.common;
import java.io.Serializable;
import java.lang.Object;
import oracle.jbo.JboException;
import oracle.jbo.Transaction;
import oracle.jbo.domain.DomainInterface;
import oracle.jbo.domain.DomainOwnerInterface;
// --- File generated by Oracle ADF Business Components Design Time.
// --- Custom code may be added to this class.
// --- Warning: Do not modify method signatures of generated methods.
public class UWUpperDomain extends Object implements DomainInterface, Serializable {
public UWUpperDomain(String val) {
mData = new String(val);
validate();
private String mData;
protected UWUpperDomain() {
mData = "";
public Object getData() {
return mData();
/**<b>Internal:</b> <em>Applications should not use this method.</em>
public void setContext(DomainOwnerInterface owner, Transaction trans,
Object obj) {
/**Implements domain validation logic and throws a JboException on error.
protected void validate() {
// ### Implement custom domain validation logic here. ###
public String toString() {
if (mData != null) {
return mData.toString();
return "<null>";
public boolean equals(Object obj) {
if (obj instanceof DomainInterface) {
if (mData != null) {
return mData.equals(((DomainInterface)obj).getData());
return ((DomainInterface)obj).getData() == null;
return false;
I, in my limited Java knowledge (very limited) tried to customize this code with the following highlighted change
public Object getData() {
return mData.toUpperCase();
This did not produce the results I had hoped for i.e. everytime that any Entity Object is defined with this domain, that whatever is typed into it is converted to Upper Case.
Is this possible with this type of domain? I'd appreciate any input/clarification.
Thanks very much
Mary
University of Windsor

package its.sis.entities.UWDomains.common;
import java.io.Serializable;
import java.lang.Object;
import oracle.jbo.JboException;
import oracle.jbo.Transaction;
import oracle.jbo.domain.DomainInterface;
import oracle.jbo.domain.DomainOwnerInterface;
// --- File generated by Oracle ADF Business Components Design Time.
// --- Custom code may be added to this class.
// --- Warning: Do not modify method signatures of generated methods.
public class UWUpperDomain extends Object implements DomainInterface, Serializable {
public UWUpperDomain(String val) {
mData = new String(val);
validate();
private String mData;
protected UWUpperDomain() {
mData = "";
public Object getData() {
return mData.toUpperCase();
/**<b>Internal:</b> <em>Applications should not use this method.</em>
public void setContext(DomainOwnerInterface owner, Transaction trans,
Object obj) {
/**Implements domain validation logic and throws a JboException on error.
protected void validate() {
// ### Implement custom domain validation logic here. ###
public String toString() {
if (mData != null) {
return mData.toString();
return "<null>";
public boolean equals(Object obj) {
if (obj instanceof DomainInterface) {
if (mData != null) {
return mData.equals(((DomainInterface)obj).getData());
return ((DomainInterface)obj).getData() == null;
return false;
}

Similar Messages

  • How can i convert data from DBF to oracle database 10g?

    Sir,
    How can i convert data from DBF to oracle database 10g?

    I assume you at least know how to dump the contents of foxpro dbf file into CSV format.
    Regarding SQL*Loader, hope this demo makes it a bit clear to you...
    http://www.princeton.edu/~storacle/sqlloader_demo.shtml
    I agree that it is an old web page (references Oracle 8.0.5) but basics remain the same.
    If it is still unclear to you after referring above link, then get an Oracle consultant.

  • How can we post data from CRM to SAP using ABAP proxies???

    Hi ,
      Can anyone hep me to create interface for the following scenario How can we post data from CRM to SAP using ABAP proxies???, can I find any document ???????
    Thanks in advance
    Andy

    Andy,
    Please look at these weblogs.
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    These should give a good idea about implementing Proxies.
    Regards,
    Ravi

  • Even though iOS cannot restore backups of newer devices, can it restore data from an older device using 7.1.2 to a newer device using iOS8

    iPhone 4s 16GB running iOS 7.1.2. Even though iOS cannot restore backups of newer devices, can it restore data from an older device using 7.1.2 to a newer device using iOS8

    Hi ,
    Welcome to the Apple Support Communities!
    I understand that you cannot use your Wi-Fi after the latest update to your iPhone 4s. I know you have already done some great troubleshooting by restoring with iTunes but the Wi-Fi becomes unavailable very quickly after you set it up. Go ahead and set up the iPhone so you can get into the Setting and then follow the steps provided in the attached article.
    iOS: Wi-Fi settings grayed out or dim
    http://support.apple.com/kb/ts1559
         Resolution
    Follow these steps to resolve the issue:
    Restart your iOS device.
    Make sure that airplane mode is off by tapping Settings > Airplane Mode.
    Reset the network settings by tapping Settings > General > Reset > Reset Network Settings.
    This will reset all network settings, including Bluetooth pairing records, Wi-Fi passwords, VPN, and APN settings.
    Make sure that your device is using the latest software. To do so, connect your device to your computer and check for updates in iTunes.
    If you complete all of these steps and still are not able to access the Wi-Fi, it may be necessary to follow the link at the bottom of the page and contact Apple Support.
    Have a great day,
    -Joe

  • How we can view convert data after XSLT mapping & before Graphical mapp

    Hello Friends,
    Currently i am working on XI standard content. In this client need some customization.
    In interface mapping, XSLT mapping on 1st position & Graphical mapping on 2nd position.
    As per my understanding 1st XSLT mapping will be exected then Graphical mapping.
    Can I see or check convert data from XSLT mapping.
    I want to check data between XSLT mapping & Graphical mapping.
    Kindly help me out.
    Regards,
    Narendra

    >
    Narendra GSTIT wrote:
    > I dont want to test standalone XSL Code.
    >
    > The data which I get from Source interface and after XSLT mapping I want to check this that my XSLT code is going well or not.
    >
    > i.e. check for proper input & get proper output.
    You have ro do standalone testing of the XSLT mapping.....Interface Mapping or Interface Determination will give you output message which will be that of message mapping (the last mapping)
    What is the issue in testing the XSLT mapping alone?...may be in Stylus Studio.
    Just ensure that XSLT mapping produces proper output and then this output message of XSLT is the input to your Message Mapping.....once the entire Interface mapping gets executed then it would mean that all the included mapping programs work fine.
    Regards,
    Abhishek.

  • How can I convert date in FOX (from DEC to date[DEC])

    Hi everyone!
    In my planning layout I have a field called "MYDATE" of the date-type "DEC: Calculation or amount field with comma and +/- sign" (-> BPS does not allow using DATS as date-type).
    Since I import that date from a different system, I have to use a temporary workaround field "WADATE" (WorkaroundDate) of type DEC (alternatively integer or float) which contains the date in a format YYYYMMDD (e.g. 20070604).
    How can I transfer the date from WADATE to MYDATE? I tried using FOX, but for some reason it does not work. When I use the following function, MYDATE remains empty:
    DATA TMPDATE TYPE F.
    DATA MYPROJECTS TYPE B906_PROJ.
    FOREACH MYPROJECTS.
    "MYDATE" is the field I want my date in
    "WADATE" is my workaround field that contains the date
    TMPDATE = {WADATE,000,0000000001,0000000001,001}.
    BREAK-POINT.
    {MYDATE,000,0000000001,0000000001,001} = TMPDATE.
    ENDFOR.
    Is it possible to solve my problem with FOX? Or do I have to work with an EXIT function?
    Best regards, Daniel

    Daniel,
    The better approach is the one Marc said but if you have tomake a work around work, I think you might need to try and define your temporary date variable as String and another for the converted date as of type of the final date.  I would not define any date type as float unless you can have part days and it is very important to have part days, integer might work by I would try String first myself.
    It has been a while but on a BW 3.5 project I had to do some manipulation to read the attribute value of material master data to get the launch date and use it to derive the start period (definited as type 0FISCPER) and proportion of month based on number of days remaining after launch date vs the # of days for the month.  I think I used string type function in FOX to derive some of the component...
    Hope this helps,
    mary

  • Can't convert string element to XML node using XSL

    We have a source XML with a node that contains another XML as string. Like this:
    "<imp1:payload>&lt;?xml version = '1.0' encoding = 'ISO-8859-15' standalone = 'no'?>
    &lt;!-- Oracle eXtensible Markup Language Gateway Server -->&lt;!DOCTYPE PROCESS_PO_007 SYSTEM "003_process_po_007.dtd">&lt;PROCESS_PO_007>&lt;CNTROLAREA>" etc
    And we have a target XML that has the schema inside the string in the source file, like this:
    "<PROCESS_PO_007>
    <CNTROLAREA>"....etc.
    How can we "parse" the string to a node using an XSL transformation file?

    Hi,
    Can you tell me which code are you using currently for transferrring the data? It might help me to figure out what your problem is.

  • Can I convert my VHS tapes into DVD using iMAC?

    How can I convert my VHS tapes into DVD by using iMAC?

    From VHS to DVD
    http://www.macworld.com/article/1030972/fromvhstodvd.html   <<< click here.
    How to Convert a VHS to a DVD for Mac OS X
    http://www.ehow.com/how_6515774_convert-dvd-mac-os-x.html   <<< click here.
    Roxio unveils VHS to DVD converter for Mac
    http://www.macnn.com/articles/09/05/26/roxio.vhs.to.dvd/   <<< click here.
    How to Convert VHS to DVD on Mac OS X
    http://www.daniusoft.com/tutorial/burn-vhs-to-dvd-on-mac.html   << click here.

  • How can I convert MP3 file to AIFF to use in FCP?

    Hi guys,
    How can I convert an MP3 file to AIFF file to use it in Final Cut Pro?
    Anyone please,
    Thanks in advance,
    Zia

    #5 Imported music from CD or iTunes
    Shane's Stock Answer #5:
    To get music into FCP, it needs to be an AIFF file at 48khz, 16 bit stereo. So if you want a song from a CD, you go into the iTunes Preferences and set this up under the IMPORTING tab:
    File > preferences > importing > import using - AIFF encoder > Setting - Custom
    Sample Rate - 48.000 kHz
    Sample size - 16 bit
    Channels - Stereo
    If you have an mp3 that you want to use, then you can convert it thru iTunes as well.
    If the piece of music you want to use is something you purchased thru iTunes, I'm afraid I can't help you there. There are copywrite issues that prevent files from being converted into the format that FCP can recognize.
    Shane
    "There's no need to fear, UNDERDOG is here!"

  • Can't find data after transfer between macs using migration assistant

    I wanted to transfer data between my Macbook air using Mountain lion and a MacBook pro using Mavericks. I did it using migration assistant through Wi-Fi. The process was completed without problems but I can't find the data on the MacBook pro!
    It was my pictures folder, about 50Go and I can't find it anywhere on the new computer. It should be easy since there is almost nothing on there at the moment. It is a new install.
    The disk utility tells me that I have now an extra 50Go of space used, so it must have been transferred...
    Any idea?
    Thanks

    I found my data in the shared folder. Not all of it was there and in the end a nice lady from Apple told me to start again from the beginning and delete the mess the import program created
    I am still a bit confused over the red circles but make sure you are in the right account when trying to see the data as I dont think even as admin I could see the main user account (I had 5 for the family).
    There is a button under the get info tab that can change some of the permissions
    Frustrating isnt it

  • FDMEE- Can the subledger data be brought into HFM using FDMEE?

    Hi Experts,
    Is it possible to bring the sub-ledger data from PeopleSoft using FDMEE to HFM. As per one of the requirement of client it is required to bring the transaction level data directly into HFM.
    Please suggest whether it is possible to bring the sub ledger data to HFM using FDMEE.
    Any insightful response will be helpful for us as it would help us to gain clarity and understanding.
    Thanks in advance.

    Hi Tony,
    I think I was not clear enough in my earlier post. Sorry about that. I didn't mention about multiple currency for single entity. I understand your point "Given that, FDM will not load to "multiple" currencies for a single entity", but that was not my question.
    Let's say, I've the below data file containing only 3 data rows. The first row gives USD value as entity 1001 is USD entity, but the second row has CAD value as entity 1002 is Canadian entity. The third row has UK value as entity 1003 is UK entity. My question was, can I load the below file into HFM using a single location in FDM? Or do I have to create 3 separate locations in FDM to load the below data file? Please note, one entity can have only one currency.
    Year,Period,Entity,Account,Value
    2010,August,1001,400010,145.65
    2010,August,1002,400010,35.05
    2010,August,1003,400010,10.05
    Here is the hierarchy in HFM, I created the location in FDM based on the "GSLUSD" node
    GSLUSD (USD)
    ---1001 (USD)
    ---1002USD (USD) -> Currency Translation happens here
    ---1002 (CAD)
    ---1003USD (USD) -> Currency Translation happens here
    ---1003 (UK)

  • How can i convert oracle report in excel format using 8i

    hi,
    I want to convert oracle report in excel format using 6i reports. please give the solution with emp table.
    millons of thanks in advance.

    You'll have to use the destype DELIMITEDDATA to render your Report in CSV format. Then set the mime type to Excel. I don't know the exact syntax, so please do a search in metalink for "reports excel" for examples and more info.
    Regards,
    Martin Malmstrom

  • Can't convert date correctly

    Hi, I have a date in the format ddddd, which represents the number of days since December 28,1800. I want to be able to convert this to a java date and also be able to convert back to this format.
    I've tried calculating the offset and adding it to a date then dividing to get the number of days but it's always off.
    An example would be 73107, as a java date (MMddyyyy) this would be 02/24/2001.
    This seems like an easy problem to me but I just can't get it to work right.

    Hi, one more note. The code above works perfectly for convering a clarion date to a java date but I modified it to do the reverse but I keep getting values that are not accurate. Here's the code I'm using (based on the code above):
          Calendar cal = Calendar.getInstance();
          cal.setTimeZone(TimeZone.getTimeZone("America/St_Johns"));
          cal.clear();
          cal.set(cal.YEAR,1800);
          cal.set(cal.MONTH,11);
          cal.set(cal.DATE,28);
          cal.set(cal.HOUR_OF_DAY,0);
          Date date = cal.getTime();
          long x = date.getTime();
          long baseMillis=x < 0 ? -x : x;
          System.out.println(String.valueOf(baseMillis));
          long aDay=24*60*60*1000L;
          long elapsedMillis = aDate.getTime(); //date parameter passed in
          long result = (elapsedMillis+baseMillis)/aDay;
          System.out.println(result);Feb 24,2001 should return 73107 but instead it returns 73135

  • How can I convert date infomation to a string just includes the date not th

    I just want the date like Thu 08, july 2004 but not the exact time.
    how can I do that.

    The prior code produces a date formatted as Jul 7, 2004
    To get Wed 07, July 2004, try this minor modification:
    import java.text.DateFormat;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    DateFormat format = new SimpleDateFormat("EEE dd, MMMM yyyy");
    Date mydate = new Date();
    String str = format.format(mydate);
    System.out.println(str);

  • How can i read data in pagemaker file (PMD) using Visual Studio C# NET ?

    I have bunch of data in .PMD file (Page Maker Document). Which contains mathematical equations and chemistry formulas, I am a .NET developer, and I am writing code for one of the educational learning system. For that I need to read and store mathematical equations/ chemistry formulas from .PMD file into database then display on the browser page.
    Is it possible to read data from .PMD file using C#.NET, do I need to use any external libraries. How can I import .PMD to MATHML (Mathematical Markup language)?
    Any existing examples for C#.NET?
    Please help me regarding this.

    I can't claim to know much about visual C# Net, but I do know a bit about pagemaker. It really can't handle equations. there are a few work arounds involving things like baseline shifts and multiple text boxes, but generally equations were created in different programs and placed in pagemaker in picture or eps files. Either way the chances of extracting usable data out of pagemaker is very slim.
    Jay

Maybe you are looking for

  • Using Queries in Crystal Reports

    Hi all, I know that creating a report in Crystal Reports is essentially creating a query, but I wanted to know if anyone knew of any ways to develop queries using the Query Generator in B1 and then use that query for a report in Crystal, possibly ref

  • Where's the double click the menu bar to minimize?

    In Lion, I can no longer double click a window menu bar to minimize it. I can't find an option in the System Preferences for it. Is it really gone or can I just not find it? Thanks

  • Ibook Writer edit with other authors

    I happened to discover that you can simultaeneously edit a word document with other people. Is it possible to do the same thing with IBook Writer, but without using the same wifi or using file sharing? This is because my friend and I want to write a

  • When is the update coming?

    Does anyone know when there will be an update to the final release, which I think was a final candidate that shouldn't have passed the test? I don't know if it's just me, or is everyone else having problems with weird editing bugs... like editing lon

  • Link Styles not appearing

    I've created a Link Style that worked just fine on one block of text, but when assigned to another block, has no effect. I've deleted the offending block and started over, but the assigned Link Style still won't activate when viewing in the browser.