~ubuntu-branches/debian/sid/pgadmin3/sid

« back to all changes in this revision

Viewing changes to pgadmin/include/schema/edbSynonym.h

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2009-07-30 12:27:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730122716-fddbh42on721bbs2
Tags: 1.10.0-1
* New upstream release.
* Adjusted watch file to match release candidates.
* Updated to Standards-Version 3.8.2:
  - Moved to Section: database.
  - Add DEB_BUILD_OPTIONS support for parallel building.
  - Move from findstring to filter suggestion for DEB_BUILD_OPTIONS parsing.
* pgagent got split into its own separate source package by upstream.
* Exclude Docs.vcproj from installation.
* Move doc-base.enus from pgadmin3 to pgadmin3-data package, the files are
  in there too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//////////////////////////////////////////////////////////////////////////
2
 
//
3
 
// pgAdmin III - PostgreSQL Tools
4
 
// RCS-ID:      $Id: edbSynonym.h 6930 2008-01-02 00:10:01Z dpage $
5
 
// Copyright (C) 2002 - 2008, The pgAdmin Development Team
6
 
// This software is released under the Artistic Licence
7
 
//
8
 
// edbSynonym.h - EnterpriseDB Synonym class
9
 
//
10
 
//////////////////////////////////////////////////////////////////////////
11
 
 
12
 
#ifndef EDBSYNONYM_H
13
 
#define EDBSYNONYM_H
14
 
 
15
 
 
16
 
// App headers
17
 
#include "pgDatabase.h"
18
 
 
19
 
class pgCollection;
20
 
class edbSynonymFactory : public pgDatabaseObjFactory
21
 
{
22
 
public:
23
 
    edbSynonymFactory();
24
 
    virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
25
 
    virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
26
 
};
27
 
extern edbSynonymFactory synonymFactory;
28
 
 
29
 
 
30
 
class edbSynonym : public pgDatabaseObject
31
 
{
32
 
public:
33
 
    edbSynonym(const wxString& newName = wxT(""));
34
 
 
35
 
    void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
36
 
 
37
 
    bool GetSystemObject() const { return false; }
38
 
    wxString GetTargetType() const { return targetType; }
39
 
    void iSetTargetType(const wxString& s) { targetType=s; }
40
 
    wxString GetTargetSchema() const { return targetSchema; }
41
 
    void iSetTargetSchema(const wxString& s) { targetSchema=s; }
42
 
    wxString GetTargetObject() const { return targetObject; }
43
 
    void iSetTargetObject(const wxString& s) { targetObject=s; }
44
 
 
45
 
    bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
46
 
    wxString GetSql(ctlTree *browser);
47
 
    pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
48
 
 
49
 
    bool HasStats() { return false; }
50
 
    bool HasDepends() { return true; }
51
 
    bool HasReferences() { return true; }
52
 
 
53
 
    wxString GetHelpPage(bool forCreate) const { return wxT("pg/sql-createpubsynonym"); }
54
 
 
55
 
private:
56
 
    wxString targetType, targetSchema, targetObject;
57
 
};
58
 
 
59
 
#endif
 
1
//////////////////////////////////////////////////////////////////////////
 
2
//
 
3
// pgAdmin III - PostgreSQL Tools
 
4
// RCS-ID:      $Id: edbSynonym.h 7758 2009-03-26 20:49:59Z dpage $
 
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
 
6
// This software is released under the BSD Licence
 
7
//
 
8
// edbSynonym.h - EnterpriseDB Synonym class
 
9
//
 
10
//////////////////////////////////////////////////////////////////////////
 
11
 
 
12
#ifndef EDBSYNONYM_H
 
13
#define EDBSYNONYM_H
 
14
 
 
15
 
 
16
// App headers
 
17
#include "pgDatabase.h"
 
18
 
 
19
class pgCollection;
 
20
class edbSynonymFactory : public pgDatabaseObjFactory
 
21
{
 
22
public:
 
23
    edbSynonymFactory();
 
24
    virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
 
25
    virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
 
26
};
 
27
extern edbSynonymFactory synonymFactory;
 
28
 
 
29
 
 
30
class edbSynonym : public pgDatabaseObject
 
31
{
 
32
public:
 
33
    edbSynonym(const wxString& newName = wxT(""));
 
34
 
 
35
    void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
 
36
 
 
37
    bool GetSystemObject() const { return false; }
 
38
    wxString GetTargetType() const { return targetType; }
 
39
    void iSetTargetType(const wxString& s) { targetType=s; }
 
40
    wxString GetTargetSchema() const { return targetSchema; }
 
41
    void iSetTargetSchema(const wxString& s) { targetSchema=s; }
 
42
    wxString GetTargetObject() const { return targetObject; }
 
43
    void iSetTargetObject(const wxString& s) { targetObject=s; }
 
44
 
 
45
    bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
 
46
    wxString GetSql(ctlTree *browser);
 
47
    pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
 
48
 
 
49
    bool HasStats() { return false; }
 
50
    bool HasDepends() { return true; }
 
51
    bool HasReferences() { return true; }
 
52
 
 
53
    wxString GetHelpPage(bool forCreate) const { return wxT("pg/sql-createpubsynonym"); }
 
54
 
 
55
private:
 
56
    wxString targetType, targetSchema, targetObject;
 
57
};
 
58
 
 
59
#endif