1
//////////////////////////////////////////////////////////////////////////
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
8
// edbSynonym.h - EnterpriseDB Synonym class
10
//////////////////////////////////////////////////////////////////////////
17
#include "pgDatabase.h"
20
class edbSynonymFactory : public pgDatabaseObjFactory
24
virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
25
virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
27
extern edbSynonymFactory synonymFactory;
30
class edbSynonym : public pgDatabaseObject
33
edbSynonym(const wxString& newName = wxT(""));
35
void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
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; }
45
bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
46
wxString GetSql(ctlTree *browser);
47
pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
49
bool HasStats() { return false; }
50
bool HasDepends() { return true; }
51
bool HasReferences() { return true; }
53
wxString GetHelpPage(bool forCreate) const { return wxT("pg/sql-createpubsynonym"); }
56
wxString targetType, targetSchema, targetObject;
1
//////////////////////////////////////////////////////////////////////////
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
8
// edbSynonym.h - EnterpriseDB Synonym class
10
//////////////////////////////////////////////////////////////////////////
17
#include "pgDatabase.h"
20
class edbSynonymFactory : public pgDatabaseObjFactory
24
virtual dlgProperty *CreateDialog(frmMain *frame, pgObject *node, pgObject *parent);
25
virtual pgObject *CreateObjects(pgCollection *obj, ctlTree *browser, const wxString &restr=wxEmptyString);
27
extern edbSynonymFactory synonymFactory;
30
class edbSynonym : public pgDatabaseObject
33
edbSynonym(const wxString& newName = wxT(""));
35
void ShowTreeDetail(ctlTree *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
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; }
45
bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded);
46
wxString GetSql(ctlTree *browser);
47
pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
49
bool HasStats() { return false; }
50
bool HasDepends() { return true; }
51
bool HasReferences() { return true; }
53
wxString GetHelpPage(bool forCreate) const { return wxT("pg/sql-createpubsynonym"); }
56
wxString targetType, targetSchema, targetObject;