|
@@ -1,58 +1,58 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.aokeyhole.objects.factories.simple; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.aokeyhole.objects.*; |
5 |
|
- |
import org.litesoft.aokeyhole.objects.attributes.*; |
6 |
|
- |
import org.litesoft.aokeyhole.objects.factories.*; |
7 |
|
- |
import org.litesoft.aokeyhole.objects.properties.*; |
8 |
|
- |
|
9 |
|
- |
public class SimplePropertyMetaDataDefinitionAccessor extends PropertyMetaDataDefinitionAccessorImpl { |
10 |
|
- |
public SimplePropertyMetaDataDefinitionAccessor() { |
11 |
|
- |
super( "Simple", // |
12 |
|
- |
new ObjectSet( 0, true, "Object", // |
13 |
|
- |
PMD_Active.INSTANCE, // |
14 |
|
- |
PMD_TableName.INSTANCE ) // |
15 |
|
- |
{ |
16 |
|
- |
@Override |
17 |
|
- |
public String getParentLabel( String pSubSystemName ) { |
18 |
|
- |
return "Parent"; |
19 |
|
- |
} |
20 |
|
- |
|
21 |
|
- |
@Override |
22 |
|
- |
public void justCreated( ObjectMetaData pObjectMetaData ) { |
23 |
|
- |
pObjectMetaData.createAttributeMetaDataID(); // Add the ID |
24 |
|
- |
} |
25 |
|
- |
}, // |
26 |
|
- |
new ID_Set( PMD_ColumnName.INSTANCE ), // |
27 |
|
- |
new UiCRUDpSet( A_String.TYPE, // |
28 |
|
- |
new ASet( PMD_Changeable.INSTANCE, // |
29 |
|
- |
PMD_Required.INSTANCE, // |
30 |
|
- |
PMD_MaxLength.of( 40 ), // |
31 |
|
- |
PMD_DisplayLength.of( 20 ), // |
32 |
|
- |
PMD_UniqueGroup.INSTANCE, // |
33 |
|
- |
PMD_ColumnName.INSTANCE ), // |
34 |
|
- |
new ASet( PMD_Changeable.INSTANCE, // |
35 |
|
- |
PMD_Required.INSTANCE, // |
36 |
|
- |
PMD_MaxLength.of( 40 ), // |
37 |
|
- |
PMD_DisplayLength.of( 20 ) ) ), // |
38 |
|
- |
new UiCRUDpSet( A_ValidOptions.TYPE, // |
39 |
|
- |
new ASet( PMD_Changeable.INSTANCE, // |
40 |
|
- |
PMD_Required.INSTANCE, // |
41 |
|
- |
PMD_UniqueGroup.INSTANCE, // |
42 |
|
- |
PMD_ColumnName.INSTANCE ), // |
43 |
|
- |
new ASet( PMD_Changeable.INSTANCE, // |
44 |
|
- |
PMD_Required.INSTANCE ) ), // |
45 |
|
- |
new ToOneSet( new ASet( PMD_Changeable.INSTANCE, // |
46 |
|
- |
PMD_Required.INSTANCE, // |
47 |
|
- |
PMD_CascadeDeleteThem.INSTANCE, // |
48 |
|
- |
PMD_UniqueGroup.INSTANCE, // |
49 |
|
- |
PMD_ColumnName.INSTANCE ), // |
50 |
|
- |
new ASet( PMD_Changeable.INSTANCE, // |
51 |
|
- |
PMD_Required.INSTANCE ) ), // |
52 |
|
- |
new ToManySet( new ASet( PMD_Changeable.INSTANCE, // |
53 |
|
- |
PMD_Required.INSTANCE, // |
54 |
|
- |
PMD_CascadeDeleteThem.INSTANCE ), // |
55 |
|
- |
new ASet( PMD_Changeable.INSTANCE, // |
56 |
|
- |
PMD_Required.INSTANCE ) ) ); |
57 |
|
- |
} |
58 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.aokeyhole.objects.factories.simple; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.aokeyhole.objects.*; |
|
5 |
+ |
import org.litesoft.aokeyhole.objects.attributes.*; |
|
6 |
+ |
import org.litesoft.aokeyhole.objects.factories.*; |
|
7 |
+ |
import org.litesoft.aokeyhole.objects.properties.*; |
|
8 |
+ |
|
|
9 |
+ |
public class SimplePropertyMetaDataDefinitionAccessor extends PropertyMetaDataDefinitionAccessorImpl { |
|
10 |
+ |
public SimplePropertyMetaDataDefinitionAccessor() { |
|
11 |
+ |
super( "Simple", // |
|
12 |
+ |
new ObjectSet( 0, true, "Object", // |
|
13 |
+ |
PMD_Active.INSTANCE, // |
|
14 |
+ |
PMD_TableName.INSTANCE ) // |
|
15 |
+ |
{ |
|
16 |
+ |
@Override |
|
17 |
+ |
public String getParentLabel( String pSubSystemName ) { |
|
18 |
+ |
return "Parent"; |
|
19 |
+ |
} |
|
20 |
+ |
|
|
21 |
+ |
@Override |
|
22 |
+ |
public void justCreated( ObjectMetaData pObjectMetaData ) { |
|
23 |
+ |
pObjectMetaData.createAttributeMetaDataID(); // Add the ID |
|
24 |
+ |
} |
|
25 |
+ |
}, // |
|
26 |
+ |
new ID_Set( PMD_ColumnName.INSTANCE ), // |
|
27 |
+ |
new UiCRUDpSet( A_String.TYPE, // |
|
28 |
+ |
new ASet( PMD_Changeable.INSTANCE, // |
|
29 |
+ |
PMD_Required.INSTANCE, // |
|
30 |
+ |
PMD_MaxLength.of( 40 ), // |
|
31 |
+ |
PMD_DisplayLength.of( 20 ), // |
|
32 |
+ |
PMD_UniqueGroup.INSTANCE, // |
|
33 |
+ |
PMD_ColumnName.INSTANCE ), // |
|
34 |
+ |
new ASet( PMD_Changeable.INSTANCE, // |
|
35 |
+ |
PMD_Required.INSTANCE, // |
|
36 |
+ |
PMD_MaxLength.of( 40 ), // |
|
37 |
+ |
PMD_DisplayLength.of( 20 ) ) ), // |
|
38 |
+ |
new UiCRUDpSet( A_ValidOptions.TYPE, // |
|
39 |
+ |
new ASet( PMD_Changeable.INSTANCE, // |
|
40 |
+ |
PMD_Required.INSTANCE, // |
|
41 |
+ |
PMD_UniqueGroup.INSTANCE, // |
|
42 |
+ |
PMD_ColumnName.INSTANCE ), // |
|
43 |
+ |
new ASet( PMD_Changeable.INSTANCE, // |
|
44 |
+ |
PMD_Required.INSTANCE ) ), // |
|
45 |
+ |
new ToOneSet( new ASet( PMD_Changeable.INSTANCE, // |
|
46 |
+ |
PMD_Required.INSTANCE, // |
|
47 |
+ |
PMD_CascadeDeleteThem.INSTANCE, // |
|
48 |
+ |
PMD_UniqueGroup.INSTANCE, // |
|
49 |
+ |
PMD_ColumnName.INSTANCE ), // |
|
50 |
+ |
new ASet( PMD_Changeable.INSTANCE, // |
|
51 |
+ |
PMD_Required.INSTANCE ) ), // |
|
52 |
+ |
new ToManySet( new ASet( PMD_Changeable.INSTANCE, // |
|
53 |
+ |
PMD_Required.INSTANCE, // |
|
54 |
+ |
PMD_CascadeDeleteThem.INSTANCE ), // |
|
55 |
+ |
new ASet( PMD_Changeable.INSTANCE, // |
|
56 |
+ |
PMD_Required.INSTANCE ) ) ); |
|
57 |
+ |
} |
|
58 |
+ |
} |