RE: Converting to mixed case.

>
I recall seeing a method that would convert all upper or all lower case to
mixed case. Does this sound familiar to anyone?
Hello Everyone
I've developed a single Domain Class to support this behavior. With this
Domain Class you can choice to convert to mixed case each word of the
text or only the initial word and the word after a period by setting the
value of the ToUpdateEachWord attribute (boolean).
Here is an example of this domain class.
I hope this help you.
Victor Navarro
[email protected]

we have a database which I want to use as the source for generating a Java API, and I need/want the Java classes and attributes to be (automatically) created with mixed case names. At the same time we have existing applications and scripts that access the database, and these assume case insensitive table and column names.Not sure if I got you right, but how about creating views as e.g in
SQL> create or replace view "Dept"
  2  as
  3     select deptno "Deptno", dname "Dname", loc "Loc" from dept
  4  /
View created.This will allow you to continue to query in case insensitive manner as well as case sensitive:
SQL>
SQL> select * from dept
  2  /
         DEPTNO DNAME          LOC
             10 ACCOUNTING     NEW YORK
             20 RESEARCH       DALLAS
             30 SALES          CHICAGO
             40 OPERATIONS     BOSTON
SQL> select * from "Dept"
  2  /
         Deptno Dname          Loc
             10 ACCOUNTING     NEW YORK
             20 RESEARCH       DALLAS
             30 SALES          CHICAGO
             40 OPERATIONS     BOSTON
SQL>As I understand, you could use the views (instead of the tables) to automatically generate mixed case classes while continuing to have case insensitve queries?!

