Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / utils / PHPStringThing.java
1 /*
2  * Created on 14-Jul-2003
3  *
4  * To change this generated comment go to 
5  * Window>Preferences>Java>Code Generation>Code and Comments
6  */
7 package net.sourceforge.phpdt.sql.utils;
8
9 import java.util.Vector;
10
11 import net.sourceforge.phpdt.sql.IConstants;
12
13 public class PHPStringThing {
14         private String query = null;
15         public PHPStringThing() {
16         }
17         public PHPStringThing(String query) {
18                 this.query = query;
19         }
20
21         public Vector toPHP() {
22                 return toPHP(query);
23         }
24
25         static public Vector toPHP(String query) {
26                 Vector buffer = new Vector();
27                 buffer.add(IConstants.PHPFILEHEADER);
28                 buffer.add(IConstants.PHPDBCONNHEADER);
29                 buffer.add(IConstants.PHPDBRESULTHEADER.replaceAll("%%QUERY%%", query));
30                 buffer.add(IConstants.PHPDBCLOSEHEADER);
31                 return buffer;
32         }
33
34 }