How resource intensive is UIWebView?

I need some variable text formatting while displaying a string. Unfortunately UITextView applies properties to the ENTIRE string.
I am thinking about using UIWebView to format the string with HTML. I will need many UIWebViews though, because they will be subviews of cells that are contained in in a table view. I'm worried about UIWebView being too heavyweight to use in this scenario. Does anyone have advice?

Actually, it doesn't appear possible to embed a UIWebView in a subclass of UITableViewCell. When scrolling the UITableView, the UIWebView does not update correctly.

Similar Messages

  • Is opportunity to resize images resource-intensive?

    Hello to ALL!!!
    I'm trying to make a site with image gallery(for example -
    pets).And I've thought about optimal size of full image. I've
    chosen 640x480. And I'm going to use <imageresize> command
    for images greater than 640/640. But I don't know(in practice) is
    it a good idea to give opportunity to people to resize their images
    with code of my site? I mean how resource-intensive this process
    for a server? And what will happen if for example 500 people will
    want to make "resize operation" at the same time?
    Thank you for your coments/answers!

    if you are seriously going to have 500 people resizing at
    once, I would
    suspect you might have issues.
    But for just average occasional uploads, you should be fine.
    In my work so far with simple or even large batch resizing, I
    have not
    seen any major drag.
    In fact I am overall very impressed with the speed and
    quality of image
    resizing in CF8.
    a bit OT:
    here's a post about some code i've been working on for
    batch-resizing in
    multiple folders, coupled with a jquery photo gallery ... if
    you *or any
    other cf users* are interested, I am looking for testers
    http://www.miuaiga.com/index.cfm/2008/10/14/CF-Gallery-Creator--jQuery-Slider-Gallery
    Michael Evangelista, Evangelista Design
    Web : www.mredesign.com Blog : www.miuaiga.com
    Developer Newsgroups: news://forums.mredesign.com

  • Iterator resource intensive?

    Hi guys,
    My code is below:
    HashMap documentMap = new LinkedHashMap();
              for (Iterator it = folderInfoMap.keySet().iterator(); it.hasNext();) {
                   String key = (String)it.next();
                   FolderInfo folderInfo = (FolderInfo)folderInfoMap.get(key);and I has been using iterator to loop thru all the Collection object many years. However, some joker in my office telling me that I shouldn't use iterator as it's resource intensive. he asked me to use for loop like below instead:
    for(int x=0;x<documentMap.size();x++{
    documentMap.get(x);
    }and he said that the for loop is much lesser in using resources. Any ideas?
    or we should convert collection to array then loop it thru like this link mention:
    http://www.exampledepot.com/egs/java.util/coll_GetArrayFromVector.html
    please help, Thanks !
    Thanks & Regards,
    Mark

    It's not a traversal.
    It's a way of describing algorithmic complexity, i.e. the running time of algorithms, ignoring constant factors, i.e. concentrating only on the 'order' of the variables. The big O stands for 'order'. For example, bubble sort is an O(N**2) operation and is therefore avoided: decent sorting algorithms are O(N*log(N)) which gives them a better growth factor as N increases.
    In your case, direct access to a HashMap is independent of the number of entries so it is described as an O(1) operation ('an operation of order 1'). Direct access to an element of a linked list takes time proportional to the length of the list, N, so it is an O(N) operation. Traversing a LinkedHashMap requires N operations of O(N) each so it is O(N**2) or 'order N squared'.
    The time to do an O(1) operation is constant.
    The time to do an O(N) operation is a multiple of N.
    The time to do an O(N**2) operation is a multiple of N squared.
    So you can see how your Iterator code stacks up against the office joker's for N=1, 2, 4, 8, ... 32768, 65536, ... Every time you double N, yours doubles in time, his quadruples, because of N versus N squared.

  • Top resource intensive processes on AIX/Unix/Linux

    top is good to find this out, topas on aix, any other tips to find out memory/IO resource intensive processes, here i have for cpu....
    oracle:tulpfsd01$ ps -e -o pcpu -o pid -o user -o args | sort -k 1 | tail -5r
    %CPU PID USER COMMAND
    1.1 1230914 oracle oraclepwpd (LOCAL=NO)
    0.9 1248744 oracle oraclepwpd (LOCAL=NO)
    0.9 1099146 oracle oraclepwpd (LOCAL=NO)
    0.6 503688 oracle oraclepwpd (LOCAL=NO)
    0.5 1239486 oracle oraclepwpd (LOCAL=NO)

    Generally, memory shouldn't be a concern. The total amount of SGA is set (fixed) with SGA_MAX_SIZE and occupies shared memory (to be seen with 'ipcs')
    The PGA is set by PGA_AGGREGATE_TARGET, but is only a rough pointer for oracle. Additional information about memory is seeable with pmap (alt least on linux and solaris)
    You'll see the loaded shared libraries (which are used by the process in a shared matter, so not any process which uses libraries copy their own versions, and you should be able to identify the shared memory (identified with shmid=0xsomething) etc. On linux /proc/<pid>/maps shows the same in a little different way.
    Now we've established that the shared libraries are used shared to preserve memory, and the shared memory is used shared (quite obviously), and 'put' into the process' address space, you should understand why listing VSS (virtual set size) and other memory stuff isn't very helpful: if you just add all listed used memory, there are much components which are not really used by that process.
    Top and topas are helpful for finding CPU intensive processes. That is what both are designed for, to be able to identify the processes which are using the most slices of processor time. Of course, it's only helpful if you truly want to identify top CPU intensive processes. This is also quite easy to find inside the database.
    IO: there's no way to identify processes which are the most intensive writers. Simple because linux doesn't keep statistics about it. Inside the database, it's easy to find (guess you should need an example of that?) please mind you should be aware how the database works: a user process does no writing, it's the logwriter, checkpointer and database writer who does that. The user process only reads.
    I will see if I can find some nmon examples tomorrow, when I've got access to AIX systems.
    If you still want examples, could you be specific?

  • SAPScript: How to INTENSITY in a specific line?

    Dears,
    In my forms i need to intensity the specific line of the window.
    Now I knew use
    /: BOX INTENSITY 10
    to intensity the whole window,           But how to intensity a specific line?
    Thanks a lot.
    Sincerely,
    Julie

    Hi,
    write a BOX statement in the SCRIPT at the position where you want to intensify.
    Suppose your window dimentions are
                                 Left margin: 2 CH
                                 Uppar margin: 10 LN
                                 Width      : 60 CH
                                 Height:  20 LN
    and you want to intensify at
                                 Left margin: 2 CH
                                 Uppar margin: 15 LN
                                 Width      : 60 CH
                                  Height:  1 LN
    write the box statement with above dimensions and intensity.
    Regards,
    Sandeep.

  • How resource files(.rc) are implemented in java

    I want to know how resource files are implemented in java. I am using a window98 as OS.
    Thank you
    Abu_ramla

    I wonder if this might help:
    ResourceBundle rbd = ResourceBundle.getBundle("Filename");
    to get a property out of the resourceBundle use:
    String varname = (String) prb.getObject("propName");
    As allways, check the API
    Hope this helps
    Elouiza

  • Is TOP a resource intensive query.

    Hi,
    We are using TOP to monitor load on LInux production server.
    I just wanted to know if TOP is a resource intensive command?
    Whether TOP adds up to the load on server. Say for example TOP running simultenously from 5/6 putty sessions.
    Regards,

    Running top with default parameters is not a resource intensive process. There were issues with long running top sessions in the past, with ported versions of the top command on certain Unix platforms, but Linux was not affected. I don't think you will notice a performance issue running several top sessions. You can easily test it. Whether or not the top utility is the right tool for what you are trying to accomplish however is a different question.

  • How CoreGFX intensive is Aperture?

    Hi, Just wanted to know if anyone has actually measured the difference in performance in running Aperture on a loaded MacBook vs a MacBook Pro?
    No FW 800, PCIe slot & small screen counting against the MB ignored, it seems like CPU intensive tasks flow pretty fast on the MB. Except for any GPU intensive apps. So the question steers more into: How much does the operations in Aperture depend on the GPU of a machine?
    Thanks!

    it is very depended on the GPU
    better GPU is best
    DAVE

  • What are the most resource intensive Photoshop tutorials or Action Scripts

    I'm trying to benchmark some RAM on a machine, and was planning on using Photoshop as a portion of the real world tests. So I was wondering what some of the most resourse intensive, yet realistic and common things to do are.
    Alternatively, perhaps somebody knows of some highly complex tutorials I can follow along to and create a Action script myself. I just don't want my tests to be "Opened random image, doubled size, rotated 12-degreese, apply filter, bla bla bla".
    I've been googling around a bit but nothing really caught my eye. I'd rather hear from real people than read through a bunch of "100 best photoshop Action scripts" all day, yaknow?
    Cheers

    I'm trying to benchmark some RAM on a machine, and was planning on using Photoshop as a portion of the real world tests. So I was wondering what some of the most resourse intensive, yet realistic and common things to do are.
    Alternatively, perhaps somebody knows of some highly complex tutorials I can follow along to and create a Action script myself. I just don't want my tests to be "Opened random image, doubled size, rotated 12-degreese, apply filter, bla bla bla".
    I've been googling around a bit but nothing really caught my eye. I'd rather hear from real people than read through a bunch of "100 best photoshop Action scripts" all day, yaknow?
    Cheers

  • How can i improve uiwebview performance so that it loads url faster ?

    My application consists of UIWebview which is loading a url, but if i run the same in safari it is loading very fast as compare to native uiwebview. Is it because safari contains Nitro Engine for fast JIT compilation ?. Can anyone tell me any mechanism to load url faster in native uiwebview ?

    What is the value of that pref?
    If Reset is grayed then that means that the pref has the default value.
    See:
    http://kb.mozillazine.org/Location_Bar_search
    http://kb.mozillazine.org/Keyword%2eURL

  • Cannot undestand how resources works.

    is there other sources that I can get so I could undestand a little bit more the InDesign resources mechanism for plugin development?
    Cause the files in the docs directory does seem to explain very well.
    I thought it would walk me though creating a good plugin, that covered almost(if not every) features available that we can design in a plugin.
    It's just very confusing.
    Also, right now i'm trying to migrate a big plugin from InDesign 2.0 to InDesign Cs5.5. Do you guys think that it'll be though for a beginner?
    I'm using InDesign CS5.5 SDK.
    Any help would be great.
    As you guys can see, I've made a lot of question there. Sorry about that.
    thanks.

    Porting a plugin from InDesign 2 to InDesign 7.5 aka CS5.5 will be fun. Expect to learn a lot, in the past 11+ years a few features have been added, modified or reimplemented, for example the principles of the selection architecture have been changed around CS1, model and UI have been split in CS2, system types got wrappers in CS3, links have been rewritten with CS4, threading has been added with CS5 and so forth. For details, refer to the documents "porting guide" of the various SDKs in between, if you can get a hold on them and have the spare time.
    The resource compiler is apparently derived from MPW Rez which is so old that Apple has removed any traces of documentation even from its legacy files. Google for "Building_Progs_In_MPW.sit.hqx" to find a copy, the language is described in Appendix C. This document does not cover the actual types defined by Adobe, though.
    Anyway, using the matching SDK for the targeted version is a good beginning.

  • ITunes too resource intensive

    If anyone wants to try this simple test, please post your results so I can see if I'm the only one experiencing it-
    First open Windows Task Manager by pressing CTRL-ALT-DEL.
    If iTunes isn't running, open it now.
    Place the mouse cursor on the iTunes volume control, and hold the left mouse button down.
    On my system (P4 2.4 Ghz,768 MB RAM), the CPU usage for iTunes.exe jumps up to 98% or 99%. Also, the Memory Usage for iTunes is around 47 MB.
    I think this is a bit much for an MP3 player. BTW, I'm using iTunes 6.
    Thanks for any replies!!
    -Bill

    Edit: I just noticed that this only happens when iTunes is in "Mini Player" mode (CTRL+M)
    -Bill

  • Resource intensive format trigger

    Hi,
    I am using the folwoing format trig on a repeating fram in reports 2.5:
    numRows number(10);
    begin
    select count(ID) into numRows
    from <your table>
    where address = :address;
    if (numRows > 1) then
    srw.attr.mask := srw.FFCOLOR_ATTR + srw.FILLPATT_ATTR;
    srw.attr.ffcolor := 'r75g75b0';
    srw.attr.fillpatt := 'solid';
    srw.set_attr(0, srw.attr);
    end if;
    end;
    =================
    The problem is it takes too long to run (the table holds 6500 recs.) If I was to change the formatted records to a simple underline, do you think that i cuold achieve a faster running report. At the moment it highlights selected records with a "bar".
    thanx,
    n.

    Nicholas,
    I think your problem is going to be more that you have a select at all in the format trigger. That's still a trip to the db and back everytime that object is formatted. I presume you're highlighting duplicate rows? I don't know your data model, but is it possible to do something like create a break group on your address and count the number of details, even if it's some kind of dummy detail? The format trigger could run off of the count. You could still display the address in the same repeating frame as the columns that would make up its details since it's at a lower frequency. You would have an extra repeating frame, but that's less overhead than an additional select executed for each instance of the repeating frame. If you can accomplish this in the data model, I think you'll find it runs faster than if you added an index.
    Just my 2 cents!
    Toby

  • [Solved] 27.8.4 How to Create a VO on a REF CURSOR - Missing first row

    Searching the forum I found: BC4J - Get one less row from view object.
    Dive into BC4J related  --REF CURSOR (Resultset)
    The first message did not have any answers, and the second had a follow up question - still no answers though - and I thought I would try a different title.
    (This is off topic, but it would be a great help if the search results also displayed the number of replys in the thread. That way, I wouldn't have to view the messages that don't have responses.)
    (This will be deployed on a server that has the ADF for JDeveloper 10.1.2 installed, so using that version of JDeveloper to develop the app.)
    Okay, back to the problem ==>
    I created a VO from a ref cursor, using the manual as a guide. When I run a page that displays a read only table of the view object, I am missing the first row. (Always the first row!) I don't have any order set, and if I call the ref cursor in a Java program for testing, I see all rows and the count is correct.
    One other point, when I call the page, I get the following validation error:
    Validation Error
    You must correct the following error(s) before proceeding:
    * JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=null
    * null
    I still see the table, it is just missing the first row of data.
    In my form I have first, previous set, next set , and last
    navigation buttons. If I press last then first, the error goes away. I still don't see the missing row though.
    Any guidance would be appreciated! I can post my code, but it is pretty much the same code in the AdvancedViewObjectExamples.zip in the ViewObjectOnRefCursor example. I just substituted my two package calls (getRefCursor and getRefCursorCount).
    Thanks, Ken

    Went back to a backup copy of the source. Fixed the error. Now I'm back to just not being able to see the first row of data.
    Additional Note: I had removed fields in the display. Once I truncated the ps_txn table in the schema defined by the model, the data would display (Still without the first record.)
    Are there any examples that are more in depth than the few pages in the developer guide?
    Here is the code for my VOImpl class:
    package newslinearchive.model.datamodel;
    import java.math.BigDecimal;
    import java.sql.CallableStatement;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Timestamp;
    import java.sql.Types;
    import oracle.jbo.InvalidParamException;
    import oracle.jbo.JboException;
    import oracle.jbo.domain.Date;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.DBTransaction;
    import oracle.jbo.server.QueryCollection;
    import oracle.jbo.server.SQLBuilder;
    import oracle.jbo.server.ViewObjectImpl;
    import oracle.jbo.server.ViewRowImpl;
    import oracle.jbo.server.ViewRowSetImpl;
    import oracle.jdbc.driver.OracleCallableStatement;
    import oracle.jdbc.driver.OracleTypes;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class SearchRefCursorImpl extends ViewObjectImpl {
    * This is the default constructor (do not remove)
    public SearchRefCursorImpl() {
    * Overridden framework method.
    * Executed when the framework needs to issue the database query for
    * the query collection based on this view object. One view object
    * can produce many related result sets, each potentially the result
    * of different bind variable values. If the rowset in query is involved
    * in a framework-coordinated master/detail viewlink, then the params array
    * will contain one or more framework-supplied bind parameters. If there
    * are any user-supplied bind parameter values, they will PRECEED the
    * framework-supplied bind variable values in the params array, and the
    * number of user parameters will be indicated by the value of the
    * numUserParams argument.
    protected void executeQueryForCollection(Object qc,Object[] params,int numUserParams) {
    storeNewResultSet(qc,retrieveRefCursor(qc,params));
    super.executeQueryForCollection(qc, params, numUserParams);
    * Overridden framework method.
    * Wipe out all traces of a built-in query for this VO
    protected void create() {
    getViewDef().setQuery(null);
    getViewDef().setSelectClause(null);
    setQuery(null);
    * Overridden framework method.
    * The role of this method is to "fetch", populate, and return a single row
    * from the datasource by calling createNewRowForCollection() and populating
    * its attributes using populateAttributeForRow().
    protected ViewRowImpl createRowFromResultSet(Object qc, ResultSet rs) {
    * We ignore the JDBC ResultSet passed by the framework (null anyway) and
    * use the resultset that we've stored in the query-collection-private
    * user data storage
    rs = getResultSet(qc);
    * Create a new row to populate
    ViewRowImpl r = createNewRowForCollection(qc);
    try {
    * Populate new row by attribute slot number for current row in Result Set
    // populateAttributeForRow(r,0, rs.getLong(1));
    // populateAttributeForRow(r,1, rs.getString(2));
    // populateAttributeForRow(r,2, rs.getString(3));
    // MASTERID NOT NULL NUMBER
    populateAttributeForRow(r,0, rs.getBigDecimal(1));
    //ID NOT NULL NUMBER
    populateAttributeForRow(r,1, rs.getBigDecimal(2));
    // CAID NOT NULL NUMBER
    populateAttributeForRow(r,2, rs.getBigDecimal(3));
    // LANGUAGE NOT NULL VARCHAR2(30)
    populateAttributeForRow(r,3, rs.getString(4));
    // IS_CURRENT_VERSION NOT NULL NUMBER(1)
    populateAttributeForRow(r,4, rs.getBigDecimal(5));
    // FOLDER_ID NOT NULL NUMBER
    populateAttributeForRow(r,5, rs.getBigDecimal(6));
    // FOLDER_REGION_ID NOT NULL NUMBER
    populateAttributeForRow(r,6, rs.getBigDecimal(7));
    // NAME NOT NULL VARCHAR2(256)
    populateAttributeForRow(r,7, rs.getString(8));
    // DISPLAY_NAME VARCHAR2(256)
    populateAttributeForRow(r,8, rs.getString(9));
    // ITEMTYPE NOT NULL VARCHAR2(30)
    populateAttributeForRow(r,9, rs.getString(10));
    // SUBTYPE VARCHAR2(40)
    populateAttributeForRow(r,10, rs.getString(11));
    // SUBTYPE_CAID NUMBER
    populateAttributeForRow(r,11, rs.getBigDecimal(12));
    // PARENT_ITEM_ID NUMBER
    populateAttributeForRow(r,12, rs.getBigDecimal(13));
    // CATEGORY_ID NUMBER
    populateAttributeForRow(r,13, rs.getBigDecimal(14));
    // CATEGORY_CAID NUMBER
    populateAttributeForRow(r,14, rs.getBigDecimal(15));
    // AUTHOR VARCHAR2(50)
    populateAttributeForRow(r,15, rs.getString(16));
    // DESCRIPTION VARCHAR2(2000)
    populateAttributeForRow(r,16, rs.getString(17));
    // PUBLISH_DATE NOT NULL DATE
    populateAttributeForRow(r,17, rs.getDate(18));
    // EXPIREMODE VARCHAR2(90)
    populateAttributeForRow(r,18, rs.getString(19));
    // EXPIRENUMBER NUMBER
    populateAttributeForRow(r,19, rs.getBigDecimal(20));
    // EXPIREDATE DATE
    populateAttributeForRow(r,20, rs.getDate(21));
    // IMAGE VARCHAR2(350)
    populateAttributeForRow(r,21, rs.getString(22));
    // KEYWORDS VARCHAR2(2000)
    populateAttributeForRow(r,22, rs.getString(23));
    // URL VARCHAR2(4000)
    populateAttributeForRow(r,23, rs.getString(24));
    // FILENAME VARCHAR2(350)
    populateAttributeForRow(r,24, rs.getString(25));
    // TEXT CLOB()
    populateAttributeForRow(r,25, rs.getClob(26));
    // FOLDER_LINK_ID NUMBER
    populateAttributeForRow(r,26, rs.getBigDecimal(27));
    // FOLDER_LINK_CAID NUMBER
    populateAttributeForRow(r,27, rs.getBigDecimal(28));
    // ACTIVE NOT NULL NUMBER(1)
    populateAttributeForRow(r,28, rs.getBigDecimal(29));
    // CAN_BE_CHECKEDOUT NUMBER(1)
    populateAttributeForRow(r,29, rs.getBigDecimal(30));
    // IS_ITEM_CHECKEDOUT NUMBER(1)
    populateAttributeForRow(r,30, rs.getBigDecimal(31));
    // CHECKER_USERNAME VARCHAR2(256)
    populateAttributeForRow(r,31, rs.getString(32));
    // CHECKOUT_DATE DATE
    populateAttributeForRow(r,32, rs.getDate(33));
    // FULLSCREEN NOT NULL NUMBER(1)
    populateAttributeForRow(r,33, rs.getBigDecimal(34));
    // INPLACE NOT NULL NUMBER(1)
    populateAttributeForRow(r,34, rs.getBigDecimal(35));
    // CREATEDATE NOT NULL DATE
    populateAttributeForRow(r,35, rs.getDate(36));
    // CREATOR NOT NULL VARCHAR2(256)
    populateAttributeForRow(r,36, rs.getString(37));
    // UPDATEDATE DATE
    populateAttributeForRow(r,37, rs.getDate(38));
    // UPDATOR VARCHAR2(256)
    populateAttributeForRow(r,38, rs.getString(39));
    // SECURITY VARCHAR2(25)
    populateAttributeForRow(r,39, rs.getString(40));
    // VISIBLE NOT NULL NUMBER(1)
    populateAttributeForRow(r,40, rs.getBigDecimal(41));
    // SEQUENCE NOT NULL NUMBER
    populateAttributeForRow(r,41, rs.getBigDecimal(42));
    // CATEGORY_SEQUENCE NOT NULL NUMBER
    populateAttributeForRow(r,42, rs.getBigDecimal(43));
    // AUTHOR_SEQUENCE NOT NULL NUMBER
    populateAttributeForRow(r,43, rs.getBigDecimal(44));
    // CREATE_DATE_SEQUENCE NOT NULL NUMBER
    populateAttributeForRow(r,44, rs.getBigDecimal(45));
    // ITEMTYPE_SEQUENCE NOT NULL NUMBER
    populateAttributeForRow(r,45, rs.getBigDecimal(46));
    catch (SQLException s) {
    throw new JboException(s);
    return r;
    * Overridden framework method.
    * Return true if the datasource has at least one more record to fetch.
    protected boolean hasNextForCollection(Object qc) {
    ResultSet rs = getResultSet(qc);
    boolean nextOne = false;
    try {
    nextOne = rs.next();
    * When were at the end of the result set, mark the query collection
    * as "FetchComplete".
    if (!nextOne) {
    setFetchCompleteForCollection(qc, true);
    * Close the result set, we're done with it
    rs.close();
    catch (SQLException s) {
    throw new JboException(s);
    return nextOne;
    * Overridden framework method.
    * The framework gives us a chance to clean up any resources related
    * to the datasource when a query collection is done being used.
    protected void releaseUserDataForCollection(Object qc, Object rs) {
    * Ignore the ResultSet passed in since we've created our own.
    * Fetch the ResultSet from the User-Data context instead
    ResultSet userDataRS = getResultSet(qc);
    if (userDataRS != null) {
    try {
    userDataRS.close();
    catch (SQLException s) {
    /* Ignore */
    super.releaseUserDataForCollection(qc, rs);
    * Overridden framework method
    * Return the number of rows that would be returned by executing
    * the query implied by the datasource. This gives the developer a
    * chance to perform a fast count of the rows that would be retrieved
    * if all rows were fetched from the database. In the default implementation
    * the framework will perform a SELECT COUNT(*) FROM (...) wrapper query
    * to let the database return the count. This count might only be an estimate
    * depending on how resource-intensive it would be to actually count the rows.
    public long getQueryHitCount(ViewRowSetImpl viewRowSet) {
    Long result = (Long)callStoredFunction(NUMBER,
    "PORTAL.SEARCH_REFCURSOR.getRefCursorCount",
    viewRowSet.getParameters(true));
    return result.longValue();
    // ------------- PRIVATE METHODS ----------------
    * Return a JDBC ResultSet representing the REF CURSOR return
    * value from our stored package function.
    * new Object[]{getNamedBindParamValue("Email",params)}
    private ResultSet retrieveRefCursor(Object qc, Object[] params) {
    ResultSet rs = (ResultSet)callStoredFunction(OracleTypes.CURSOR,
    "PORTAL.SEARCH_REFCURSOR.getRefCursor",
    null);
    return rs ;
    private Object getNamedBindParamValue(String varName, Object[] params) {
    Object result = null;
    if (getBindingStyle() == SQLBuilder.BINDING_STYLE_ORACLE_NAME) {
    if (params != null) {
    for (Object param : params) {
    Object[] nameValue = (Object[])param;
    String name = (String)nameValue[0];
    if (name.equals(varName)) {
    return (String)nameValue[1];
    throw new JboException("No bind variable named '"+varName+"'");
    * Store a new result set in the query-collection-private user-data context
    private void storeNewResultSet(Object qc, ResultSet rs) {
    ResultSet existingRs = getResultSet(qc);
    // If this query collection is getting reused, close out any previous rowset
    if (existingRs != null) {
    try {existingRs.close();} catch (SQLException s) {}
    setUserDataForCollection(qc,rs);
    hasNextForCollection(qc); // Prime the pump with the first row.
    * Retrieve the result set wrapper from the query-collection user-data
    private ResultSet getResultSet(Object qc) {
    return (ResultSet)getUserDataForCollection(qc);
    * Return either null or a new oracle.jbo.domain.Date
    private static Date nullOrNewDate(Timestamp t) {
    return t != null ? new Date(t) : null;
    * Return either null or a new oracle.jbo.domain.Number
    private static Number nullOrNewNumber(BigDecimal b) {
    try {
    return b != null ? new Number(b) : null;
    catch (SQLException s) { }
    return null;
    //----------------[ Begin Helper Code ]------------------------------
    public static int NUMBER = Types.NUMERIC;
    public static int DATE = Types.DATE;
    public static int VARCHAR2 = Types.VARCHAR;
    public static int CLOB = Types.CLOB;
    * Simplifies calling a stored function with bind variables
    * You can use the NUMBER, DATE, and VARCHAR2 constants in this
    * class to indicate the function return type for these three common types,
    * otherwise use one of the JDBC types in the java.sql.Types class.
    * NOTE: If you want to invoke a stored procedure without any bind variables
    * ==== then you can just use the basic getDBTransaction().executeCommand()
    * @param sqlReturnType JDBC datatype constant of function return value
    * @param stmt stored function statement
    * @param bindVars Object array of parameters
    * @return function return value as an Object
    protected Object callStoredFunction(int sqlReturnType, String stmt,
    Object[] bindVars) {
    CallableStatement st = null;
    try {
    st = getDBTransaction().createCallableStatement("begin ? := " + stmt +
    "; end;", 0);
    st.registerOutParameter(1, sqlReturnType);
    if (bindVars != null) {
    for (int z = 0; z < bindVars.length; z++) {
    st.setObject(z + 2, bindVars[z]);
    st.executeUpdate();
    return st.getObject(1);
    catch (SQLException e) {
    throw new JboException(e);
    finally {
    if (st != null) {
    try {
    st.close();
    catch (SQLException e) {}
    /**Gets the bind variable value for Email
    public String getEmail() {
    return (String)getNamedWhereClauseParam("Email");
    /**Sets <code>value</code> for bind variable Email
    public void setEmail(String value) {
    setNamedWhereClauseParam("Email", value);
    /**getEstimatedRowCount - overridden for custom java data source support.
    public long getEstimatedRowCount() {
    long value = super.getEstimatedRowCount();
    return value;
    Thanks, Ken

  • How do I run a Windows virtual machine?

    I have a program for my research (Scigress) that only runs on Windows. I would like to be able to run the program on my Mac, I assume the best way to do that is to run a virtual machine. I don't want to run Windows all the time, since I strongly dislike Windows. Is there a way to do this in which I can turn Windows off as soon as I'm done with that program? What would be the best way to do this, or the best app to use? I have a 2009 Macbook with Lion installed.

    I apologize, dragon. I didn't fully read your post well before opening my mouth. Sorry, "the ADD" has me (even as a grown man).
    You have really two fundamental choices here on where you could take this. My primary concern above all would be "how resource intensive is this Windows software"? I mean, is it like a CAD or other 3D modeling app or otherwise just... monster? Working in the tech field I have seen CAD programs opening a complex drawing nearly bring say... a dual Xeon, 16GB RAM, 2-4GB of VRAM with cards in tandem (Crossfire or SLI in the PC world, I don't know if it's called the same over here)... but it would literally freeze these beasts of workstations solid for 5-20 minutes while opening and rendering some of these mind-blowing CAD drawings (talented guys, no way I could manage to create some of those 3D models of such just... complexity... in a virtual environment).
    So-- with that being said, that's worst case scenario on the software. That would pretty much really cripple your luck with virtualization/emulation of a guest OS (that is, the operating system that is running "under the command") of the main one you're running.
    If the program is not that kind of one, it would certainly be more convenient to you to just literally almost open "Windows" like it's just another app, literally... and close it/shut it down as soon as you're done, leaving your other OS X desktop work up and running.
    If it *is* going to be a resource hog, then your second option is Boot Camp, which I'm sure you've heard of... You basically split the hard drive (partition it) into two segregated areas of storage and literally you can run either/or and utilize the full power of the machine this way, as you're not sharing CPU/memory. The downside, as sort of mentioned-- is that you have to boot into one or the other, it's not a "program" like the other is, almost; so you'd have to "shut down" or use the little utility app at least to reboot into OS X.
    Think about your circumstances and take a look at that article comparing or also research Allan's suggestion, that is a new one to me. That will at least get you familiar with what the "experience" of virtualizing operating systems is like... then let us know what you think is best and we can go from there and help you. Sorry about jumping the gun earlier. Hope I made up for it with an abundance of information at least the second time...

Maybe you are looking for