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: *
22: * Copyright (c) 2005, Sun Microsystems,
23: * All Rights Reserved
24: *
25: * This program, and all the routines referenced herein,
26: * are the proprietary properties and trade secrets of
27: * Sun Microsystems.
28: *
29: * Except as provided for by license agreement, this
30: * program shall not be duplicated, used, or disclosed
31: * without written consent signed by an officer of
32: * Sun Microsystems.
33: *
34: ***************************************************************************/
35: package org.netbeans.modules.jdbcwizard.builder.model;
36:
37: import org.netbeans.modules.jdbcwizard.builder.dbmodel.DBTable;
38:
39: /**
40: * @author Venkat P
41: */
42: public interface DBQueryModel {
43:
44: public void init(DBTable souTable);
45:
46: public String createInsertQuery() throws Exception;
47:
48: public String createUpdateQuery() throws Exception;
49:
50: public String createDeleteQuery() throws Exception;
51:
52: public String createFindQuery() throws Exception;
53:
54: public String createPoolQuery() throws Exception;
55:
56: public String getParamOrder(String queryType) throws Exception;
57:
58: public String getPrimaryKey() throws Exception;
59:
60: }
|