Display for a query objects creating complex

Hi all

I am trying to create a VO of inner query, but I can't understand what kind of binding variable to select.

PFB the scenario:
I have 2 tables, say orders, products
I'm supposed to run the following query:
Select * from orders o, p where o.order_id = 123 and p.product_id in (111,222,333...)

In the original Version when I'm trying to create, I need to create 2 bind variable
1 for the command id and one for the product id
the problem I am facing with is to select the type of the variable binding
I select "Integer" type for the variable binding command id, but I am able to understand what must be the type of liaison for the product id variable.
I tried to use the 'Picture' type, but in the query, it is "=: bindvariable ' operator instead of ' in (: bindvariable).

In addition, please note that the number of product_id is not fixed and is dynamic.

So my question is:
What should be the type of binding variable that should be used (by product_id case)?
In addition, please advice if it's how even to apply the criteria in the AMImpl class.

Thanks in advance.

Thank you
Varun

Varun,
It won't work because you cannot use bind variables in the queries IN sql.
Jobinesh has bloged a solution
http://jobinesh.blogspot.com/2010/12/using-oraclejbodomainarray-with.html and http://jobinesh.blogspot.com/2011/07/tips-on-using-oraclejbodomainarray-as.html
or my 'trick' explained here http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/ could help solve this problem.

Timo

Tags: Java

