Skip to content

Commit 8da39a0

Browse files
committed
ADE source of 11.7.13
1 parent bcab679 commit 8da39a0

File tree

12,335 files changed

+3234843
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

12,335 files changed

+3234843
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
2+
/*------------------------------------------------------------------------
3+
File : AbstractCdcOwner
4+
Purpose :
5+
Syntax :
6+
Description :
7+
Author(s) : mkondra
8+
Created : Thu Nov 19 15:56:56 IST 2015
9+
Notes :
10+
----------------------------------------------------------------------*/
11+
12+
routine-level on error undo, throw.
13+
14+
using OpenEdge.DataAdmin.AbstractCdcParent.
15+
using OpenEdge.DataAdmin.Binding.IDataAdminModel.
16+
using OpenEdge.DataAdmin.Error.IllegalOperationError.
17+
using OpenEdge.DataAdmin.Error.UnsupportedOperationError.
18+
using OpenEdge.DataAdmin.ICdcMap.
19+
using OpenEdge.DataAdmin.ICdcOwner.
20+
using OpenEdge.DataAdmin.IRequestInfo.
21+
22+
class OpenEdge.DataAdmin.AbstractCdcOwner inherits AbstractCdcParent implements ICdcOwner abstract:
23+
24+
define public property Id as int init ? no-undo
25+
get():
26+
if valid-handle(mBuffer) then
27+
return mBuffer::id.
28+
else
29+
return Id.
30+
end.
31+
32+
33+
define public abstract property Instance as int no-undo get. set.
34+
35+
36+
define public property CdcTablePolicies as ICdcMap no-undo
37+
get():
38+
if not valid-object(CdcTablePolicies) then
39+
do:
40+
if not valid-object(context:Service) and not valid-object(context:TargetService) then
41+
undo, throw new IllegalOperationError("CdcTablePolicies are not available in a " + name + " that is not newed, created or retrieved by a service.").
42+
AssertCdcs().
43+
CdcTablePolicies = cast(GetChildCollection("CdcTablePolicies"),ICdcMap).
44+
45+
end.
46+
return CdcTablePolicies.
47+
end.
48+
private set.
49+
50+
constructor public AbstractCdcOwner ( input pname as character ):
51+
super (pname).
52+
53+
end constructor.
54+
55+
56+
constructor public AbstractCdcOwner ( cntxt as IDataAdminModel, preq as IRequestInfo ):
57+
super (cntxt, preq).
58+
59+
end constructor.
60+
61+
62+
constructor public AbstractCdcOwner ( cntxt as IDataAdminModel ):
63+
super (cntxt).
64+
65+
end constructor.
66+
67+
68+
method protected abstract void AssertCdcs() .
69+
end class.
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
2+
/*------------------------------------------------------------------------
3+
File : AbstractCdcParent
4+
Purpose :
5+
Syntax :
6+
Description :
7+
Author(s) : mkondra
8+
Created : Thu Nov 19 16:09:14 IST 2015
9+
Notes :
10+
----------------------------------------------------------------------*/
11+
12+
routine-level on error undo, throw.
13+
14+
using OpenEdge.DataAdmin.Binding.IDataAdminModel.
15+
using OpenEdge.DataAdmin.Entity.
16+
using OpenEdge.DataAdmin.Error.UnsupportedOperationError.
17+
using OpenEdge.DataAdmin.ICdcMap.
18+
using OpenEdge.DataAdmin.ICdcParent.
19+
using OpenEdge.DataAdmin.IRequestInfo.
20+
21+
class OpenEdge.DataAdmin.AbstractCdcParent abstract inherits Entity implements ICdcParent :
22+
23+
define protected property ValidDefaultLevelList as char
24+
init ?
25+
get():
26+
return GetValidDefaultLevelList().
27+
end.
28+
29+
define public abstract property Level as int no-undo
30+
get.
31+
set.
32+
33+
define public abstract property CdcTablePolicyName as char no-undo
34+
get.
35+
set.
36+
37+
define public abstract property ChangeTable as char no-undo
38+
get.
39+
set.
40+
41+
define public abstract property ChangeTableOwner as char no-undo
42+
get.
43+
set.
44+
45+
define public abstract property DataArea as OpenEdge.DataAdmin.IArea no-undo
46+
get.
47+
set.
48+
49+
define public abstract property IndexArea as OpenEdge.DataAdmin.IArea no-undo
50+
get.
51+
set.
52+
53+
define public property Description as char no-undo
54+
get():
55+
if valid-handle(mBuffer) then
56+
return mBuffer::Description.
57+
else
58+
return Description.
59+
end.
60+
set(pDescription as char):
61+
if valid-handle(mBuffer) then
62+
do:
63+
mDefaultBuffer:find-by-rowid(mBuffer:rowid).
64+
mdefaultbuffer::Description = pDescription.
65+
end.
66+
else
67+
Description = pDescription.
68+
end.
69+
70+
method protected char GetValidDefaultLevelList():
71+
return "0,1,2".
72+
end method.
73+
74+
constructor public AbstractCdcParent ( input pname as character ):
75+
super (pname).
76+
77+
end constructor.
78+
79+
80+
constructor public AbstractCdcParent ( cntxt as IDataAdminModel, preq as IRequestInfo ):
81+
super (cntxt, preq).
82+
83+
end constructor.
84+
85+
86+
constructor public AbstractCdcParent ( cntxt as IDataAdminModel ):
87+
super (cntxt).
88+
89+
end constructor.
90+
91+
end class.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/*************************************************************/
2+
/* Copyright (c) 2013,2019 by Progress Software Corporation */
3+
/* */
4+
/* all rights reserved. no part of this program or document */
5+
/* may be reproduced in any form or by any means without */
6+
/* permission in writing from progress Software Corporation. */
7+
/*************************************************************/
8+
/*------------------------------------------------------------------------
9+
File : AbstractPartitionOwner
10+
Purpose :
11+
Syntax :
12+
Description :
13+
Author(s) : hdaniels
14+
Created : Thu Jul 18 01:56:50 EDT 2013
15+
Notes :
16+
----------------------------------------------------------------------*/
17+
routine-level on error undo, throw.
18+
19+
using OpenEdge.DataAdmin.AbstractPartitionParent.
20+
using OpenEdge.DataAdmin.Binding.IDataAdminModel.
21+
using OpenEdge.DataAdmin.Error.IllegalOperationError.
22+
using OpenEdge.DataAdmin.Error.UnsupportedOperationError.
23+
using OpenEdge.DataAdmin.IPartitionMap.
24+
using OpenEdge.DataAdmin.IPartitionOwner.
25+
using OpenEdge.DataAdmin.IRequestInfo.
26+
using Progress.Lang.*.
27+
28+
class OpenEdge.DataAdmin.AbstractPartitionOwner inherits AbstractPartitionParent implements IPartitionOwner abstract:
29+
30+
define public property Id as int init ? no-undo
31+
get():
32+
if valid-handle(mBuffer) then
33+
return mBuffer::id.
34+
else
35+
return Id.
36+
end.
37+
38+
define public property IsAllocated as logical no-undo
39+
get():
40+
if valid-handle(mBuffer) then
41+
return mBuffer::IsAllocated.
42+
else
43+
return IsAllocated.
44+
end.
45+
protected set(pIsAllocated as logical):
46+
if valid-handle(mBuffer) then
47+
do:
48+
mDefaultBuffer:find-by-rowid(mBuffer:rowid).
49+
mdefaultbuffer::IsAllocated = pIsAllocated.
50+
end.
51+
IsAllocated = pIsAllocated.
52+
end.
53+
54+
define public abstract property IsDataEnabled as logical no-undo get. set.
55+
56+
57+
define public property Partitions as IPartitionMap no-undo
58+
get():
59+
if not valid-object(Partitions) then
60+
do:
61+
if not valid-object(context:Service) and not valid-object(context:TargetService) then
62+
undo, throw new IllegalOperationError("Partitions are not available in a " + name + " that is not newed, created or retrieved by a service.").
63+
AssertPartitions().
64+
Partitions = cast(GetChildCollection("partitions"),IPartitionMap).
65+
/* Partitions:Tenant = this-object.*/
66+
67+
end.
68+
return Partitions.
69+
end.
70+
private set.
71+
72+
constructor public AbstractPartitionOwner ( input pname as character ):
73+
super (pname).
74+
75+
end constructor.
76+
77+
78+
constructor public AbstractPartitionOwner ( cntxt as IDataAdminModel, preq as IRequestInfo ):
79+
super (cntxt, preq).
80+
81+
end constructor.
82+
83+
84+
constructor public AbstractPartitionOwner ( cntxt as IDataAdminModel ):
85+
super (cntxt).
86+
87+
end constructor.
88+
89+
90+
method protected abstract void AssertPartitions() .
91+
method public abstract logical Allocate( ).
92+
end class.
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*************************************************************/
2+
/* Copyright (c) 2013,2019 by Progress Software Corporation */
3+
/* */
4+
/* all rights reserved. no part of this program or document */
5+
/* may be reproduced in any form or by any means without */
6+
/* permission in writing from progress Software Corporation. */
7+
/*************************************************************/
8+
/*------------------------------------------------------------------------
9+
File : AbstractPartitionParent
10+
Purpose :
11+
Syntax :
12+
Description :
13+
Author(s) : hdaniels
14+
Created : Thu Jul 18 2013
15+
Notes :
16+
----------------------------------------------------------------------*/
17+
18+
routine-level on error undo, throw.
19+
20+
using OpenEdge.DataAdmin.Binding.IDataAdminModel.
21+
using OpenEdge.DataAdmin.Entity.
22+
using OpenEdge.DataAdmin.Error.UnsupportedOperationError.
23+
using OpenEdge.DataAdmin.IPartitionMap.
24+
using OpenEdge.DataAdmin.IPartitionParent.
25+
using OpenEdge.DataAdmin.IRequestInfo.
26+
using Progress.Lang.*.
27+
28+
class OpenEdge.DataAdmin.AbstractPartitionParent abstract inherits Entity implements IPartitionParent :
29+
30+
define protected property ValidDefaultAllocationList as char
31+
init ?
32+
get():
33+
return GetValidDefaultAllocationList().
34+
end.
35+
36+
define public abstract property DefaultAllocation as character no-undo
37+
get.
38+
set.
39+
40+
define public abstract property DefaultDataArea as OpenEdge.DataAdmin.IArea no-undo
41+
get.
42+
set.
43+
44+
define public abstract property DefaultIndexArea as OpenEdge.DataAdmin.IArea no-undo
45+
get.
46+
set.
47+
48+
define public abstract property DefaultLobArea as OpenEdge.DataAdmin.IArea no-undo
49+
get.
50+
set.
51+
52+
define public property Description as char no-undo
53+
get():
54+
if valid-handle(mBuffer) then
55+
return mBuffer::Description.
56+
else
57+
return Description.
58+
end.
59+
set(pDescription as char):
60+
if valid-handle(mBuffer) then
61+
do:
62+
mDefaultBuffer:find-by-rowid(mBuffer:rowid).
63+
mdefaultbuffer::Description = pDescription.
64+
end.
65+
else
66+
Description = pDescription.
67+
end.
68+
69+
method protected char GetValidDefaultAllocationList():
70+
return "Immediate,Delayed,None".
71+
end method.
72+
73+
constructor public AbstractPartitionParent ( input pname as character ):
74+
super (pname).
75+
76+
end constructor.
77+
78+
79+
constructor public AbstractPartitionParent ( cntxt as IDataAdminModel, preq as IRequestInfo ):
80+
super (cntxt, preq).
81+
82+
end constructor.
83+
84+
85+
constructor public AbstractPartitionParent ( cntxt as IDataAdminModel ):
86+
super (cntxt).
87+
88+
end constructor.
89+
90+
end class.

0 commit comments

Comments
 (0)