01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * The Original Software is NetBeans. The Initial Developer of the Original
16: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19:
20: /*
21: * Sun Public License Notice
22: *
23: * The contents of this file are subject to the Sun Public License
24: * Version 1.0 (the "License"). You may not use this file except in
25: * compliance with the License. A copy of the License is available at
26: * http://www.sun.com/
27: *
28: * The Original Code is NetBeans. The Initial Developer of the Original
29: * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
30: * Microsystems, Inc. All Rights Reserved.
31: */
32:
33: package org.netbeans.modules.sql.project.dbmodel;
34:
35: import java.util.Hashtable;
36: import java.util.ArrayList;
37:
38: /**
39: * @author neenad
40: *
41: * To change the template for this generated type comment go to
42: * Window - Preferences - Java - Code Generation - Code and Comments
43: */
44: public interface PrepStmtModel {
45:
46: public final static int SQL_SELECT = 0;
47: public final static int SQL_INSERT = 1;
48: public final static int SQL_UPDATE = 2;
49: public final static int SQL_DELETE = 3;
50: public final static int SQL_CREATE = 4;
51: public final static int SQL_ALTER = 5;
52: public final static int SQL_DROP = 6;
53: public final static int SQL_TRUNCATE = 7;
54:
55: public int getStatementType();
56:
57: public void setStatementType(int stmtType);
58:
59: public void addTable(Table table);
60:
61: public Hashtable getTables();
62:
63: public void setTables(Hashtable tableMap);
64:
65: public String getSQLText();
66:
67: public void setSQLText(String sqlStr);
68:
69: public void addWhere(WhereCondition whereCon);
70:
71: public void setWhere(ArrayList whereMap);
72:
73: public ArrayList getWhere();
74:
75: public String createSqlText();
76:
77: public boolean getChkDuplicate();
78:
79: public void setChkDuplicate(boolean newChkDuplicate);
80:
81: public void setTableAliasIncluded(boolean isTableAliasSet);
82:
83: public boolean isTableAliasIncluded();
84:
85: }
|