Similar Questions

  • Filter the table display of the query object (it can a bug in jdev 12)

    Hello:

    I found an error/bug possible in jdeveloper 12 c when I migrate my application of jdev 11g.

    To test this issue, I did the same test request in jdeveloper 11g and jdeveloper 12 c (to avoid to migrate the process).

    Project template

    -Create a display of the query object. Code:

    SELECT 1 CODE, 100 DESCRIPTION
      FROM DUAL
    UNION ALL
    SELECT 2 CODE, 200 DESCRIPTION
      FROM DUAL
    

    -Create a Module of the Application, and then drag this point of view in.

    ViewController project

    -Create a page and drag in the criteria named 'All searchable attributes' of the previous ViewObject as "ADF table filtered.

    -Run the application

    Results:

    On jdeveloper 11g, however it makes the filter above the table box in jdev not 12 c.

    Is this a bug or I need to select something in jdev12c to get the same functionality?

    Yes, known bug 17279781.  It is currently scheduled for a 12.1.4 fix.  If this issue is crucial to you, please file an SR, mentioning the bug number and indicate your reasons for wanting a fix as soon as possible.

    Note there is a solution:

    To work around the problem, you can configure the filter yourself by adding an af:inputText

    facet filter columns and bind the inputText property value to the EL

    #{vs.filterCriteria. }. The page to rerun the filter for

    the column look and work.

    CM.

  • Mapping and querying objects for Contact with REST Api

    Hi all

    We are hoping to get some details on the DataCard management defined via REST API. Our implementation goal is to create Contacts and add the custom for each Contact object or to be more precise, add a set of map data for each Contact.

    At the present time, to associate a map Data Set (or custom object) to an existing contact, we provide a suite of fields in the custom when creating custom object object:

    new CustomObjectField  
    {
                                                                    name = "MappedEntityType",
                                                                    dataType = Enum.GetName(typeof(DataType), DataType.numeric),
                                                                    type = "CustomObjectField",
                                                                    defaultValue = "0"
                                                                },
                                                             new CustomObjectField
                                                                {
                                                                    name = "MappedEntityID",
                                                                    dataType = Enum.GetName(typeof(DataType), DataType.numeric),
                                                                    type = "CustomObjectField",
                                                                    defaultValue = "<ContactId>"
                                                                }
    
    

    This is the right approach? This is based on the information provided here: http://topliners.eloqua.com/community/code_it/blog/2012/05/31/eloqua-api-how-to-mapping-a-data-card-to-an-entity.

    The REST API would query the CustomObjects using the MappedEntityId value for the subsequent updates? If so, pointers on how to approach that?

    Thanks to ad.

    The REST API does not support this.  With the upcoming release of Eloqua, you will be able to update the MappedEntityID, as a query it.

  • Creating a new workspace of object for a custom object

    Hello

    I have a problem with creating workspace object for my custom in the plugin object. I am trying to create something similar to 'chassis-rack' example that comes with the SDK. I added a new category of app and I want to display lists of the inventory of the various objects custom under him. For each custom object, I can see it has objects and its own properties. So I did everything as in the sample "chassis-rack". I am able to display lists of custom my objects. However, when I click on a specific object in the list, its workspace does not appear (although it is defined in plugin.xml), I get a blank screen with a message: "you don't have privileges to view this object, or there is not." I added two custom objects, and both behave the same way.

    I checked the newspaper and there is nothing interesting. I also have it debugged and discovered that "getData" function of the object DataAdapter recorded for these objects is not called when I click on the object in question, so I guess that the problem is linked to the workspace object, but I can not find or understand how I can find it.

    I'll be very grateful for the help.

    Here's my plugin.xml:

    <? XML version = "1.0" encoding = "UTF-8"? >

    < id = "com.emc.ecs.scaleioPlugin plugin"

    moduleUri = "Scaleiopluginui.swf" defaultBundle = "ScaleiopluginuiResources" > "

    < resources >

    < local resources = "en_US" >

    <! - relative path of the .swf resource generated by the build script - >

    < uri="locales/scaleio-plugin-ui-resources-en_US.swf"/ module >

    < / resource >

    < / resource >

    <!--==========================================================================

    ================================== General ===================================

    ==============================================================================-->

    <!-add "ScaleIO ECS' node in the view of the Virtual Infrastructure of the object

    Navigator. This category node is used below for the MDM group collection. ->

    < id = "com.emc.ecs.scaleioAppCategory extension" >

    < extendedPoint > vise.navigator.nodespecs < / extendedPoint >

    < object >

    < title > #{scaleioAppCategory} < /title >

    < parentUid > vsphere.core.navigator.virtualInfrastructure < / parentUid >

    < / object >

    < / extension >

    <!--==========================================================================

    ==================================== MDM =====================================

    ==============================================================================-->

    < id = "com.emc.ecs.mdm.objectType extension" >

    < extendedPoint > vsphere.core.objectTypes < / extendedPoint >

    < object >

    < types >

    < string > ecs:Mdm < / String >

    < / types >

    < label > #{mdmLabel} < / label >

    < labelPlural > #{mdmLabelPlural} < / labelPlural >

    icon <>#{mdmIcon} < / icon >

    < / object >

    < / extension >

    < templateInstance id = "com.emc.ecs.mdm.viewTemplateInstance" >

    < templateId > vsphere.core.inventory.objectViewTemplate < / templateId >

    < variable name = "namespace" value="com.emc.ecs.mdm"/ >

    < variable name = "objectType" value = "ecs:Mdm" / >

    < / templateInstance >

    < templateInstance id = "com.emc.ecs.lists.allMdm" >

    < templateId > vsphere.core.inventorylist.objectCollectionTemplate < / templateId >

    < variable name = "namespace" value="com.emc.ecs.mdmCollection"/ >

    < variable name = "title" value = "#{mdmLabel}" / >

    < variable name = "icon" value = "#{mdmIcon}" / >

    < variable name = "objectType" value = "ecs:Mdm" / >

    < variable name = value="com.emc.ecs.mdm.list"/ "listViewId" >

    < variable name = value="com.emc.ecs.scaleioAppCategory"/ "parentUid" >

    < / templateInstance >

    < id = "com.emc.ecs.mdm.list.sampleColumns extension" >

    < extendedPoint > com.emc.ecs.mdm.list.columns < / extendedPoint >

    < object >

    elements <>

    < com.vmware.ui.lists.ColumnContainer >

    com.EMC.ECS.MDM.column.IP < uid > < / uid >

    < dataInfo >

    < com.vmware.ui.lists.ColumnDataSourceInfo >

    < requestedProperties >

    < string > ip < / String >

    < / requestedProperties >

    intellectual property < sortProperty > < / sortProperty >

    < exportProperty > ip < / exportProperty >

    < /com.vmware.ui.lists.ColumnDataSourceInfo >

    < / dataInfo >

    < item >

    < mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    Ip address < headerText > < / headerText >

    intellectual property < dataField > < / dataField >

    < /mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < / component >

    < /com.vmware.ui.lists.ColumnContainer >

    < com.vmware.ui.lists.ColumnContainer >

    com.EMC.ECS.MDM.column.Type < uid > < / uid >

    < dataInfo >

    < com.vmware.ui.lists.ColumnDataSourceInfo >

    < requestedProperties >

    Type < string > < / String >

    < / requestedProperties >

    Type < exportProperty > < / exportProperty >

    < /com.vmware.ui.lists.ColumnDataSourceInfo >

    < / dataInfo >

    < item >

    < mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < headerText > MDM Type < / headerText >

    Type < dataField > < / dataField >

    < /mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < / component >

    < /com.vmware.ui.lists.ColumnContainer >

    < / object >

    < / object >

    < / extension >

    <!--==========================================================================

    ================================ MDM Cluster =================================

    ==============================================================================-->

    < templateInstance id = "com.emc.ecs.mdmCluster.viewTemplate" >

    < templateId > vsphere.core.inventory.objectViewTemplate < / templateId >

    < variable name = "namespace" value="com.emc.ecs.mdmCluster"/ >

    < variable name = "objectType" value = "ecs:MdmCluster" / >

    < / templateInstance >

    < templateInstance id = "com.emc.ecs.lists.allMdmCluster" >

    < templateId > vsphere.core.inventorylist.objectCollectionTemplate < / templateId >

    < variable name = "namespace" value="com.emc.ecs.mdmClusterCollection"/ >

    < variable name = "title" value = "#{mdmClusterLabel}" / >

    < variable name = "icon" value = "#{mdmClusterIcon}" / >

    < variable name = "objectType" value = "ecs:MdmCluster" / >

    < variable name = value="com.emc.ecs.mdmCluster.list"/ "listViewId" >

    < variable name = value="com.emc.ecs.scaleioAppCategory"/ "parentUid" >

    < / templateInstance >

    < id = "com.emc.ecs.mdmCluster.list.sampleColumns extension" >

    < extendedPoint > com.emc.ecs.mdmCluster.list.columns < / extendedPoint >

    < object >

    elements <>

    < com.vmware.ui.lists.ColumnContainer >

    com.emc.ecs.mdmCluster.column.name < uid > < / uid >

    < dataInfo >

    < com.vmware.ui.lists.ColumnDataSourceInfo >

    < requestedProperties >

    < string > name < / String >

    < / requestedProperties >

    < sortProperty > name < / sortProperty >

    name of < exportProperty > < / exportProperty >

    < /com.vmware.ui.lists.ColumnDataSourceInfo >

    < / dataInfo >

    < item >

    < mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < headerText > name < / headerText >

    < dataField > name < / dataField >

    < /mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < / component >

    < /com.vmware.ui.lists.ColumnContainer >

    < com.vmware.ui.lists.ColumnContainer >

    com.emc.ecs.mdmCluster.column.mode < uid > < / uid >

    < dataInfo >

    < com.vmware.ui.lists.ColumnDataSourceInfo >

    < requestedProperties >

    mode of < string > < / String >

    < / requestedProperties >

    mode of < exportProperty > < / exportProperty >

    < /com.vmware.ui.lists.ColumnDataSourceInfo >

    < / dataInfo >

    < item >

    < mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < headerText > Mode < / headerText >

    mode of < dataField > < / dataField >

    < /mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < / component >

    < /com.vmware.ui.lists.ColumnContainer >

    < / object >

    < / object >

    < / extension >

    < id = "com.emc.ecs.mdmCluster.objectType extension" >

    < extendedPoint > vsphere.core.objectTypes < / extendedPoint >

    < object >

    < types >

    < string > ecs:MdmCluster < / String >

    < / types >

    < label > #{mdmClusterLabel} < / label >

    < labelPlural > #{mdmClusterLabelPlural} < / labelPlural >

    icon <>#{mdmClusterIcon} < / icon >

    < / object >

    < / extension >

    < / plugin >

    Thanks for your help, laurentsd. I think that I managed to find the problem (actually, it looks like some sort of bug).

    I think there is a problem when the word "cluster" appears in the object type, because when I changed the type of the object to "ecs:mdmCluster" to "ecs: something ' in all places where it appears, everything started working. I'm sure that if collect you chassis and change the type "samples: chassis ' in ' samples: Cluster ', you will get the same problem I experienced. In any case, my problem is already solved.

  • Cannot display the trust policy custom created for attestation the attestation procedure level

    Cannot display the trust policy custom created for attestation the attestation procedure level

    Find the file updated for more information.

    Hi Pradeep and Fatih,

    This is no bug. I can only imagine without detailed information about the procedure of custom clearance and approval workflow custom.

    But each attestation procedure has an assigned table that defines what data will be documented, for example UNSAccountInUNSGroup. An Identity Manager can only assign strategies of the attestation procedure where each step of the approval workflow contains an approval procedure where the picture of the Attestation procedure is in the list of assigned to this approval process approval. (See screenshot) Verify that approval in your approval workflow steps are aligned to this requirement.

  • Animation of Instances of an object created by a For loop

    I ' v been playing with this for a few weeks now and I will try to find the best way to animate multiple instances of an object created by looping through an ENTER_FRAME function. When the function runs only 1 of 3 instances created comes alive.

    var balloonArray:Array = new Array();
    var ball: hotAirBalloon;
    var xVel: number = - 3;
    yVel var: number = - 4;

    addEventListener (Event.ENTER_FRAME, startBalloons)

    for (var i: int = 0; i < 3; i ++)
    {
    ball = new hotAirBalloon;
    addChild (balloon);
    balloonArray.push (balloon) / / tried to push the bodies into an array
    setBalloons();
    }

    function setBalloons (): void
    {
    Balloon.x = randomRange (200, 400);
    Balloon.y = randomRange (400, 550)
    balloon.scaleX = balloon.scaleY = randomRange (0.3, 1);
    }

    function startBalloons(evt:Event):void
    {
    Balloon.y += yVel / / this anime only one instance

    Balloon.x += xVel
    }

    I also tried to push the object in a table in the loop and with the help of this balloonArray [i] there += yVel in the ENTER_FRAME function and I get an error message indicating that a term is not defined. I know there is a simple way to do this. Thank you.

    using splice(i,1) works well to remove the array ith element.  generally, you should browse paintings of late start if you remove elements from an array in a loop for.

  • Create a business for a maintenance object object

    Hello

    I want to create a business for a maintenance object object change all XML attributes to XML elements.
    Should I have to change the whole XML schema attributes to the elements one by one?

    For example, I create the business CM_Person_BO for the purpose of maintenance person object and use the business object to add a user in a more standard way.
    But it is a very important job to rewrite the entire schema for the maintenance person object, which has the rest of the elements that are PersonIdentifiers, PersonNames, PersonPhones, PersonCharacteristics, person and SeasAddress.

    Is there an easy way to do it?

    Thank you
    Kerr

    Should I have to change the whole XML schema attributes to the elements one by one?
    Is there an easy way to do it?

    Unfortunately no, you need to set the schema with each element/field, once. The main objective is to create a version of the BO with only the required fields or a subset of available fields, should you not all fields in a month. This improves performance because the IO is made only for the fields specified in the BO.

    You can define areas of separate data for the context of the purpose of each person, i.e. identifiers, names, phones, etc. and include (includeDA) in the Soundtrack of the person (CM_Person_BO) for clarity.

  • Two criteria in mind: one for af:query, second with bind var, both use same result table

    JDeveloper 12.1.2

    I have two display criteria, VC1 and VC2 are based both on the same VO. For example, let's say that I have used VO

    SELECT Employees.EMPLOYEE, Employees.EMPLOYEE_ID, Employees.FIRST_NAME, Employees.LAST_NAME, Employees.DEPARTMENT_ID

    Employees;

    Let this be VC1:

    SELECT * from (SELECT Employees.EMPLOYEE, Employees.EMPLOYEE_ID, Employees.FIRST_NAME, Employees.LAST_NAME, Employees.DEPARTMENT_ID

    EMPLOYEES employees ) QRSLT WHERE 1 = 2


    Used for af:query


    So let's say I have VC2 with bind variable


    SELECT * from (SELECT Employees.EMPLOYEE, Employees.EMPLOYEE_ID, Employees.FIRST_NAME, Employees.LAST_NAME, Employees.DEPARTMENT_ID

    EMPLOYEES employees ) QRSLT WHERE 1 = 2 AND ((UPPER (QRSLT. Department_id) = UPPER(:DeptIdBind))) )

    The user runs the af:query research and resulting table lists some employees. The last value of the column in the table of results, I did as links:

    < af:column headerText = 'Department' id = "c1" width = "140" >

    < af:link shortDesc = "#{bindings.myVO.hints.DepartmentId.tooltip}" id = "ot4" text = ' #{row. "" DepartmentId}'

    action = "#{backingBeanScope.MyBean.byDept}" partialTriggers =": t1" / >

    < / af:column >

    If the user now clicks on the link, I would expect the following:

    1. the values entered in the af: query to stay

    2. the table refreshes since the underlying VC2 is defined and executed VO. Here is the code VOImpl and backingbean

    The bean of support code

    public String byDept() {}

    Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCIteratorBinding dcItteratorBindings = bindings.findIteratorBinding("EmployeesIterator");

    Line r = dcItteratorBindings.getCurrentRow ();

    Object keyvar = r.getAttribute ("DepartmentId");

    OperationBinding searchExp = ADFUtils.findOperation ("searchByDept");

    searchExp.getParamsMap () .put ("deptId", keyvar);

    searchExp.execute ();

    Returns a null value.

    }

    Impl VO

    {} public void searchByDepartment (String deptId)

    setDeptIdBind (deptId);

    executeQuery();

    }

    Problem:

    Query (VC2) runs but table does not reflect that. That is to say I don't see the list of employees of the selected Department

    Any idea?

    RPP = partial page request

    PPR refresh a component jsf

    AdfFacesContext.getCurrentInstance () .addPartialTarget (UIComponent);

    Where component is the component that you want to refresh.

    Have you checked that the query executed vc ID?

    Timo

  • How can I get several hyperlinks to display in the query output?

    I uses two tables to list all a school sport teams. The table of sport lists all team data aggregated by gender. The second table uses the sportID of the first table to associate a team calendar.  The problem is not all the teams do not have a calendar.

    I'm trying to post a link to these teams with schedules. I compare the two tables, the sport and the calendar and a CFIF statement allows to compare the 2 sportIDs in the output to determine the teams who have a schedule.  If the two sportIDs corresponds to a hyperlink is displayed.

    Unfortuanetely, only one link will be displayed, even if there should be three links. Here is my code:

    Table to display aggregated by gender teams

    "< name cfquery ="getSports"datasource =" #application.database # "" >

    Choose between the sexes, team, levels, sportID

    sports

    Group sex, team, levels, sportID

    < / cfquery >

    Table used for the sportID of already created calendars

    < name cfquery = "getID" datasource = "#application.database #" >

    Select sportID

    annexes

    SportID group

    < / cfquery >

    I then compare the sportIDs and if they match, I then display a hyperlink

    "< cfoutput query ="getSports"group 'sex' = >"

    < h1 "> teams #gender < / h1 >"

    < ul >

    < cfoutput >

    < li >

    < cfif getID.sportID EQ getSports.sportID > <a href = "teams.cfm? sportID = #sportID #" >< / cfif >

    #team # < cfif levels GT "" >(#levels#) < / cfif > //levels is used to differentiate the J.V. and Varsity. "." Usage levels not all of the teams

    < cfif getID.sportID EQ getSports.sportID > </ a >< / cfif >

    < /li >

    < / cfoutput >

    < /ul >

    < / cfoutput >

    How can I get the other teams to display their links?

    Thank you gentlemen, since everyone was suggesting an outer join, I took out my trusty Manual of ColdFusion and learn about them. I've added the sum() for the query:

    Select sports.gender, sports.team, sports.levels, sports.sportID, sum (schedules.sportID) AS expected

    sports

    opening hours of the outer join left on sports.sportID = schedules.sportID

    Group of sports.gender, sports.team, sports.levels, sports.sportID

    So add the following to the output:

    And everything works perfectly. Once again, life is beautiful!

  • listen to objects created by addChild

    Hi, I created a function 'for' who ´ll display X number of buttons with addChild, and give a name to each using button.name = 'name' + variable

    but later if I want to listen to the buttons using their name Don t of work, already know that there is no getChildByName then I tried but gives me the same error that doesn't say that there no object with that name. My question is, how can I listen for objects created if I already have a name for each of them?

    Here's the code im doing.

    for (var i: int = 1; i < 6; i ++)
    {
    var miBoton:boton = new boton();
    var miTexto:TextField = new TextField();
    miBoton.x = i * miBoton.width + (i * 10);
    miBoton.y = 20;
    addChild (miBoton);
    miBoton.name = "button" + i;
    miTexto.text = 'hi. '
    miBoton.addChild (miTexto);
    trace (miBoton.Name);
    trace (miBoton.parent);
    }

    Thank you.

    The name is a string, so try to use (note the parenthesis moved as well):

    getChildByName("boton1").addEventListener (MouseEvent.CLICK, mOver);

  • Cannot exit not request CFC, even if it is a query object

    I try a query from a CFC for output, but I keep getting a "complex object types cannot be converted to simple values.".

    Here is the code:

    promoManager.cfc

    < cfproperty displayname = "promoManager" >

    < cffunction name = "init" returntype = "promoManager" index = "Initialize the controller" >
    < name cfargument = "dsn" type = "string" required = "yes" >
    < cfset variables.dsn = arguments.dsn >
    < cfreturn this >
    < / cffunction >

    < cffunction name = returntype "getPromotions" = "query" >
    < cfset var qGetPromotions = "" > "".
    < name cfquery = "qGetPromotions" datasource = "#variables.dsn #" >
    SELECT promoID, promoName, code promo, promoDesc, promoFromDt, promoToDt, introDiscount, proDiscount, execDiscount, premDiscount
    PROMOTIONS
    ORDER BY promoName
    < / cfquery >
    < cfreturn qGetPromotions >
    < / cffunction >

    < / cfproperty >

    test.cfm

    < cfset promoManager = createObject("component","cfcs.promoManager").init (attributes.dsn) >

    #IsQuery (promoManager.getPromotions ()) < cfoutput > # < / cfoutput > < /p > <-this outputs YES

    < cfset getPromotions = promoManager.getPromotions () >

    < p > < cfdump var = "#getPromotions #" > < / p > <-it export a query object

    < cfoutput query = "#getPromotions #" > here < br / > < / cfoutput > <-WHAT AN ERROR!

    TIA

    It works if you omit the sharps in the query attribute value ( )?

  • Calculation of the number of rows in the query object

    Hi all
    I have a question:

    Is there a way to get the number of rows in a query object without running it twice?
    I need this for a calculation of total pages.
    I can't do something like:
    "SELECT COUNT (e) FROM employee e"
    because I have a WHERE clause in my expression.

    Thank you

    I don't think I've had this a simple that you would like to, but I was able to reuse the same query named to account real pagination queries request.

    I defined a named query:

            @NamedQuery(name = "Employee.findByNames", query = "select e from Employee e WHERE e.firstName LIKE :FNAME AND e.lastName LIKE :LNAME AND e.gender = :GENDER ORDER BY e.lastName, e.firstName")
    

    Now in the app, I can create an instance of the query for this named query and fill in the parameters using the:

            Query query = em.createNamedQuery("Employee.findByNames");
            query.setParameter("FNAME", "%");
            query.setParameter("LNAME", "%");
            query.setParameter("GENDER", "M");
    

    If I run this query I get all the lines, but instead, I'd like to create an account using the underlying native API query

            ReadAllQuery raq = JpaHelper.getReadAllQuery(query);
            ReportQuery reportQuery = new ReportQuery(raq.getReferenceClass(), new ExpressionBuilder());
            reportQuery.setSelectionCriteria(raq.getSelectionCriteria());
            reportQuery.setOrderByExpressions(raq.getOrderByExpressions());
            reportQuery.setShouldReturnSingleValue(true);
            reportQuery.addCount();
            Query countQuery = JpaHelper.createQuery(reportQuery, em);
    
            countQuery.setParameter("FNAME", "%");
            countQuery.setParameter("LNAME", "%");
            countQuery.setParameter("GENDER", "M");
    
            int count = ((Number)countQuery.getSingleResult()).intValue();
    

    Then, for each page of entities wanted the original query is executed as:

            query.setFirstResult(0);
            query.setMaxResults(5);
            List emps = query.getResultList();
    

    Doug

  • I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I had created a slideshow of practice and the background image was not displayed as an image in itself. How to

    I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I have created a slideshow of practice and the background image was not displayed as an image in itself. How to make it behave?

    Another approach, perhaps a little more elegant (?). Create a collection that includes images for the slideshow. Include the background image in the collection. Drag the background image in the Panel to designate. Then, remove this image from the collection and create the slide show. I just tried and it works, too.

  • partial output displays only SQL query.

    Hello

    When I tried to view a display of the query source code, I am able to see the partial only as output below.

    SQL > select text from user_views where view_name = "ABC";

    TEXT
    --------------------------------------------------------------------------------
    SELECT the region
    product_director,
    plan_year,


    where the text should be about 200 lines. Is this a problem of settings... ? . Waiting for your response.

    Kind regards
    Bharath

    Published by: user12026039 on July 6, 2011 12:17 AM

    Maybe this would help

    Sqlplus and column display long data type

  • Canvas, click events for the child objects

    I am trying to record an event for each child object.
    and I use the following code

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=events_08.html
    in the part of the examples (second example)

    However, I am dynamically add custom Image objects extended and when click on a displayed Image and check for its type if its correct type, it would just return false.
    Alert.Show ((event.target_est_dans_MyAClass).toString ());

    When clicking on one of the children is opposed and display the event.target.name and it's just also displays a silly 'FlexLoader74' or whatever number. Somehow, it loses its properties or the type of the object.

    Is there something that I am missing?

    The loaded image, you click on IS what would return with event.target. It is added to your image class extended as a child of this class. So it's probably that you want to do:

    Alert.Show ((event.target.parent_est_dans_MyAClass).toString ());

    Keep in mind that if EMBED you your images in your image personalized instead compile-time class, then you can check for this as you did before:

    Alert.Show ((event.target_est_dans_MyAClass).toString ());

    TS

Maybe you are looking for