1
//////////////////////////////////////////////////////////////////////////
3
// pgAdmin III - PostgreSQL Tools
4
// RCS-ID: $Id: pgOperator.h,v 1.18 2004/01/02 23:15:00 dpage Exp $
5
// Copyright (C) 2002 - 2004, The pgAdmin Development Team
6
// This software is released under the Artistic Licence
8
// pgOperator.h PostgreSQL Operator
10
//////////////////////////////////////////////////////////////////////////
22
#include "pgDatabase.h"
25
class pgOperator : public pgSchemaObject
28
pgOperator(pgSchema *newSchema, const wxString& newName = wxT(""));
31
int GetIcon() { return PGICON_OPERATOR; }
32
void ShowTreeDetail(wxTreeCtrl *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
33
static pgObject *ReadObjects(pgCollection *collection, wxTreeCtrl *browser, const wxString &restriction=wxT(""));
34
virtual wxString GetQuotedIdentifier() const { return GetName(); }
35
wxString GetFullName() const;
36
wxString GetOperands() const;
37
wxString GetLeftType() const { return leftType; }
38
void iSetLeftType(const wxString& s) { leftType=s; }
39
wxString GetRightType() const { return rightType; }
40
void iSetRightType(const wxString& s) { rightType=s; }
41
OID GetLeftTypeOid() const { return leftTypeOid; }
42
void iSetLeftTypeOid(const OID o) { leftTypeOid=o; }
43
OID GetRightTypeOid() const { return rightTypeOid; }
44
void iSetRightTypeOid(const OID o) { rightTypeOid=o; }
45
wxString GetResultType() { return resultType; }
46
void iSetResultType(const wxString& s) { resultType=s; }
47
wxString GetOperatorFunction() const { return operatorFunction; }
48
void iSetOperatorFunction(const wxString& s) { operatorFunction=s; }
49
wxString GetJoinFunction() const { return joinFunction; }
50
void iSetJoinFunction(const wxString& s) { joinFunction=s; }
51
wxString GetRestrictFunction() const { return restrictFunction; }
52
void iSetRestrictFunction(const wxString& s) { restrictFunction=s; }
53
wxString GetCommutator() const { return commutator; }
54
void iSetCommutator(const wxString& s) { commutator=s; }
55
wxString GetNegator() const { return negator; }
56
void iSetNegator(const wxString& s) { negator=s; }
57
wxString GetKind() const { return kind; }
58
void iSetKind(const wxString& s) { kind=s; }
59
wxString GetLeftSortOperator() const { return leftSortOperator; }
60
void iSetLeftSortOperator(const wxString& s) { leftSortOperator=s; }
61
wxString GetRightSortOperator() const { return rightSortOperator; }
62
void iSetRightSortOperator(const wxString& s) { rightSortOperator=s; }
63
wxString GetLessOperator() const { return lessOperator; }
64
void iSetLessOperator(const wxString& s) { lessOperator=s; }
65
wxString GetGreaterOperator() const { return greaterOperator; }
66
void iSetGreaterOperator(const wxString& s) { greaterOperator=s; }
67
bool GetHashJoins() const { return hashJoins; }
68
void iSetHashJoins(bool b) { hashJoins=b; }
70
bool DropObject(wxFrame *frame, wxTreeCtrl *browser);
71
wxString GetSql(wxTreeCtrl *browser);
72
pgObject *Refresh(wxTreeCtrl *browser, const wxTreeItemId item);
75
wxString leftType, rightType, resultType,
76
operatorFunction, joinFunction, restrictFunction,
77
commutator, negator, kind,
78
leftSortOperator, rightSortOperator, lessOperator, greaterOperator;
79
OID leftTypeOid, rightTypeOid;