Working method

Hi
I'm evaluating mapping tools, like toplink. Is there any method I can use in my evaluation? I'm thinking something like the XP-method?
I'm going to measure performence an functionallity and I will probobly use JUnit and JUnit performence as my tools.
thanx

Have a look at these links:
http://c2.com/cgi-bin/wiki?ObjectRelationalToolComparison
http://blog.hibernate.org/cgi-bin/blosxom.cgi/Christian%20Bauer/relational/comparingpersistence.html

Similar Messages

  • Working methods with Mail

    My preferred working methods with email is to use everal secondary email addresses courtesy of my ISP. My old ISP and Thunderbird worked fine and did exactly what i wanted of them namely: multiple email addresses that can be accessed in a single application and those multiple email addresses to contain Sent, Inbox and Trash folders relevant to that email address (eg: 5 email addresses = 5 sets of folders).
    Background
    The above working method is worth my offort as it keeps the primary email address tucked away and scarcely used. Should a secondary email address become compromised all it is is a matter of ditching that email address and setting up a replacement for it. The above working method seems to solve spam or compromised address easily and in a timely manner.
    For why?
    Well I guess we've all received those group emails from someone with a less than acute sense of security. In other words there is a good chance your email address may be compromised because of the skills or lack of them in someone sending a message to you and 20 or 30 other senders. (I think the maximum number of email addresses I found in a body of a message covered some 100 - 150 people at various organisations).
    So, I'd like to make an enhancement request for Mail to support multiple email addresses (note: not aliases) which act independently of each other.
    Is it doable in Mail?

    An example to elaborate
    primary email address with ISP follows convention: [email protected] (never declare this and avoid using it)
    secondary email address #1 for use with online banks and financial institutions:
    [email protected]
    secondary email address #2 for use with online purchases:
    [email protected]
    secondary email address #3 for use with people with unknown skills levels and/or doubtful security practices:
    [email protected]
    Now imagine that for some reason or other email address #3 has been compromised and starts to receive floods of viagra, ***** enlargement, sex online, spam, online bank spams and/or spoofs.
    One could try to invoke all manner of filters (dodgy, well-dodgy) or simply manage the ISP accounts to ditch [email protected] and set up a replacement account of [email protected]
    The second method seems (according to my own experience) work a treat.

  • Flash working methods

    Hi,
    Can anyone assist with some tips on the best way to do certain things.
    For example:
    If you have a fairly lengthy interactive animation and need to refine an animation which is nested in a movieclip - do you have to keep compiling the whole main time line to check it out?
    Or
    You have three text builds that grow individually but they all need to end up left aligned as a bullet list - do you have to sort of guess? because you cant run the nested animations without compiling the whole time line.
    If the answer is essentially yes then there has to be a better working method I need to grasp.
    Thanks all
    Best
    PAul

    There are a few options for playing movies in the editor, but if you need to view how embedded movies play wrt a containing timeline, then you do need to use the Test options which will compile an swf file as an output.
    As far as the alignment issue goes, sometimes you have todo a little work/rework when it comes to aligning things that don't show their finished selves until the end.  What I usually do in these cases is temporarily place some element in the first frame that provides the location reference I need in order to be able to line things up as desired.  You can place it on a layer by itself, in which case you can just turn it into a guide layer when you don't want it to show anymore.

  • Bootcamp Windows 7 install with no Superdrive - Working Method

    After lots of experimenting to get Windows 7 installed on my 2011 MBP with no Superdrive, I've finally found a solution.
    Normally reserved for Macbook Airs, it's possible to enable the "Create Windows 7 Install Disk" option in Boot Camp Assistant 4 by following this method:
    http://discussions.apple.com/message/17365855#17365855
    This will allow usb creation to work, but without proper firmware version on your machine, you will reboot to a black screen that says "No bootable device found" when trying to use bootcamp assistant. 
    All of the workarounds that worked in 10.6 seem to be broken in 10.7. I tried:
    -4 different USB media, as some reported certain USB media will work.
    -mounting a VMware image of a windows 7 install, but VMDKMounter and MacFuse are broken in 10.7
    -using winclone to restore a previous bootcamp image from my old MBP, which only got me to BSOD
    -using my windows image to format a partition, which returns invalid argument errors in disk utility
    I didn't try rEFIt, as I read lots of reports of its incompatibilities with Lion, and disk corruption.
    The solution that finally worked was to create a 5gb FAT partition on my internal hard drive, and copy all of the files from the Bootcamp USB windows install. 
    Upon reboot, since it was still attempting the windows install, it found the partition, booted and worked flawlessly. This might also work by simply copying the files from your Windows 7 image, but I think there may be a little trickery done in Boot Camp Assistant to make sure the EFI recognizes it properly.
    I've only tried this on my system, but after 2 days of messing around to get this working, I wanted to post my results as I'm sure I'm not the only one in this situation.

    Ok thanks for pointing out that i need to use NTFS instead of FAT.. And the order of partitions..
    I----------OSX----------I I------Windows----I I---Install---I
    My only issue now.. ( atleast i think it is my only issue )
    Im a noob at this, so please dont get mad.
    But as i understand, you are using the information in this link
    http://discussions.apple.com/message/17365855#17365855
    to bypass (Or Un-grey) the "create a usb" option.
    Now my only issue is that there is no "create a usb" option, i have
    "download the latest windows support software from apple"
    And
    "install Windows 7"
    I stuck... ive tried remote disk, rEFIt, installing from usb, installing from dvd.
    Dont know where else to go.
    Once again, thanks for your help.

  • A working method to load local PDF and HTML files on iOS

    I had a lot of trouble getting this to work, and I'm hoping this post saves someone time. Some of the information that's been posted in other locations is either wrong, incomplete, or might only work on Android. By the time you read this message the information here may no longer be accurate, so here's the testing environment:
    Window 7
    Flash CS 5.5.0
    AIR 2.7.0.19530, which was compiled on June 28, 2011
    iPad 1, version 4.3.5 of iOS
    Let's get started.
    On iOS, you load external PDF and HTML files using the StageWebView class.
    On Windows, StageWebView works but the HTMLLoader class is a better choice if you're creating a desktop app.
    You can also load HTML files by reading in the file's text. The information in this post is only for loading external HTML files.
    StageWebView will not load a file that's in File.applicationDirectory. All files bundled in your app are placed in File.applicationDirectory, which means you'll have to copy any external file you wish to load with StageWebView to another directory.
    So where can you copy your file? File.applicationStorageDirectory won't work. File.documentsDirectory does work.
    Several people have recommended copying to a temporary file using File.createTempFile(). This works, but there's a catch: it seems that, like Windows, StageWebView relies on a file's extension when determining how to load it. When you create a temporary file on iOS using File.createTempFile(), the file will have no extension (and on Windows, File.createTempFile() creates a file with the extension .tmp, which is equally problematic).
    The solution to the file extension problem is to rename the temporary file by appending the original file's extension. AIR currently does not have a <file>.rename() function, so you'll have to do it using <tempFile>.moveTo().
    Here's some code I've successfully tested several times on both iOS and Windows. The file is copied to the temp directory. The file's extension is restored by just slapping the original file name to the end of the temp file.
            private function loadExternalFile():void
                var webView = new StageWebView();
                webView.stage = this.stage;
                webView.viewPort = new Rectangle( 0, 0, 1024, 555 );
                // Works with either html or pdf files.
                // These are stored in the root of the application directory.
                var fileName:String = "euei.pdf";
                //var fileName:String = "euei.htm";
                var sourceFile = File.applicationDirectory.resolvePath( fileName );
                var workingFile = File.createTempFile();
                try
                    sourceFile.copyTo( workingFile, true );
                    // You have to rename the temp file
                    var renamedTempFile:File = workingFile.resolvePath(workingFile.nativePath + fileName);
                    workingFile.moveTo(renamedTempFile, true);
                    webView.loadURL( renamedTempFile.url );
                catch (err:Error) { }

    I tried this with Flash CS5.5 and AIR 4.0 SDK. Any pdf loaded simply fills the viewPort with black. Also tested with a png version of the pdf and that displayed just fine.
    What's the purpose of copying to a temp work file? I found that webView.loadURL( sourceFile.url ); gave me the exact same results.
    Any ideas?
    Thanks!

  • DB Link working method and security issue.

    Hi All,
    I need some clarification how db link works.
    If I am having DB link and done some DML operations. After that I have done some DML opearation on the local database. I haven't commited the data yet. Then DB Link goes down. What will happen?
    In my case from local database if i am issuing
    select * from emp@iasdb
    then it shows updated data.
    If i am connecting to target database then it shows non updated data. How it is possible?
    What happen when DB Link goes down? Which database (taget / local) will keep lock of tables / rows I am updating?
    Tom can you please help me.
    Regards,
    Pritesh.

    If i am connecting to target database then it shows non updated data. How it is possible?Changes are visible only to the session doing the changes (until saved). Works even if the changes are across databases.
    If remote DB goes down, this is what you get on local DB:
    commit
    ERROR at line 1:
    ORA-02054: transaction 6.34.41922 in-doubt
    ORA-02068: following severe error from REMOTE_DB
    ORA-12152: TNS:unable to send break messageand if you now try to access the objects that were updated by above in-doubt transaction, you get this:
    select * from t
    ERROR at line 1:
    ORA-01591: lock held by in-doubt distributed transaction 6.34.41922ORA-01591 lock held by in-doubt distributed transaction string
    Cause: An attempt was made to access resource that is locked by a dead two-phase commit transaction that is in prepared state.
    Action: The database administrator should query the PENDING_TRANS$ and related tables, and attempt to repair network connection(s) to coordinator and commit point. If timely repair is not possible, the database administrator should contact the database administrator at the commit point if known or the end user for correct outcome, or use heuristic default if given to issue a heuristic COMMIT or ABORT command to finalize the local portion of the distributed transaction.

  • The WFTest.java is not working (Method WFNotificationsAPI.getNotifications)

    In the file WFTest.java, when it arrives to line 311:
    System.out.println("Finding out a list of notification for this item.");
    // finding out the list of notifications
    dataSource = WFNotificationAPI.getNotifications(ctx, iType, iKey);
    System.out.println("Display the Nids, Assigned Users ...");
    // print the result
    displayDataSource(ctx, dataSource);
    // the first one is FYI, so we can close this.
    myNid = new BigDecimal((String)dataSource.getData(0,0));
    The method getNotifications is executed, but the line displayDataSources has no output, in the next line i get an indexOutOfBounds exception.
    Any help?
    Thanks.

    Try running the demo from the Workflow UI - this is the standard requsition demo.

  • Java.nio select() method return 0 in my client application

    Hello,
    I'm developing a simple chat application who echo messages
    But my client application loop because the select() method return 0
    This is my code
    // SERVER
    package test;
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.ServerSocketChannel;
    import java.nio.channels.SocketChannel;
    import java.util.Iterator;
    import java.util.Set;
    public class Server {
         private int port = 5001;
         public void work() {               
              try {
                   ServerSocketChannel serverSocketChannel = ServerSocketChannel.open();
                   serverSocketChannel.configureBlocking(false);
                   InetSocketAddress isa = new InetSocketAddress(port);               
                   serverSocketChannel.socket().bind(isa);
                   Selector selector = Selector.open();
                   serverSocketChannel.register(selector, SelectionKey.OP_ACCEPT);
                   System.out.println("Listing on "+port);
                   while(selector.select()>0) {
                        Set keys = selector.selectedKeys();
                        for(Iterator i = keys.iterator(); i.hasNext();) {
                             SelectionKey key = (SelectionKey) i.next();
                             i.remove();
                             if (key.isAcceptable()) {
                                  ServerSocketChannel keyChannel = (ServerSocketChannel)key.channel();                              
                                  SocketChannel channel = keyChannel.accept();
                                  channel.configureBlocking(false);                              
                                  channel.register(selector, SelectionKey.OP_READ );
                             } else if (key.isReadable()) {
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  String m = Help.read(keyChannel );
                                  Help.write(m.toUpperCase(), keyChannel );
              } catch (IOException e) {                                             
                   e.printStackTrace();                         
         public static void main(String[] args) {
              Server s = new Server();
              s.work();
    // CLIENT
    package test;
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.SocketChannel;
    import java.util.Iterator;
    import java.util.Set;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class Client extends JFrame  {
         private String host = "localhost";
         private int port = 5001;
         private SocketChannel socketChannel;
         private Selector selector;
         public void work() {               
              try {
                   socketChannel = SocketChannel.open();
                   socketChannel.configureBlocking(false);
                   InetSocketAddress isa = new InetSocketAddress(host, port);               
                   socketChannel.connect(isa);
                   selector = Selector.open();
                   socketChannel.register(selector, SelectionKey.OP_CONNECT | SelectionKey.OP_READ );
                   while(true) {
                        selector.select();
                        Set keys = selector.selectedKeys();
                        for(Iterator i = keys.iterator(); i.hasNext();) {
                             SelectionKey key = (SelectionKey) i.next();
                             i.remove();
                             if (key.isConnectable()) {
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  if (keyChannel.isConnectionPending()) {
                                       System.out.println("Connected "+keyChannel.finishConnect());                                                                           
                             } else if (key.isReadable()) {                                                                                                                                                           
                                  SocketChannel keyChannel = (SocketChannel) key.channel();                                             
                                  String m = Help.read(keyChannel);
                                  display(m);                                                                                                                                                                                                                   
              } catch (IOException e) {                                             
                   e.printStackTrace();                         
         private void display(final String m) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        area.append(m+"\n");
                        textFieed.setText("");
         private void sendMessage(final String m) {
              Thread t = new Thread(new Runnable() {               
                   public void run() {                                                                                
                        try {                         
                             Help.write(m, socketChannel);
                        } catch (IOException e) {               
                             e.printStackTrace();
              t.start();                    
         public Client() {
              addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(1);
              textFieed.addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent e) {
                        if (e.getKeyCode()== KeyEvent.VK_ENTER) {
                             String m = textFieed.getText();
                             sendMessage(m);     
              area.setEditable(false);
              getContentPane().add(textFieed, "North");
              getContentPane().add(new JScrollPane(area));
              setBounds(200, 200, 400, 300);
              show();
         private String messageToSend;
         private JTextArea area = new JTextArea();
         JTextField textFieed = new JTextField();
         public static void main(String[] args) {
              Client s = new Client();
              s.work();
    // HELPER CLASS
    package test;
    import java.io.IOException;
    import java.nio.ByteBuffer;
    import java.nio.CharBuffer;
    import java.nio.channels.SocketChannel;
    import java.nio.charset.Charset;
    import java.nio.charset.CharsetDecoder;
    import java.nio.charset.CharsetEncoder;
    public class Help {
         private static Charset charset = Charset.forName("us-ascii");
         private static CharsetEncoder enc = charset.newEncoder();
         private static CharsetDecoder dec = charset.newDecoder();
         private static void log(String m) {
              System.out.println(m);
         public static String read(SocketChannel channel) throws IOException {
              log("*** start READ");                              
              int n;
              ByteBuffer buffer = ByteBuffer.allocate(1024);
              while((n = channel.read(buffer)) > 0) {
                   System.out.println("     adding "+n+" bytes");
              log("  BUFFER REMPLI : "+buffer);
              buffer.flip();               
              CharBuffer cb = dec.decode(buffer);          
              log("  CHARBUFFER : "+cb);
              String m = cb.toString();
              log("  MESSAGE : "+m);          
              log("*** end READ");
              //buffer.clear();
              return m;                    
         public static void write(String m, SocketChannel channel) throws IOException {          
              log("xxx start WRITE");          
              CharBuffer cb = CharBuffer.wrap(m);
              log("  CHARBUFFER : "+cb);          
              ByteBuffer  buffer = enc.encode(cb);
              log("  BUFFER ALLOUE REMPLI : "+buffer);
              int n;
              while(buffer.hasRemaining()) {
                   n = channel.write(buffer);                         
              System.out.println("  REMAINING : "+buffer.hasRemaining());
              log("xxx end WRITE");

    Here's the fix for that old problem. Change the work method to do the following
    - don't register interest in things that can't happen
    - when you connect register based on whether the connection is complete or pending.
    - add the OP_READ interest once the connection is complete.
    This doesn't fix all the other problems this code will have,
    eg.
    - what happens if a write is incomplete?
    - why does my code loop if I add OP_WRITE interest?
    - why does my interestOps or register method block?
    For code that answers all those questions see my obese post Taming the NIO Circus
    Here's the fixed up Client code
    // CLIENT
    package test
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.SocketChannel;
    import java.util.Iterator;
    import java.util.Set;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class Client extends JFrame  {
         private String host = "localhost";
         private int port = 5001;
         private SocketChannel socketChannel;
         private Selector selector;
         public void work() {
              try {
                   socketChannel = SocketChannel.open();
                   socketChannel.configureBlocking(false);
                   InetSocketAddress isa = new InetSocketAddress(host, port);
                   socketChannel.connect(isa);
                   selector = Selector.open();
                   int interest = 0;
                   if(socketChannel.isConnected())interest = SelectionKey.OP_READ;
                   else if(socketChannel.isConnectionPending())interest = SelectionKey.OP_CONNECT;
                   socketChannel.register(selector, interest);
                   while(true)
                        int nn = selector.select();
                        System.out.println("nn="+nn);
                        Set keys = selector.selectedKeys();
                        for(Iterator i = keys.iterator(); i.hasNext();)
                             SelectionKey key = (SelectionKey) i.next();
                             i.remove();
                             if (key.isConnectable())
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  System.out.println("Connected "+keyChannel.finishConnect());
                                  key.interestOps(SelectionKey.OP_READ);
                             if (key.isReadable())
                                  SocketChannel keyChannel = (SocketChannel) key.channel();
                                  String m = Help.read(keyChannel);
                                  display(m);
              } catch (IOException e) {
                   e.printStackTrace();
         private void display(final String m) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        area.append(m+"\n");
                        textFieed.setText("");
         private void sendMessage(final String m) {
              Thread t = new Thread(new Runnable() {
                   public void run() {
                        try {
                             Help.write(m, socketChannel);
                        } catch (IOException e) {
                             e.printStackTrace();
              t.start();
         public Client() {
              addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(1);
              textFieed.addKeyListener(new KeyAdapter() {
                   public void keyPressed(KeyEvent e) {
                        if (e.getKeyCode()== KeyEvent.VK_ENTER) {
                             String m = textFieed.getText();
                             sendMessage(m);
              area.setEditable(false);
              getContentPane().add(textFieed, "North");
              getContentPane().add(new JScrollPane(area));
              setBounds(200, 200, 400, 300);
              show();
         private String messageToSend;
         private JTextArea area = new JTextArea();
         JTextField textFieed = new JTextField();
         public static void main(String[] args) {
              Client s = new Client();
              s.work();

  • Flash Builder 4.6 code hinter problem - not showing some methods

    Hi All,
    I have a problem with FB code hinter. It does not show some methods on an object.
    To be exact I created a Date object and FB code hinter does not show .toDateString method (actually I it shows only one to string method - .ToString(), although according to docs there are more)
    When I use .toDateString method, code still compiles and work just fine, however method is not showing up in code hinter, which is really annoying..
    Anyone had this problem? If so, please, share some wisdom how to solve this thing.
    Thanks in advance.
    UPDATE:
    Here is some more info in my problem.
    I have tried to reinstall the application, but it did not help.
    So what I did was:
    * first I installed FB standard edition version 4.
    * I checked the code hinter and it worked. It showed .toDateString method.
    * I have purchased FB standard 4.5 upgrade.
    * I installed this upgrade, and boom the code hinter does not show the method...
    * Next I tried to create a project with Flex 4.1 sdk and then it worked - method was there. So the problem is with 4.6 sdk apparently...sucks...

    Hi, I have the same problem. I have a new FB 4.6 installation and it is my first FB installation. Do you have a solution already?

  • I can't get ArrayList to work in my JTable

    I want to be able to dynamically add and remove data (and rows) from my JTable, and so I wanted to just Lists when I implemented it. I've tried 2 ways and they both didn't work. Can someone show me some sample code to do this?
    I tried 2 different methods:
    method 1:
    JTable Data_Table = new  JTable(data_Vector, Collumn_Names_Vector);when I started the applet I got an error saying Applet init error
    But the error could also have happened in 2 other places here. 1, I created 2 Lists instead of Vectors and converted them to Vectors when passing them to JTable using:
    new Vector(data)
    and 2, I may have created my 2 dimensional data List incorrectly. I tried:
    List Parent = new ArrayList();
    List child1 = new ArrayList();
    List child2 = new ArrayList();
    child1.add(data1)
    child2 ...
    Parent.add(child1)
    Parent.add(child2)and I tried:
    List Parent = new ArrayList();
    Object[] temp = { new Integer(); new Integer()};
    Parent.add(temp.asList);But as I said method 1 did not work.
    method 2:
    I tried creating my own TableModel.
    In this way, the applet would start, and I can see my collumn names, but the data is blank and all cells are invisible or nonexistent, I don't know which. How do I initialize the Table values? I'd like to have one row with all 0's when the Applet opens? I'd also like to see a row so I can edit it.
    then I used this code (inside my model):
            public int getColumnCount() {
                return Analog_columnNames.length;
            public int getRowCount() {
                return Analog_data.size();
            public String getColumnName(int col) {
                return Analog_columnNames[col];
            public Object getValueAt(int row, int col) {
                java.util.List aRow = (ArrayList)Analog_data.get(row);
             return  aRow.get(col);
            public void setValueAt(Object value, int row, int col) {
                if (getValueAt(0,col) instanceof Integer                       
                        && !(value instanceof Integer)) {                 
                    try {
                         java.util.List tmp =  (java.util.List) Analog_data.get(row);
                  tmp.set(col, (Object)new Integer(value.toString()));
                  fireTableCellUpdated(row, col);
                    } catch (NumberFormatException e) {
                } else {
                     java.util.List tmp =  (java.util.List) Analog_data.get(row);
              tmp.set(col, (Object)new Integer(value.toString()));
                    fireTableCellUpdated(row, col);
            }Analog_columnNames is a normal array

    this may help You have to remove the button from the columns
    otherwise You need som other classes.
           jTable1.addextrarowtotable(Name, aantal , prijs);CopyCalcTable.java
    import javax.swing.*;
    import java.util.Vector;
    import javax.swing.table.*;
    import java.text.DecimalFormat;
    public class CopyCalcTable extends JTable{
        protected CopyCalcTableModel model;
        CopyCalcTable(){
            super();
            Vector columns= new Vector();
            columns.add("Type");
            columns.add("Omschrijving");
            columns.add("P/S");
            columns.add("Aantal");
            columns.add("Prijs");
            columns.add("Verwijderen");
            model = new CopyCalcTableModel(columns,1);
            setModel(model);
        public void setColumSize(){
            TableColumn column;
            int width = getWidth();
            column = getColumnModel().getColumn(0);
            column.setResizable(false);
            column.setMinWidth((width*2)/14);
            column.setPreferredWidth((width*2)/14);
            column = getColumnModel().getColumn(1);
            column.setResizable(false);
            column.setMinWidth((width*6)/12);
            column.setPreferredWidth((width*2)/14);
            column = getColumnModel().getColumn(2);
            column.setMinWidth((width*1)/14);
            column.setResizable(false);
            column.setPreferredWidth((width*1)/14);
            column = getColumnModel().getColumn(3);
            column.setResizable(false);
            column.setMinWidth((width*1)/14);
            column.setPreferredWidth((width*1)/14);
            column = getColumnModel().getColumn(4);
            column.setResizable(false);
            column.setMinWidth((width*1)/14);
            column.setPreferredWidth((width*1)/14);
            column = getColumnModel().getColumn(5);
            column.setResizable(false);
            column.setMinWidth((width*2)/14);
            column.setPreferredWidth((width*2)/14);
        public void HideColum(){
            TableColumn column;
            int width = getWidth();
            column = getColumnModel().getColumn(0);
            column.setResizable(false);
            column.setMinWidth((width*2)/14);
            column.setPreferredWidth((width*2)/14);
            column = getColumnModel().getColumn(1);
            column.setResizable(false);
            column.setMinWidth((width*6)/12);
            column.setPreferredWidth((width*2)/14);
            column = getColumnModel().getColumn(2);
            column.setMinWidth((width*1)/14);
            column.setResizable(false);
            column.setPreferredWidth((width*1)/14);
            column = getColumnModel().getColumn(3);
            column.setResizable(false);
            column.setMinWidth((width*1)/14);
            column.setPreferredWidth((width*1)/14);
            column = getColumnModel().getColumn(4);
            column.setResizable(false);
            column.setMinWidth((width*1)/14);
            column.setPreferredWidth((width*1)/14);
            column = getColumnModel().getColumn(5);
            column.setResizable(false);
            column.setMinWidth(0);
            column.setPreferredWidth(0);
        public void removefirstrow(){
            model.removeRow(0);
        public void removeTotalrow(){
            model.removeRow(model.getRowCount()-1);
        public void addTotalrow(){
            Vector data;
            String Col_Bediening = "";
            String Col_Uitboek ="";
            String Col_Rectoverso="";
            String Col_Formaat="";
            String Col_Kleur="";
            String Col_Gewicht="";
            Double Col_PS;
            String Col_Aantal;
            Double Col_Prijs;
            data = new Vector();
            Col_Prijs = new Double("0.00");
            double totaal= Col_Prijs.doubleValue();
            // number of extra's
            java.text.NumberFormat nf =  java.text.NumberFormat.getInstance();
            // set whether you want commas (or locale equivalent) inserted
            nf.setGroupingUsed(true );
            // set how many places you want to the right of the decimal.
            nf.setMinimumFractionDigits(2 );
            nf.setMaximumFractionDigits(2 );
            // set how many places you want to the left of the decimal.
            nf.setMinimumIntegerDigits(1 );
            int rows = model.getRowCount();
            for (int i = 0;i < rows; i++){
                Double d = new Double((String) model.getValueAt(i, 4));
                totaal += d.doubleValue();
            Col_Prijs = new Double(totaal*1.00);
            data.add("Totaal : EUR");
            data.add("");
            data.add(new String(""));
            data.add("");
            data.add(nf.format(Col_Prijs));
            //data.add(Col_Prijs.toString());
            javax.swing.JButton button = new javax.swing.JButton("EUR");
            data.add(button);
            model.addRow(data);
            setColumSize();
        public void addkopierowtotable(Integer aantal, double prijs, String omschrijving){
            Vector data;
            CopyCalcTableModel model = (CopyCalcTableModel) getModel();
            Double Col_PS;
            String Col_Aantal;
            Double Col_Prijs;
            //model.addColumn("Verwijderen");
            data = new Vector();
            Col_PS = new Double(prijs);
            Col_Aantal = new String(aantal.toString());
            Col_Prijs = new Double(prijs*aantal.intValue());
            data.add("Kopie�n");
            data.add(omschrijving);
            data.add(Col_PS.toString());
            data.add(Col_Aantal);
            data.add(Col_Prijs.toString());
            javax.swing.JButton button = new JButton("Verwijderen");
            button.addMouseListener(new MyJButtonMouseListener(this));
            data.add(button);
            removeTotalrow();
            model.addRow(data);
            addTotalrow();
        public void addextrarowtotable(String Name, Integer aantal, double prijs){
            Vector data;
            Double Col_PS;
            String Col_Aantal;
            Double Col_Prijs;
            data = new Vector();
            Col_PS = new Double(prijs);
            Col_Aantal = new String(aantal.toString());
            Col_Prijs = new Double(prijs*aantal.intValue());
            data.add("Extra");
            data.add(Name);
            data.add(Col_PS.toString());
            data.add(Col_Aantal);
            data.add(Col_Prijs.toString());
            javax.swing.JButton button = new javax.swing.JButton("Verwijderen");
            button.addMouseListener(new MyJButtonMouseListener(this));
            data.add(button);
            removeTotalrow();
            model.addRow(data);
            addTotalrow();
        public void addspiraalrowtotable(String Name, Integer aantal, double prijs){
            Vector data;
            Double Col_PS;
            String Col_Aantal;
            Double Col_Prijs;
            //model.addColumn("Verwijderen");
            data = new Vector();
            Col_PS = new Double(prijs);;
            Col_Aantal = new String(aantal.toString());
            Col_Prijs = new Double(prijs*aantal.intValue());
            data.add("Spiraal");
            data.add(Name);
            data.add(Col_PS.toString());
            data.add(Col_Aantal);
            data.add(Col_Prijs.toString());
            javax.swing.JButton button = new javax.swing.JButton("Verwijderen");
            button.addMouseListener(new MyJButtonMouseListener(this));
            data.add(button);
            removeTotalrow();
            model.addRow(data);
            addTotalrow();
        public void addklemrugrowtotable(String Name, Integer aantal, double prijs){
            Vector data;
            Double Col_PS;
            String Col_Aantal;
            Double Col_Prijs;
            //model.addColumn("Verwijderen");
            data = new Vector();
            Col_PS = new Double(prijs);
            Col_Aantal = new String(aantal.toString());
            Col_Prijs = new Double(prijs*aantal.intValue());
            data.add("Klemrug");
            data.add(Name);
            data.add(Col_PS.toString());
            data.add(Col_Aantal);
            data.add(Col_Prijs.toString());
            javax.swing.JButton button = new javax.swing.JButton("Verwijderen");
            button.addMouseListener(new MyJButtonMouseListener(this));
            data.add(button);
            removeTotalrow();
            model.addRow(data);
            addTotalrow();
        public void addplastificerenrowtotable(String Name, Integer aantal, double prijs){
            Vector data;
            Double Col_PS;
            String Col_Aantal;
            Double Col_Prijs;
            //model.addColumn("Verwijderen");
            data = new Vector();
            Col_PS = new Double(prijs);
            Col_Aantal = new String(aantal.toString());
            Col_Prijs = new Double(prijs*aantal.intValue());
            data.add("Plastcificeren");
            data.add(Name);
            data.add(Col_PS.toString());
            data.add(Col_Aantal);
            data.add(Col_Prijs.toString());
            javax.swing.JButton button = new javax.swing.JButton("Verwijderen");
            button.addMouseListener(new MyJButtonMouseListener(this));
            data.add(button);
            removeTotalrow();
            model.addRow(data);
            addTotalrow();
        public int getRowCount() {
            if ( model == null ){
                return 0;
            }else {
                return model.getRowCount();
    class CopyCalcTableModel extends AbstractTableModel {
        Vector data;
        Vector columnNames;
        CopyCalcTableModel(Vector head_vec, int rows) {
            columnNames = (Vector) head_vec.clone();
            //    coldata = new Vector(columnNames.size());
            data = new Vector(rows);
        CopyCalcTableModel(Vector head_vec) {
            columnNames = (Vector) head_vec.clone();
            //    coldata = new Vector(columnNames.size());
            data = new Vector();
        CopyCalcTableModel(Vector col_vec, Vector head_vec) {
            Vector coldata;
            columnNames = (Vector) head_vec.clone();
            data = (Vector) col_vec.clone();
        public int getColumnCount() {
            //        System.out.println(columnNames);
            return columnNames.size();
        public int getRowCount() {
            //        System.out.println(data);
            return data.size();
        public void removeRow(int row) {
            //        System.out.println(data);
            data.removeElementAt(row);
            fireTableStructureChanged();
        public String getColumnName(int col) {
            return (String) columnNames.elementAt(col);
        public Object getValueAt(int row, int col) {
            Vector v_row;
            Vector v_col;
            v_row = (Vector) data.elementAt(row);
            return v_row.elementAt(col);
         * JTable uses this method to determine the default renderer/
         * editor for each cell.  If we didn't implement this method,
         * then the last column would contain text ("true"/"false"),
         * rather than a check box.
        public Class getColumnClass(int c) {
            // return getValueAt(0, c).getClass();
            int rowIndex = 0;
            Object o = getValueAt(rowIndex, c);
            if (o == null) {
                return Object.class;
            } else {
                // System.out.println(o.getClass());
                return o.getClass();
         * Don't need to implement this method unless your table's
         * editable.
        public boolean isCellEditable(int row, int col) {
            //Note that the data/cell address is constant,
            //no matter where the cell appears onscreen.
            /*Vector v_row;
            v_row = (Vector) data.elementAt(row);
            if (col == 10 ) {
                return true;
            } else {
                return false;
            return false;
         * add collumn
        public void addColumn(String label, Object value){
            columnNames.add(label);
            for ( int i=0;data.size()>i;i++){
                Vector row = (Vector) data.elementAt(i);
                row.add(value);
                data.setElementAt(row, i);
            fireTableStructureChanged();
        public void addRow(Vector values){
            data.add(values);
            fireTableStructureChanged();
         * Don't need to implement this method unless your table's
         * data can change.
        public void setValueAt(Object value, int lrow, int lcol) {
    }

  • Delete Operation in JDBC Sender Adapter not works

    Hi,
        I have one student table which contains the fields ID,Name,BirthMonth,BirthYear,ReadFlag fields. ReadFlag is a character field or lenght 1 which contains only values either 'Y' or ' '. 
         I want to execute delete operation in this table ie to delete the records which contains the readflag = 'Y'. So, I set the below values for the following parameters.
    DELETE FROM student WHERE READFLAG = ' Y '
    Query SQL Statement : SELECT * FROM student WHERE readflag = 'Y'
    Update SQL Statement : DELETE FROM student WHERE READFLAG = 'Y'
    Poll Interval : 60 Seconds.
        There are more records in this table which contains readflag = 'Y'. But, the Adapter does not delete those records from the table i.e delete operation is not executed. At the same time, in Comm. Channel monitoring it does not show any error, but the delete operation is not carried out in the table.
         I tried after 'COMMIT' the table also. But it does not work. What could be the reason ? or How to use Delete Operation effectively on the table ?
         Kindly help me friends to solve this problem.
    Thanking you.
    Kind Regards,
    Jeg.

    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm >>>
    <i>Adapter Work Method
    You must add an indicator that specifies the processing status of each data record in the adapter (data record processed/data record not processed) to the database table.
    The UPDATE statement must alter exactly those data records that have been selected by the SELECT statement. You can ensure this is the case by using an identical WHERE clause. (See Processing Parameters, SQL Statement for Query, and SQL Statement for Update below).
    <b>Processing can only be performed correctly when the isolation level for transaction is set to repeatable_read or serializable.
    Example
    SQL statement for query: SELECT * FROM table WHERE processed = 0;
    SQL statement for update: UPDATE table SET processed = 1 WHERE processed = 0;
    processed is the indicator in the database.</b></i>
    try with repeatable_read or serializable !!!
    Also go thru this thread - DELETE Querey in JDBC SENDER

  • What is the best way to work on multiple songs in one long recording?

    I often record the local open-mic nights and generally just leave logic recording the entire night so i end up with lots of songs/bands in one big recording.
    What is the best way to work with such a recording? Is there a better way than just using the event marker when a new band plays?
    Also once i get home id like to save each band to a separate project but i cant seem to find an easy way to do this?
    Obviously each band needs a different mix hence needing separate projects? or am i missing a much better work method?
    any help greatly appreciated!
    many thanks

    As for your second point, just do a "save as" new file name and cut and erase any unwanted audio from the arrange window (ie. the bits that aren't in the song you want separate). You can do this for as many songs as there are and create a different mix for each one no problem. You multiple select and drag all the regions to the beginning of the arrange window (make sure you do them at the same time so's they don't go out of synch. All the separate songs and mixes can be saved in the same project folder as the original audio files are stored in (the folder structure should be there already if you started a new logic project, so no need to change that.
    I would think using markers so you know where each song begins during the show, and the above method after, would be a very good way of organizing things. You may want to stop actually recording between bands too though I expect you are already doing this.
    Its really as easy as that. Sometimes things just are.

  • Method implementation using ABAP objects

    hi folks,
    I am impelementing a method using one of the parameters, which is a internal table taken as an import parameter.
    I am using the field symbols to <b>modify</b> the table data  but it is not working.
    method IF_EX_PT_ABS_ATT_COUNTRY~CALCULATE_COUNTRY.
    The method CALCULATE_COUNTRY has a parameter
    TIMES_PER_DAY Importing TYPE PTM_TIMES_PER_DAY.
    This is the table tha t retrieves the data for the Absence infotype 2001 for an employee and has the field
    ABRST value populated.
    I need to clear the value for this field and update the table 'TIMES_PER_DAY' before it populates the infotype record.
    Hence I am writing the code in its method by calling the parameter.
    here is the piece of code....
    FIELD-SYMBOLS: <F1> TYPE PTM_TIMES_PER_DAY.
    loop at times_per_day into <F1> where datum eq begda.
       clear <F1>-abrst.
       ASSIGN <F1> to times_per_day.  ****ERROR
    endloop.
    endmethod.
    I know the error is because trying to assign the <F1> field symbol to internal table.
    But how can I do that ultimately I need to update the internal table 'times_per_day '
    ALSO TRIED THIS....
    data: w_tab type PTM_TIMES_PER_DAY.
    loop at times_per_day into w_tab where datum eq begda.
       CLEAR w_tab-abrst.
       modify times_per_day from w_tab transporting abrst.
    endloop.
    It gave an error saying the table 'times_per_day' cannot  be changed.
    I hope you got what I am trying to achieve here... any leads or guidelines will be really helpful,
    Thanks
    Vinu

    Is this table part of the IMPORT PARAMETERS  list. If that is the case you cannot change the table.
    It should be in the EXPORTING parametes to change.
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • Re: Wireless printing stops working with Home Hub ...

    I have had to fix a few clients home networks and was perturbed to find there is a pattern between the new home hubs and existing wireless printers.
    I too found no logical reason why the connection would drop or go twilight zone. I searched after fixing a couple of these sites and found no conclusive methods from the more senior site members posting suggestions.
    I agree that it is a bug with the HH firmware or a setting that you should be able to tweak is not available to band-aid over the underlying issue.
    My working method was to manually set the channel in the router from the auto setting. Pinging and communications seem to flow both ways and the printers work straight away once the settings have been applied.
    I would love to see a proper response from a BT representative as with some areas of the U.K there is only BT as an option (for broadband) and by ultimately having a HH router that behaves in this fashion is just poor. I think BT need to recognise the issue and investigate from some customers home networks to understand the issue.
    Any update that sheds some light on this is welcome!

    I have a HH1 with a mixture of hard wired and wireless connections. The hard wired ones all have static IP addresses, however I do not use the DHCP server on the home hub, as that is a function of one of my wireless access points.
    My printer is connected by USB to my server, but I never have any issues communication between wireless devices, and  Ethernet connected ones.
    Did you delete the printer from the home hub DHCP table, before giving it a static IP address, to avoid any conflict?
    Maybe its an issue with the HH5? You will have to see if anyone else is having problems.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Display not working in xterm.

    I have solaris10 and linux on my network. I would like to display linux program on solaris10 xterm but I cannot get it to work.
    Heres what I have done so far. I can display both linux and solaris from cygwin on my windows but from solaris to linux I cannot display linux program or vice versa.
    1 - changed the x11 forwarding to yes on my ssh_config file on linux.
    2 - I open xterm session and log in with to linux box.
    3 - export DISPLAY=solaris10box:0.
    4 - firefox &
    but nothing happens. Can someone please help me with this issue.
    Thanks,

    jasonwryan wrote:Don't use random guides on the internetz; work methodically through the
    Beginners' Guide and, if you encounter difficulties, post here with details of
    your setup, what you have tried and exact error messages.
    I did exactly that, jasonwryan, several times, and I couldn't even get to the login prompt after reboot... and I CAREFULLY followed the instructions in the beginner's guide and got the SAME error every time. I tried the how-to that I linked above (which is VERY VERY close to the beginner's guide, and I was able to get the command prompt and install services... I just can't get the graphical user interface.
    I am going to try again using the beginner's guide and see if I have better success.

Maybe you are looking for