How to check the table existence in JPA

1) is there a way I can check for existence of the table using JPA, before I read the rows.
2) If I want to create two tables with same columns (name, time), Should I create two entity objects to insert? is there a way to use one enity class and specify a table to insert ?
thanks
Vamshi

Try this:
function findNodes(vNode){
     if (vNode.className === "field"){
          if (vNode.isPropertySpecified("name")===true){
               var myStateName=new RegExp(vNode.name);
               var returnValue = GFL.search(myStateName);
               if (returnValue!=-1){
                    this.ui.oneOfChild.border.fill.color.value="192,192,192";
                    this.access="readOnly";
               else{  
                    this.ui.oneOfChild.border.fill.color.value="255,255,255";//whatever colour is open access
                    this.access="open";
     for (var a=0;a<vNode.nodes.length;a++){
          findNodes(vNode.nodes.item(a));
findNodes(xfa.form);
Kyle

Similar Messages

  • How to check the tables we have created in JDBC??

    I have created a table called COFFEE2 in a datasource called temp which is in SQL server...How to check the table values??
    i went into administrative tools and odbc cource then i could see the data source i have created but how to see the table??
    Can anyone help??
    thanx

    Hmm.. not sure that I understand the problem.
    Call getConnection on the DataSource, and then execute the select query on the connection.
    Kaj

  • How to check the tables

    Dear experts!
    Thank you for your attention!
    I have studied the SAP SD for half a year, though I still don't know how to check certain table like:
    KNVS---customer master shipping data
    KNBK---customer master (bank detail)
    ADR---address table
    ect.
    could somebody help me?
    Best regard!
    Tangdark

    Hi Tang,
         SAP SD having lot of tables but i am telling main tables.
    VBAK   - Sales Document Headerdetailes
    VBAP   - Sales Document Itemdetailes
    VBEK   - Sales Document Scheduline data
    LIKP      - Delivery Header Detailes
    LIPS      - Deliver Item Detailes
    VBRK    - Billing Header Data.
    VBRP    - Billing Item Data.
    VBFA   - Sales Document Flow
    VBUK   - Sales document header status data
    VBUP   - Sales document item status data.......ctc.
    Regards
    Rajendra

  • How to check the field existence in a string at Header level?

    Hello,
    I have a bunch of fields on my_form, just for example here in this posting I am using US state names ....., say for example,
    I have 3 fields, their names are as below
    1) NY,
    2) CA, 
    3) TX
    I placed a hidden a text field, its name is GFL (i mean, Grey Fields List), am using this GFL for my programming purpose
    From the back end (in our case, its an ERP -SAP) am populating/filling this GFL field, say for example.... its data looks like, CA TX (i mean, am concatenating the state names with a seperation of a space)
    ( FYI.....Already i have some JS piece in my_form INITIALIZATION and docReady events for some other purposes)
    Now, my requirement is as below,
    1) LOOP all the FIELD objects (here they are as State names) of my_form , then check whether their name (NY) existing in GFL's data..........if exisitng (in our case, its not existing) pls. greyed out with readOnly.......... if not existing
    (in our case, its not existing)   then skip the coloring and readOnly, go to next loop / iteration / state / Field
    Actually, i can achieve my requirement by putting JS in each field objet's INITIALIZATION event itslef as below, (but, i have around 200 feilds in my_form, hence i would like to put at HEADER level by generically looping all the field objects in my_form in one piece of code),
    var myStateName = /NY/;
    var returnValue = GFL.search(myStateName);
    if(returnValue != -1){; // This state/field/object is found in the Grey Fields List, hence greyed out with readOnly
    this.ui.oneOfChild.border.fill.color.value = "192,192,192";
    this.access = "readOnly";
    For some other requirement one of expert has provided the below JS in these forums, as below
    function findNodes(vNode) {
        if (vNode.className === "field") {
                       if (vNode.isPropertySpecified("name") === true) {
                                      if (vNode.getAttribute("name").search(/_U$/g) !== -1) {
                                          // Script to execute, when a match was found
        for (var i = 0; i < vNode.nodes.length; i += 1) {
            findNodes(vNode.nodes.item(i));
    findNodes(xfa.form);
    Actually, I tried to change the above JS as per my requirement, but its not working, pls. provide me correct JS as per my requirement
    Thank you

    Try this:
    function findNodes(vNode){
         if (vNode.className === "field"){
              if (vNode.isPropertySpecified("name")===true){
                   var myStateName=new RegExp(vNode.name);
                   var returnValue = GFL.search(myStateName);
                   if (returnValue!=-1){
                        this.ui.oneOfChild.border.fill.color.value="192,192,192";
                        this.access="readOnly";
                   else{  
                        this.ui.oneOfChild.border.fill.color.value="255,255,255";//whatever colour is open access
                        this.access="open";
         for (var a=0;a<vNode.nodes.length;a++){
              findNodes(vNode.nodes.item(a));
    findNodes(xfa.form);
    Kyle

  • How to check the database existence using java.

    Hi All,
    I need to know if a database exists or not using DB2 sql statements. Is there any sql to find that.
    Thanks in advance

    try to connect to the database. if it is possible, the database exists - if not - well there may be a number of reasons, but if your database URL is correct, your network is ok and your database engine is running, the database is not existent.

  • How to increase the table space for a particular table?

    Hi Friends,
    I want to know how to increase the table space for a particular table and how to check the table space size of a particular table. Please can any one send the SQL Script. I am very much poor in DBA Part.
    Thanking You ..
    Kiran

    Kiran - you should post this question on the SQL/Database forums - this is a Forms specific forum...
    Regards
    Grant Ronald
    Forms PRoduct Management

  • How will check the space taken by a single table in a tablespace ?

    How will check the space taken by a single table in a tablespace ?
    dba_segments is giving the same values even if I truncate the table?
    Pls reply

    I need to know how can we find out the size of the table in the tablespace.use user_segments (bytes) column.
    How much bytes it has taken ?value from user_segments, bytes column
    If u delete records will the space be used for another table in same tablespace?No, it keep the space in the same table for future usage.
    How can we free that space ?truncate or drop the table and reduce the size from tablespace, if you want to reclaim the space from the tablespace, OS level.
    Jaffar

  • How to check the records in Master Data Table?

    Hi,
       I am trying to load the Master Data Table using the Flat File.Now how to check the records in Master Data Table?
    I done the following way:
    Info Provider->Info Object->Right Click->Display Data or Maintain Master Data
    But it's not showing the records.It's asking like CID from......To......
                                                                        CID(SID)from.............To.......
                                                                         here CID means customer id(characteristic).
    and showing some settings.
    Please guide me.
    Thanks & Regards

    Hi Sri,
    Go to T- code RSD1 and type your info object name and open the P- table in the infoobject then select execute symbol to see the updated  data in to master data info object.
    regards
    sap

  • How to check the value in Table CDPOS

    Mostly I can't see the following fields value in the table CDPOS,
      (1) CDPOS-VALUE_NEW
      (2) CDPOS-VALUE_OLD
    In fact, it should have values, so how to check the values, is there any special method needed?
    Thanks and best regards.

    Ferry Lianto,
    Thank you very much for your expertise.
    It's helpful to get some contents via FM:CHANGEDOCUMENT_READ_POSITIONS, the problem is, to some kind of DELETION operation, the log in table CDPOS is very simple, I still don't know which contents were deleted even though I found records in table CDPOS.
    Is there any other suggestions?
    Thanks and best regards.

  • How to check the Statistics generated for a table through DBMS_STATS.

    Hi,
    How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
    Please let me know.
    Thanks !
    Regards,
    Rajasekhar

    Rajasekhar wrote:
    Hi,
    How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
    Please let me know.
    Thanks !
    Regards,
    Rajasekharquery ALL_TABLES

  • How to check the material consumption using tables

    Hi,
    I would like to know how to generate or view the material consumption at table level. Can anyone please specify the transactions codes and tables names how to check the consumption of material. I also like to know how to analysis the consumption of material between components and finished material. Please provide me the step by step wise how to do.Thanking you
    Regards,
    Sivaji Kumar Madhu Kiran

    You can calculate material consumption in table MSEG. you will need to segregate the material documents based on movement types and then add or reduce the quantities of each material document. for example a material document with movement 101, add the quantity for the material, and when there is a issue material document like 201 or 221 reduce the quantity from the material stock.

  • How to check the data of an archived table.

    I have archived a table created by me. I have executed the write program for the archiving object in SARA. Now how can check the data of my archived table.

    Hello Vinod,
    One thing to check in the customizing settings is your "Place File in Storage System" option.  If you have selected the option to Store before deleting, the archive file will not be available for selection within the delete job until the store job has completed successfully.
    As for where your archive file will be stored - there are a number of things to check.  The archive write job will place the archive file in whatever filesystem you have set up within the /nFILE transaction.  There is a logical file path (for example ARCHIVE_GLOBAL_PATH)where you "assign" the physical path (for example UNIX: /sapmnt/<SYSID>/archivefiles).  The logical path is associated with a logical file name (for example ARCHIVE_DATA_FILE_WITH_ARCHIVE_LINK).  This is the file name that is used within the customizing settings of the archive object.
    Then, the file will be stored using the content repository you defined within the customizing settings as well.  Depending on what you are using to store your files (IXOS, IBM Commonstore, SAP Content Server, that is where the file will be stored. 
    Hope this helps.
    Regards,
    Karin Tillotson

  • How to check the progress of statistics gathering on a table?

    Hi,
    I have started the statistics gathering on a few big tables in my database.
    How to check the progress of statistics gathering on a table? Is there any data dictionary views or tables to monitor the progress of stats gathering.
    Regds,
    Kunwar

    Hi all
    you can check with this small script.
    it lists the sid details for long running session like
    when it started
    when last update
    how much time still left
    session status "ACTIVE/INACTIVE". etc.
    -- Author               : Syed Kaleemuddin_
    -- Script_name          : sid_long_ops.sql
    -- Description          : list the sid details for long running session like when it started when last update how much time still left.
    set lines 200
    col OPNAME for a25
    Select
    a.sid,
    a.serial#,
    b.status,
    a.opname,
    to_char(a.START_TIME,' dd-Mon-YYYY HH24:mi:ss') START_TIME,
    to_char(a.LAST_UPDATE_TIME,' dd-Mon-YYYY HH24:mi:ss') LAST_UPDATE_TIME,
    a.time_remaining as "Time Remaining Sec" ,
    a.time_remaining/60 as "Time Remaining Min",
    a.time_remaining/60/60 as "Time Remaining HR"
    From v$session_longops a, v$session b
    where a.sid = b.sid
    and a.sid =&sid
    And time_remaining > 0;
    Sample output:
    SQL> @sid_long_ops
    Enter value for sid: 474
    old 13: and a.sid =&sid
    new 13: and a.sid =474
    SID SERIAL# STATUS OPNAME START_TIME LAST_UPDATE_TIME Time Remaining Sec Time Remaining Min Time Remaining HR
    474 2033 ACTIVE Gather Schema Statistics 06-Jun-2012 20:10:49 07-Jun-2012 01:35:24 572 9.53333333 .158888889
    Thanks & Regards
    Syed Kaleemuddin.
    Oracle Apps DBA
    Mobile: +91 9966270072
    Email: [email protected]

  • CIN: How to check the material document posted without excise invoice

    Hi Guru,
    Please advise how to check the material document posted without excise invoice.
    I have tried tcode J1I7 but it seems start to collect the excise invoice first and then material document.
    But my case is to find the material document WITHOUT excise invoice for internal tracking purpose.
    At the moment we start from tcode MB51 to get the list of material document and check in J_1IEXCHDR / J_1IEXCDTL
    Best regards,
    Pakorn

    Hi,
    Try creating a Query in Tcode SQVI by combining tables MKPF and J_1IEXCHDR/J_1IEXCDTL for your requirement.
    Check these threads how to create Query.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6018c1ae-8c44-2d10-6ea9-c3fad2c82880?QuickLink=index&…
    http://ptgmedia.pearsoncmg.com/images/9780672329029/samplechapter/0672329026_CH03.pdf
    Regards
    Binoy

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

Maybe you are looking for

  • Input Textfields not working in fullscreen mode

    Input Textfields not working in fullscreen mode any one help me.

  • Delete bootcamp partitions

    Hi. How i can remove bootcamp partitions?. I have three partitions: Macintosh, linux swap, and ms partition (is debian really). I need the disk space for Macintosh partition. Thanks in advance. Félix.

  • Help! my nano won't turn on!

    i tried using my nano the other night, and it wouldnt turn on, which was strange because it was turned off, so ive been looking up how to fix it, and it says to restart it, but it wont do that, and its not the hold thing, im not sure what the problem

  • Why does SQL Developer insist on opening up the package header?

    When expanding a package (clicking the '+') SQL Developer keeps opening up the package header (at least the first time you click it). I'm very rarely interested in viewing the header and it's annoying to have all those tabs open.

  • Animation Background Changes/Differs

    When I import .gif animations with a clear (white) background, it frequently changes to a BLACK background. The image saves successfully but it's during the import when it switches. Any ideas why? Chuck