Binary Data Type in finder methods for CMP beans

How to write an equivalent ejb-ql query in ejb-jar.xml for a finder method accepting
a byte array as a parameter. The finder method is for a cmp-field mapped to a
database field with binary data type

Using CMP 2.x, your custom finder and select methods are implemented by the container based on the EJB QL query you provide in the ejb-jar.xml. In CMP 1.1, there was no portable way to express the semantics of the query, so most vendors had a vendor-specific syntax for describing the query.
See chapter 27 of the J2EE 1.4 Tutorial for some examples of using EJB QL :
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
--ken
Kenneth Saks
J2EE SDK Team
SUN Microsystems

Similar Messages

  • Finder methods for CMP beans

    We do not implement finder method in Bean class for CMP. As such, where do we implement finder methods such as findInRange() method? How does the container implement my custom "find" methods.
    Thanks

    Using CMP 2.x, your custom finder and select methods are implemented by the container based on the EJB QL query you provide in the ejb-jar.xml. In CMP 1.1, there was no portable way to express the semantics of the query, so most vendors had a vendor-specific syntax for describing the query.
    See chapter 27 of the J2EE 1.4 Tutorial for some examples of using EJB QL :
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
    --ken
    Kenneth Saks
    J2EE SDK Team
    SUN Microsystems

  • Using wildcards in custom find methods with CMP beans

    Hi,
    I'd like to create a custom find method called findByName which accepts a string. I'd typically want to use the string in a '%<name>%' scenario, where the user needn't type in the whole name. Does anybody know what the partial query should look like? I'm not sure how to concatenate the '%' symbol to the string taken in.
    Thanks in advance
    Gillian

    Gillian-
    Bind variables are of the form $1, $2, etc., so try using a query stmt like this:
    select * from YOURTABLE where name like '%$1%'
    Regards,
    -Jon

  • BINARY data types

    Hi all,
    I have a simple question. I want to reproduce the SET data types (mysql) in Oracle. So I want assign a binary value to a column. I create a column with CHAR(1) type and I want assign for example 00000010 binary value.
    It's possible ?
    Thanks in advance

    2) RAW data type is not present in express edition. And I use it for migration testing...Why do you believe that the RAW data type isn't present in the express edition? The UTL_RAW package is included in the express edition and I'm not finding any obvious documentation indicating that RAW columns aren't supported in the express edition.
    3) In certain case, I need to store approximately 60 elements. That's why I want to use binary data type. It reduce space to 8 bytes.Unless we're talking about a table with billions of rows, is a difference of at most 52 bytes per row really going to make a difference? Particularly given the extra overhead of doing the binary comparisons? And 52 bytes is an upper limit, since trailing NULL values don't require any storage space
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/schema.htm#sthref735
    Plus, 60 separate flag columns will be a heck of a lot easier for future reporting tools to handle rather than having everyone try to decode the values. And you can use bitmap indexes, regular indexes, etc much more easily.
    Justin

  • Data Type Is Not Vailid for Input

    Hello,
    I'm new in (ABAP) WebDynpro and I have a problem with displaying data - particularly with HROBJECTs from our e-Recruiting system.
    In my WebDynpro-Component i read some data of candidates into my context. One table (with candidate-infos) which i save in my context includes a field which is datatype of HROBJECT. After I've read this infos into my itab, I bind this table to my context. All this works fine! But as soon as I bind this context to a table-ui-element in my layout, i get a error message "Data Type Is Not Valid for Input", when i start the application.
    If I delete the binding with the attribute which is a HROBJECT, it works.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_WDR_CONVERSION_EXCEPTION
    Information on where terminated
        Termination occurred in the ABAP program "CL_WDR_CONVERSION_UTILS=======CP" -
         in "IF_WD_CONVERSION_UTILS~TO_STRING".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 138
        of the (Include) program "CL_WDR_CONVERSION_UTILS=======CM00G".
        The termination is caused because exception "CX_WDR_CONVERSION_EXCEPTION"
         occurred in
        procedure "IF_WD_CONVERSION_UTILS~TO_STRING" "(METHOD)", but it was neither
         handled locally nor declared
        in the RAISING clause of its signature.
        The procedure is in program "CL_WDR_CONVERSION_UTILS=======CP "; its source
         code begins in line
        1 of the (Include program "CL_WDR_CONVERSION_UTILS=======CM00G ".
    136     WHEN cl_abap_typedescr=>typekind_struct1    "'u'     " structure
    137     OR   cl_abap_typedescr=>typekind_struct2.   "'v'.    " structure
    >>>>       RAISE EXCEPTION TYPE cx_wdr_conversion_exception exporting textid = cx_wdr_conversion_
    139 *      raise exception type cx_wdr_conv_unsupported exporting type_name = l_type.
    Please Help.
    Thanks

    now i've tried it with a independent candidate node (without) supply funciton. =>
    The same error: "Data Type Is Not Vailid for Input"
    Here's the code of my supply-function:
    (probably not the best coding - but it works until i want to display a hro.)
    METHOD get_cand_info .
      DATA: lr_cdcy                    TYPE REF TO cl_hrrcf_candidacy_bl,
            lr_cand                    TYPE REF TO cl_hrrcf_candidate_bupa_bl,
            stru_requisitions          TYPE if_componentcontroller=>element_requisitions ,
            lt_h_cdcy_list             TYPE rcf_t_list_candidacies_x,
            ls_h_cdcy_list             TYPE rcf_s_list_candidacies_x,
            lt_cdcy_list               TYPE if_componentcontroller=>elements_candidate,
            ls_cdcy_list               TYPE if_componentcontroller=>element_candidate,
            lt_addr                    TYPE rcf_t_addressdata_bp,
            ls_addr                    TYPE rcf_s_addressdata_bp,
            lt_email                   TYPE rcf_t_emaildata_bp,
            ls_email                   TYPE rcf_s_emaildata_bp.
    * get all declared attributes
      parent_element->get_static_attributes(
        IMPORTING
          static_attributes = stru_requisitions ).
      CALL METHOD cl_hrrcf_candidacy_bl=>get_instance
        RECEIVING
          return = lr_cdcy.
      CALL METHOD cl_hrrcf_candidate_bupa_bl=>get_instance
        RECEIVING
          return = lr_cand.
    * Hole Kandidatur-Informationen der Kandidaten
      TRY.
          lr_cdcy->get_candidacy_list_x(
            EXPORTING
              ps_req_hrobject  = stru_requisitions-hrobject
    *    ps_cand_hrobject =
    *    ps_appl_hrobject =
    *    p_exclude_draft  = 'x'
            IMPORTING
              pt_candidacies_x = lt_h_cdcy_list
        CATCH cx_hrrcf .
      ENDTRY.
    * Ergänzen der Informationen mit BusinessPartner-Infos
      LOOP AT lt_h_cdcy_list INTO ls_h_cdcy_list.
        TRY.
            lr_cand->get_contact_data(
              EXPORTING
                ps_cand_hrobject = ls_h_cdcy_list-cand_hrobject
              IMPORTING
                pt_addressdata   = lt_addr
    *    pt_telefondata   =
    *    pt_faxdata       =
                pt_emaildata     = lt_email
          CATCH cx_hrrcf .
        ENDTRY.
        READ TABLE lt_addr INDEX 1 INTO ls_addr.
        READ TABLE lt_email INDEX 1 INTO ls_email.
        MOVE-CORRESPONDING ls_h_cdcy_list TO ls_cdcy_list.
        ls_cdcy_list-postcode1 = ls_addr-postl_cod1.
        ls_cdcy_list-city1 = ls_addr-city.
        ls_cdcy_list-email = ls_email-e_mail.
        APPEND ls_cdcy_list TO lt_cdcy_list.
      ENDLOOP.
      CALL METHOD node->bind_table
        EXPORTING
          new_items = lt_cdcy_list.
    ENDMETHOD.

  • Date type-specific Customizing missing for date type ACTActPln

    Hi all.
    I'm using a Web Service obtained by copying the CRM 7.0 built-in WS APPTACTCRTRC.
    I'm using it to create Appointments using an Adobe Interactive Form.
    It goes everything fine (a Date is created in the system, with all the input data properly set) excepted the dates...
    The WS uses two TIMESTAMPS, TIMESTAMP_FROM for StartDateTime and TIMESTAMP_TO for EndDateTime, whereas the GUI transaction to create Dates accepts dates and times in separated fields.
    Going in Debug I can see that the execution ends with the following error, referred to the involved entity (CRM_APPOINTMENT):
    Date type-specific Customizing missing for date type ACTActPln
    CRM_APPOINTMENT uses date profile 0000000001 with three possible date types: ORDERACTUAL, ORDERPLANNED and ORDERPROPOSED and I cannot find anywhere date type ACTActPln (just to add it in customizing).
    Is anyone able to enlight me?
    Thank you in advance!
    Alessandro
    PS I've years of experience in Java programming but I'm quite new to the SAP world. Maybe the problem is not a problem at all, but it seems to me as such. Even if it has a trivial solution, please let me know. Thx!

    Hi,
    Well I was about to write that you should enter date in decimal format. but you already did that as mentioned in How to set a date in a Form where the bound date format is a decimal?
    In response to following from above thread (copied for others to understand my response)
    Hi all.
    I'm successfully using the LiveCycle Designer and I've managed to remotely create Appointments using a CRM Web Service (a mere copy of APPTACTCRTRC).
    The only problem I'm encountering is that I'm not able to set the dates/times (start and end of the appointment).
    Dragging each of the two fields from the WSDL based Data Connection I obtain a Decimal Field limited to 15 digits.
    How can I write a date and time in such a field?
    I've tried with a retroverse date as YYYYMMDDHHmmss (for example, 20100301124500) but it does not work
    (the appointment is indeed created, but with the start date and time fields filled with
    the current date/time and the end date and time fields filled with the current date and time plus 10 minutes).
    The retroverse date above is only 14 digit long, so, maybe, this is the problem.
    But, given the field definition, I'm not able to fill a blank space between the date and the time.
    I'm not able to put a dot either.
    What should I do?
    Any suggestions?
    Thank you in advance.
    Alessandro
    15 digit in UTC time format here is fraction of second so you should enter 201003011245000 (add one more zero).
    14th Oct 2010 16:00 should be written as 201010141600000, so just try it and and see if it works, I guess if you do not supply end time then by default it will be starttime + 10 min but this is just guess.
    Regards,
    Gourav

  • Argument data type varchar is invalid for argument 1 of formatmessage function

    So, I have a need to parameterize my templates so I can dynamically compile and execute them as needed. I have read on some blogs that it is possible to use FORMATMESSAGE  for user string formatting but I can't seem to get that working on my end and
    would appreciate help getting this running. 
    I continually run into the following error message
    Msg 8116, Level 16, State 1, Line 9
    Argument data type varchar is invalid for argument 1 of formatmessage function.
    when I try to execute either of  the queries below
    1) 
     SELECT FORMATMESSAGE ( CAST('%s' AS VARCHAR(10)), 'name' );
    2) 
    -- printf formatting  %[[flag][width][.precision]]typeDECLARE @Format CHAR(1)         = ''   -- '',+,-,0,#,' '      , @Width INT              = 6    -- display field size      , @Precision INT          = 3    -- characters to display      , @Type CHAR(1)           = 'X'  -- s, d, i, u, o, x, X      , @Binary VARBINARY(128)  = 0x1239       , @Int INT                = 11                      , @String NVARCHAR(128)   = N'test';  DECLARE @$QL NVARCHAR(256) = ( SELECT FORMATMESSAGE( N'SELECT FORMATMESSAGE(''%%s -->%%%s*.*%s<--'', @$QL, %i, %i, %s)'                      , s.Flag                       , f.Type                      , @Width                      , @Precision                       , CASE WHEN @Type = 's'                              THEN FORMATMESSAGE('''%s''', @String)                             WHEN @Type = 'd'                             THEN FORMATMESSAGE('%d', @Int)                             WHEN @Type = 'i'                             THEN FORMATMESSAGE('%i', @Int)                             WHEN @Type = 'u'                             THEN FORMATMESSAGE('%u', @Int)                             WHEN @Type = 'o'                             THEN FORMATMESSAGE('%o', @Int)                             WHEN @Type = 'x'                             THEN FORMATMESSAGE('%x', @Binary)                             WHEN @Type = 'X'                             THEN FORMATMESSAGE('%X', @Binary)                             END )   FROM (SELECT           ('') AS Flag         UNION ALL SELECT ('+')          UNION ALL SELECT ('-')          UNION ALL SELECT ('0')          UNION ALL SELECT ('#')          UNION ALL SELECT (' ') ) AS s         CROSS JOIN (SELECT           ('s') AS Type               UNION ALL SELECT ('d')               UNION ALL SELECT ('i')               UNION ALL SELECT ('u')               UNION ALL SELECT ('o')               UNION ALL SELECT (LOWER('x'))               UNION ALL SELECT (UPPER('X')) ) as f   WHERE CHARINDEX(@Format,s.Flag) > 0   AND ASCII(f.Type) = ASCII(@Type) );EXEC sp_executesql @$QL, N'@$QL NVARCHAR(256)', @$QL;
    [email protected]

    Hi Databyter,
    Based on my testing, the first query runs fine in a SQL Server 2012 while I got the same error in your post when trying to run it in a SQL Server 2008R2.
    After going through the BOL of the FORMATMESSAGE for both versions, something came into my sight.  The note below was removed in the 2012 BOL.
    FORMATMESSAGE works only with messages created using
    sp_addmessage.
    BOL:FORMATMESSAGE(2008)
    BOL:FORMATMESSAGE(2012)
    The messages created using sp_addmessage can be viewed by using the sys.messages. Thus in SQL Server 2008, you have to follow the example to use the function or you get the error in your post.
    SELECT * FROM sys.messages WHERE message_id = 20009 AND language_id = 1033;
    DECLARE @var1 VARCHAR(200);
    SELECT @var1 = FORMATMESSAGE(20009, 'First Variable', 'Second Variable');
    SELECT @var1;
    For some reason the limitation is removed in SQL Server 2012, that's why your first query runs fine.
    If you have any feedback on our support, you can click
    here.
    Eric Zhang
    TechNet Community Support

  • Operand data type char is invalid for sum operator

    can someone help me re-writing the following so I wont keep getting thie baopv ementioned error: here is the statement:
    RIGHT('0000000000'+REPLACE(CAST(SUM(PAID_AMT) AS VARCHAR),'.',''),14) AS TOT_NET_PAID
    +
    RIGHT('0000000000'+REPLACE(CAST(SUM(PAID_AMT)
    AS
    VARCHAR),'.',''),14)
    AS TOT_NET_PAID
    It keeps retuning he following error messages:
    Operand data type char is invalid for sum operator

    As Jingyang said, you cannot sum a non numeric field. Cast it to a numeric first (INT maybe?)
    + RIGHT('0000000000'+REPLACE(CAST(SUM(CAST(PAID_AMT AS INT)) AS VARCHAR),'.',''),14) AS TOT_NET_PAID
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • Binary Data type in Logical - Is it a bug?

    Binary Data type in Logical - Is it a bug?
    Hi ,
    I am using SQL DM 3.0.0.665. I need your thoughs on following.
    I have an attribute in logical model with binary datatype. As I generate physical, SQL DM putting the column in BLOB data type. I thought binary means 1 bit ON/OFF type.
    What is the interpretation?
    Thanks in helping us out.

    I thought binary means 1 bit ON/OFF typeYou can check mapping of logical type to native database types in "Tools>Types administration". Data Modeler comes with set of predefined logical type and their purpose is to cover all native types in supported databases.
    Nothing can stop you to change predefined types if you don't like them or/and to create your own types.
    In the case of "Binary" - it's introduced to cover "binary" type in MS SQL Server - it's sequence of bytes not bits or bit.
    Philip

  • FAILED TO FIND METHOD FOR HASH ...

    here is the trace of the pb... I hope that someone can help me.
    java.lang.IllegalStateException: Failed to find method for hash:5806955373774276652
         at org.jboss.invocation.MarshalledInvocation.getMethod(MarshalledInvocation.java:367)
         at org.jboss.ejb.Container.invoke(Container.java:742)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
         at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:534)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
         at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
         at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
         at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
         at $Proxy0.create(Unknown Source)
         at server.client.ClientCompteur.main(ClientCompteur.java:46)

    You must be asking the wrong forum.
    This is a forum dedicated to the Sun Java Studio Creator product.
    Try here: http://developers.sun.com/forums/
    -Alexis

  • Finder  method in Entity bean

    how many Finder method in Entity bean i can write ?
    look below...
    public Account findByPrimaryKey(AccountPK key) throws FinderException,
    RemoteException;
    public Enumeration findByOwnerName(String name) throws FinderException,
    RemoteException;here 2 finder methods are there.......i am asking how much freedom i have ? can write as many as finder method i wish ?
    say, findXXXX() ?

    my problem is on the signature of the find
    method.
    OK let me ask you some other way.
    java DOC says
    Each enterprise Bean has a home interface. The home
    interface must extend the javax.ejb.EJBHome
    interface, and define the enterprise Bean type
    specific create and finder methods (session Beans do
    not have finders).
    look it says " finder methods "....right .
    so i want to ask 2 question about this phrase . PLZ
    do confirm me whether i am right or wrong.
    fact 1. finder methods means you can write
    any method name which starts with word find
    and ONLY find
    Example: findABCD( ) , findEFGH(),
    findBLAHBLAH()...any thing starts with find[i]
    are called finder methods...others are NOT.
    is This fact correct ?
    Yes.
    fact 2. Is not it Strange that i need to
    append some letters after the word find to
    get a finder method name !! why not wrting a simple
    method name ( say abcdfgrty () instead of
    findXXXX() which will do the job ??You can... but it has to be called form a findXXXX() method :)
    As such there is no problem in writng a
    find_ANY_WORDS_HERE() to get a finder method but
    problem is why i need to stick to the word
    find and append some words after it
    t to get a finder method ? if i had to do it
    seriously then whats the role of the container ? how
    w it is linking ?Once someone takes the pain of going through the EJB specs, he would not have a problem. Imagine each vendor using his own brains and the developer getting bugged with new features in each AS. EJB specs are flexible enough already :)

  • Problem finding data in an Oracle Database using CMP beans

    I am having a problem retrieving data from an Oracle database that has a date as
    part of the key. This data was loaded into my database via a batch process writing
    in java using java.sql.Date to store the date information. When calling the findByPrimaryKey
    method of a CMP Entity Bean I continued to get the FinderException. I know this
    data is in my database because I can view the data via SQLPlus and Microsoft Access.
    Has anyone ever experience problems with CMP beans accessing data from an Oracle
    database that had a date as part if the key or with accessing data in the database
    that insert via another method outside of your CMP bean. I desperately need some
    answers.

    Hi Dave,
    You should probably post this type of question in the CMP or JDBC section
    for best results. Chances are that the date is suffering from a rounding
    problem (it could be a date/time in the database with a different time zone)
    or is not the date that you think it is (wrong century or millenium). I've
    seen both. You need to write a quick piece of code that loads in those
    values as both Java timestamps and dates and makes sure that they are what
    you think they are.
    Peace,
    Cameron Purdy
    Tangosol Inc.
    Tangosol Coherence: Clustered Coherent Cache for J2EE
    Information at http://www.tangosol.com/
    "Dave White" <[email protected]> wrote in message
    news:3c1a4ac3$[email protected]..
    >
    I am having a problem retrieving data from an Oracle database that has adate as
    part of the key. This data was loaded into my database via a batchprocess writing
    in java using java.sql.Date to store the date information. When callingthe findByPrimaryKey
    method of a CMP Entity Bean I continued to get the FinderException. Iknow this
    data is in my database because I can view the data via SQLPlus andMicrosoft Access.
    Has anyone ever experience problems with CMP beans accessing data from anOracle
    database that had a date as part if the key or with accessing data in thedatabase
    that insert via another method outside of your CMP bean. I desperatelyneed some
    answers.

  • How to implement find methods in CMP?

    As OC4J does not support EJB-QL, we need to implement the find methods by ourselves. But how? Here is my thought.
    1) Still declare the find methods in EJB home, such as
    public Collection findBySponsor(String sponsorGuid);
    2) Do not add query part to ejb-jar.xml file;
    3) In the bean class, implement the find method using JDBC code.
    Does CMP allows explicit-implementation of finder methds?
    Does CMP allows explicit-call to JDBC code?
    Thanks,

    Henry -- Why go to that trouble? For the near term I would suggest that you just modify the generated
    orion-ejb-jar.xml descriptors which will include tags to allow you to either 1) enter a partial criteria or
    2) enter a complete SQL statement. This is much less work and when EJB-QL is available with the product,
    then you have to only add the EJB-QL to the ejb-jar.xml.
    Thanks -- Jeff

  • Data types are not appropriate for Relationnal operation, strange error ?

    Hi,
    we try to connect send (thanks jdbc:odbc) a query contening a WHERE statment with date (a BETWEEN). Unfornately we received an error message (see title). We know that the field is in DateTime format (like mm/dd/yyyy hh:mm:ss aa).
    Is anybody able to find an issue to perform this relationnal operation ?
    Thanks

    Oooops I forgot,
    This is my Query
    String PatQuery="SELECT HelpDeskCases.\"Case-ID+\", HelpDeskCases.\"Assignee-Login-Name\", HelpDeskCases.\"Create-Time\", HelpDeskCases.\"Resolved-Time\" FROM HelpDeskCases WHERE HelpDeskCases.\"Create-Time\" >=" + ddeb + " AND HelpDeskCases.\"Resolved-Time\" <=" + dfin ;
    Regards

  • What type of data type would I use for this situation?

    I have a class which connects to Oracle, but each connection may be to a different database. Each database has it's own user name and password.
    I'd like to pass one key value and then the class would get the user name and password and url from that but not sure how to do it.
    Right now, for the function I pass it the url, username, password which then calls a connection function and passes it the same value. This seems messy keep passing values around.
    Is there some kind of enumerations or something ?

    You might consider putting the URLs, usernames and password into a properties file.
    The properties file might contain:
    all.databases=database1,database2,database3
    database1.user=user1
    database1.password=dingbat
    database1.url=jdbc:oracle:thin:dohdah:base1
    database2.user=someone
    database2.password=toad
    database2.url=jdbc:oracle:thin:xyx:dsds
    Then use ResourceBundle.getBundle() to load the properties and you can just do
    Connection con = DriverManger.getConnection(bundle.getString(key + ".url"),bundle,getString(key + ".user"), bundle.getString(key + ".password");

Maybe you are looking for

  • FCP 6 Buggy?

    Is there a list of confirmed bugs, and/or updates for FCP 6? I've searched the forums and haven't seen to many things on FCP 6 as of yet. I aoplogize in advance if someone has posted simalarly to my issues. We're at the tail end of a project, and upg

  • Contract Generation Localized Resouces ( SAP e-Sourcing 5.1)

    Hi, I am new to this community and was really motivated to put up my posts after seeing the responses on other questions. While uploading a contract in a master agreement, the contract document type (Contract, Amendment and Addendum) is given as drop

  • Detail rows not fetched in af:iterator for the first time

    Hi, I have a table with 3 columns. Column 3 is a detail record with column 1 being the parent. Column 3 is displayed in the table using af:iterator #{row.detailRows}. The detail records are created in a different page. When I add the detail records t

  • CR 8.5 to CR2008 migration problem

    I want to move from CR8.5 to CR2008.   I downloaded the trial and some reports will not work.  I get the following error: Failed to retrieve data from the database.  Details:  42000[TopSpeed Corp,][TopSpeed ODBC Driver] Expected lexical element not f

  • Design for Cash Management

    Hi All, I need some help with finding pros and cons of designing a Cash Management system. This current customer is planning to use a single, virtual company to manage it's entire global position. Reason: they don't want to recreate their entire comp