Similar Messages

  • Converting to mixed case.

    I recall seeing a method that would convert all upper or all lower case to
    mixed case. Does this sound familiar to anyone?

    Try using this formula
    propercase(split(,"-")[2])
    Regards,
    Raghavendra

  • Convert data in table to mix case

    Hi All,
    I have a table that contains data.
    This table has to columns, an id and description.
    I would like to update my table to convert data to mix case.
    As of now, all of my data in the table are lower case.
    What I mean by mix case is first letter for each word is uppercase and the rest are lower case.
    is there a function i can use ?
    example:
    Amended/Resentence, Type UnknownThanks

    You can use the INITCAP function.
    update table
    set description = INITCAP(description);Example:
    create table test (description varchar(50));
    Table created
    insert into test values ('amended/resentence, type unknown');
    1 row inserted
    select * from test;
    DESCRIPTION
    amended/resentence, type unknown
    update test set description = initcap(description);
    1 row updated
    select * from test;
    DESCRIPTION
    Amended/Resentence, Type Unknown

  • Converting mixed case table name to upper case

    I am migrating data from Access to Oracle and new tables and columns being created are in mixed case is there a way to convert all tablename or column name automatically.
    Also does the migration workbench handle the memo fields currently defined in my oracle database.

    If you want tables and columns to be created in Upper Case then make sure the Create ANSI-Compliance Names checkbox is unchecked in the options section.
    1.Open Workbench.
    2.Tools -> Options
    Memo fields are migrated to CLOB fields in Oracle.

  • Convert mixed case value in colum into upper case values

    Hi All,
    I have got a table call emp and has the following colums:
    id number 10
    suename_name varchar2(20)
    given_name varchar2(20)
    position varchar2(30)
    date_hired date
    Now the values in colums are mixed case and I need to change them to upper case. I think I need to use upper function to do it.
    Could anyone help me by providing me sql/pl sql script to through each colum in emp table and change them to the upper case.
    Many Thanks
    Michael

    Hi,
    If you really want to try this using PL/SQL, then you'll have to use dynamic SQL, something like this untested code, since the table and column names are vaiable:
    SET   SERVEROUTPUT  ON  SIZE 50000
    DECLARE
         sql_txt     VARCHAR2 (4000);
    BEGIN
         FOR  r  IN ( SELECT  table_name
                   ,       column_name
                   FROM    user_tab_columns
                   WHERE   data_type = 'VARCHAR2'
              --   AND     ...  -- if you don't want all columns in all tables
         LOOP
              sql_txt := 'UPDATE "'
                   || r.table_name
                   || '" SET "'
                   || r.column_name
                   || '" = UPPER ("'
                   || r.column_name
                   || '")';
              dbms_output.put_line (sql_txt || ' = sql_txt');     -- For debugging
              -- EXECUTE IMMEDIATE sql_txt;               -- For real
         END LOOP;
    END;Dynamic SQL (here) means creating a string that contains the SQL statement to be done, then using EXECUTE IMMEDIATE to run it.
    Whenever you write dynamic SQL, it's a good idea to only display the SQL statement during the early stages of debugging. When it's displaying correctly, then you can try un-commenting the EXECUTE IMMEDIATE line.
    Edited by: Frank Kulash on Jul 19, 2009 4:40 PM
    A little more complicated, but a lot more efficient:
    SET   SERVEROUTPUT  ON  SIZE 50000
    DECLARE
         sql_txt          VARCHAR2 (4000);
    BEGIN
         FOR  r  IN ( SELECT    table_name
                   ,         column_name
                   ,         ROW_NUMBER () OVER ( PARTITION BY  table_name
                                      ORDER BY       column_name
                                    )     AS column_num
                   ,            COUNT (1)     OVER ( PARTITION BY  table_name
                                    )     AS total_column_cnt
                   FROM      user_tab_columns
                   WHERE     data_type = 'VARCHAR2'
              --   AND       ...  -- if you don't want all columns in all tables
                   ORDER BY  table_name
                   ,            column_name
         LOOP
              IF  r.column_num = 1
              THEN
                   sql_txt := 'UPDATE "'
                   || r.table_name
                   || '" SET "';
              ELSE
                   sql_txt := sql_txt || ', "';
              END IF;
              sql_txt := sql_txt ||
                   || r.column_name
                   || '" = UPPER ("'
                   || r.column_name
                   || '")';
              IF  r.column_num = r.total_column_cnt
              THEN     -- This is the last row for this table; run it
                   dbms_output.put_line (sql_txt || ' = sql_txt');     -- For debugging
                   -- EXECUTE IMMEDIATE sql_txt;               -- For real
              END IF;
         END LOOP;
    END;
    {code}
    The difference is that the first solution produces and executes a separate UPDATE statement for each column, like this:
    {code}
    UPDATE "TABLE_1" SET "COLUMN_A" = UPPER ("COLUMN_A");
    UPDATE "TABLE_1" SET "COLUMN_B" = UPPER ("COLUMN_B");
    UPDATE "TABLE_1" SET "COLUMN_C" = UPPER ("COLUMN_C");
    {code}
    but it's much more efficient to do change all the columns at once, as long as you have the row in hand.  So the second solution only creates one SQL statement per table, like this:
    {code}
    UPDATE "TABLE_1" SET "COLUMN_A" = UPPER ("COLUMN_A")
               ,   "COLUMN_B" = UPPER ("COLUMN_B")
               ,   "COLUMN_C" = UPPER ("COLUMN_C");
    {code} where every line above corresponds to a row fom the query.  The first line for every table will start with
    {code}
    UPDATE "TABLE_1" SET "but all the others will start with
    {code}
    and only on the last column for a given table will the statement be executed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Issue with mix case

    Hi!
    Is there any way to prevent the data to be converted to upper-case without changing it's domain?
    I'm trying to insert mix case in a CHAR40 domain, but the text allways returns as upper-case.
    Regards,
    Andre

    AMadeira wrote:
    > It is possible to do that using code only?
    Please give more details: what you want to do programatically. ?
    If you check the domain of CHAR40 thru SE11 you can find :lowercase" check box not checked. so it convert to upper case

  • Generating mixed case for table and column names

    I trying to get table definition from Oracle 9i database into my toplink workbench
    (version 9.0.3), the column names and table names are capitilized by
    default, how do I change this to be mixed case? Thanks

    I'm not sure why you want them changed. The Oracle database by default is case insensitive, which in essence means it converts everything to upper case when a case is not specified (which can be done by wrapping it in quotes). Unfortunately, Java strings are case sensitive. This means that if you try searching resultsets for "TableName" when the database driver is returning "TABLENAME", you will run into problems. It is probably better to have your project match your database as closely as possible to avoid any issues later on.
    That said, I don't know of a way to automatically have the workbench use mixed case names - it uses the strings as they are returned from the database. I believe you will need to manually change the table names if you want them to be different than what you have imported.
    Best Regards,
    Chris

  • Fetching data from database in case of mixed case in SE37

    Hi,
    I have created a function module(in se37) where the input is Last name(PA0002-NACHN). My requirement is i have to fetch data from PA0002 based on last name. But the problem is if i give a name in mixed case(both upper and lower) sap converts the last name into Capital letter and starts searching the database.
                      But i tried in abap editor. here SAP accept the parameter(last name) as mixed case and starts searching. Why in function module the parameters are converted into upper case. How to restrict it.
                 If i will create a domain with LOWER CASE check box checked and try to call the dataelement in import part of function module then also it's converting it inot upper case. If i uncheck the lower case check box then also it's taking it as upper case.
                How to process the input parameter in function module(SE37) which should take the input as user enters,i.e if user enters small letter it should take it as small letter , if mixed letter it should take it as mixed letter and start searching.
    regards
    sandeep

    HI sandeep,
    <i>"If i will create a domain with LOWER CASE check box checked and try to call the dataelement in import part of function module then also it's converting it inot upper case. If i uncheck the lower case check box then also it's taking it as upper case."</i>
    I think the data is getting converted to upper case even before it is passed to this FM.
    Can yo ushow how are you testing this FM?
    If you are calling this FM in a abap program using a parameter, it will convert the text to upper case as and when you enter data the name in it.
    Regards,
    Ravi

  • Sending mixed case data

    Hi All,
    I need to pass a field with mixed case characters ( Example : JoeSmith) .
    If I dont  do a TOUPPER formula for this field in Transformation at the DSO stage, the load fails with that Hex conversion message.
    We don't want to convert to Uppercase for name fields.
    I have set ALL_CAPITAL in RSKC ( We are on BI 7.0 SP10 Unicode system)
    I tried by checking the Lower case flag for this field in the Datasource.
    I am aware of Lowercase checkbox in Infoobject maintainence - and I would rather not use that.
    Any ideas?
    HD

    I'd be looking at the input side of this. Is there a buffered stream that is not shared by the ObjectInputStream? If there is then the symptoms can be explained. A buffered stream will read in as much data as is available (up to some limit), regardless of whether that data is required. If you switch to the ObjectInputStream before the data has been consumed, then it has effectively been lost.
    The 200ms delay prevents the buffered stream from consuming the extra, and makes the program work.
    The solution is to ensure that the ObjectInputStream shares the buffered stream.
    Sylvia.

  • Changing Mixed Case (Title) headings to Lower Case...

    Hi,
    I am converting several word documents into InDesign CS3 documents in order to create a book. Certain paragraph headings use mixed case (Title Case) and I wish to change each of these into lower case and then apply a character style using an expert font. This seems to be a great task for GREP. However, I have not had much success with creating the correct expression. Any tips or tricks for doing this sort of thing? Also, do you know if there is a shortcut assigned to (Title Case)? It may be the case I will have to use the shortcut key to apply Title Case.
    Thanks in advance for your assistance.
    Kind regards,
    Greg

    Hi Greg,<br /><br />Glad it helped. I was actually referring to the simple all-purpose one <br />which will use whatever grep settings you have. Just save the following <br />script as GrepToLowercase.jsx (or whatever you want), and after setting <br />your grep settings in the dialog, just run the script.<br /><br />finds = app.documents[0].findGrep();<br />for(i=0;i<finds.length;i++){<br />    finds[i].contents=finds[i].contents.toLowerCase();<br />    }<br /><br />-- <br />Harbs<br />http://www.in-tools.com<br />"Automated Publishing for the Rest of Us!"

  • ISE 1.2 - Guest Account converted to lower-case automatically

    Hello
    I have an ISE appliance version 1.2 and sponsor portal
    I create accounts with upper case username and upper case password, but Sponsor portal convert it to lower case.
    I try to login with lower case or upper case. I can't login with both.

    Check the Multiport configurations and HTML page settings for converting the Alphabetic-Cases.:
    You can check the below link for step by step configuration of HTML-Page’s setting:
    Link-1
    http://www.cisco.com/en/US/docs/security/ise/1.2/user_guide/ise_custom_portals.html
    Link-2
    http://www.cisco.com/en/US/docs/security/ise/1.0/sponsor_guide/ise10_sponsor.html#wp1069407

  • Problem in converting into upper case urgent

    hi,
    i  working on module pool program.
    in the initial screen there is two fields one is number one is name.
    if i enter the name in the name field it is automatically converting into upper case,
    but in this case my select query is not working,how to solve this,i mean i have to take same as it is what i entered.
    kindly give me suggestion.it is urgent issue.i have to delever today.
    Thanks,
    mohan.

    hi
    in the Report to handle like this situation.. we use the extentions to the parameter  as  LOWER CASE .
    parameters p_t type char10 LOWER CASE .
    i think in the Module pool also.. we can do this in Properties of the FIELD... once check the Properties of the field... there  could be a chance.
    hi
    <b>there is field <b>checkbox called UPPER/LOWER CASE</b>at the bottom of the properties... if tick this u r porblem will be solved</b>
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K
    Message was edited by:
            Naresh Reddy

  • How to preserve mixed case in Data Dictionary

    Hi,
    I am very new to Oracle, please excuse in advance for silly questions.
    Using Oracle 9i R2, SQL Developer 1.51.5440.
    I don't know if it's Oracle DB or The SQL Developer tool, but the names of the object I create are all transformed in uppercase. Table name, column names, procedure names all are displayed in uppercase. And yet I make sure when I created them to use carefully mixed case to improve readability. Example: ProductID, MyTable, etc.
    I've gone over the options of SQL Developer, but I didn't see any option to turn off the automatic uppercase. Some objects still remains in mixed case, for example the content of a procedure still looks like when I typed it.
    Is there a way to get the object names to be displayed exactly as I created them?
    Thanks in advance.

    Ok, now I see, make senses that everybody keeps using uppercase. I have tried this:
    CREATE TABLE "MyTable" ("Col1" number not null, "Col2" varchar2(20) not null)
    And indeed, even SELECT * FROM MyTable would not work, I have to reference the table by SELECT * FROM "MyTable"
    FYI, in SQL Server, object names are case-insensitive. The name saved in the data dictionary is exactly how you type them. In the queries, constraints, indexes, etc., you can reference to the object name by any case. I find this way more convenient.
    One more question, in the current schema I am working on, where all object names are uppercase. How come I can still make a query with any case?
    For example if I type in SQL Developer: SELECT ProdUCTID, PrOduCTNaMe FROM T_proDuCT ;
    The query executes OK although I'd expect Oracle would complain about table not found. So are the following rules correct?
    1. If the object name was saved with double quote, Oracle will preserve the case and the object should always be referenced WITH double quote and the exact case.
    2. If the object name was save without double quote, Oracle will uppercase the name and the object can be reference by any case.

  • How to make the text of the field to mixed case of the transaction COMMPR01

    Hi,
    There is a text description field in the COMMPR01 for a product.
    Now when i entered any text into the field, it is changed to UPPER CASE.But i want that when i enter any text , it will save the text as it is that means in both upper case and lower case.
    Suppose i entered a text as  Dummy Text, then when i save this product this text should display as Dummy Text.It should not display as DUMMY TEXT.
    Please suggest me how to do this .
    Thanks and Regards,
    Sudhansu

    I just verified and the Description for Products (and possibly other objects too) are stored in table COMM_PRSHTEXT.
    The relevant Data element is COMT_PRSHTEXTX which has the domain PRSHTEXT40.
    If you look at this domain you have a parameter "lowercase" which is available as a flag option.
    <u><b>The explanation about this Flag is the following:</b></u>
    Lowercase letters allowed/not allowed
    If this flag is set, upper case and lower case are distinguished when you enter values with screen masks.
    Otherwise all the letters entered will be converted to upper case when you enter values with a screen mask.
    This mechansim is in effect for all the fields referring to this domain.
    <b>Solution would be</b> to verify if for this data-element the same Domain is used.
    If yes, you can flag this option in the domain.
    this should solve your problem.
    kind regards
    davy pelssers
    please reward if helpful.

  • Small caps in running heads - mixed case problem

    My running head is set to be small caps, and it picks up mixed-case text from the document. I want the head to be all 'lower case' small caps (or 'upper case', unless that really means ordinary caps) but can see no way to achieve this. Instead I get 'mixed case' small caps, if that makes any sense. If I select the head on the master page and then Type | Change Case, this has no effect on the appearance either on the master or the generated heads. How do I achieve uniform small caps where the source text for the running head is mixed-case? If small .indd attachments were allowed I would have attached one, but it got rejected despite not being llisted as a forbidden type.

    A few ways to do this:
    a script: http://jsid.blogspot.com/2005/09/script-of-day-changing-case-again.html
    or in your paragraph styles use OT small caps (assuming you're using an OT font)
    I also set up a keyboard shortcut, to Type > Change Case > lowercase
    you could probably do it with GREP too...

Maybe you are looking for

  • Internet Works on Windows Side; Not Mac

    I installed my Airport Extreme, and I cant seem to connect wirelessly to the internet. I can however connect through an Ethernet cord and, oddly, my Windows partition side. Is there something wrong with my Airport receiver in general?

  • 2 ? Save edited video, and bringing mts video compress

    Greetings, I brought in 3 mts files and CS6 moved very slowly. Do I need to compress these files before I bring them in. I was able to export the rendered file, but how do I save the video file with the layers. Thank you for your help :}

  • Unable to disable Cover Page printing on standard report

    HI Experts, I would like to exclude the cover page printing of standard transaction code S_ALR_87009895 's report. The preview comes out fine (without the cover page) but when it is sends to the spool and then preview at SP01 before printing, the dis

  • Palm IIIc and Mac OS 10.5.8

    Trying to resurrect a IIIc that has set idle for at least 5 years. First question, doesn't seem to charge.... red light comes on and goes off after a few minutes of time in cradle, so it probably needs a new battery? Second question is: when changing

  • Restrict to particular IPaddress

    Hi I am using oracle 10g database on unix os.I want to not connect to a particular machine in database.i write a trigger. CREATE OR REPLACE TRIGGER logontrig AFTER logon ON DATABASE BEGIN IF ora_client_ip_address='192.168.0.30' AND ora_login_user='UP