Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / actions / PrevSequenceAction.java
1 /*
2  * Created on 22-jul-2003
3  *
4  */
5 package com.quantum.actions;
6
7 import com.quantum.ImageStore;
8 import com.quantum.Messages;
9 import com.quantum.adapters.DatabaseAdapter;
10 import com.quantum.view.bookmark.EntityNode;
11
12 import org.eclipse.ui.IViewPart;
13
14 public class PrevSequenceAction extends BaseSequenceAction {
15         /**
16      * @param text
17      * @param view
18      */
19     public PrevSequenceAction(IViewPart view) {
20         super(Messages.getString(PrevSequenceAction.class.getName() + ".text"), view);
21         setImageDescriptor(ImageStore.getImageDescriptor(ImageStore.GRID));
22     }
23
24         /**
25          * @param sequence
26          * @param name
27          * @param adapter
28          * @return
29          */
30         protected String getQuery(EntityNode sequence, String name, DatabaseAdapter adapter) {
31                 return adapter.getPrevValue(name, sequence.getEntity().getSchema());
32         }
33 }