Skip to content

Commit 93b4e47

Browse files
committed
Add and update file
1 parent d8cd1f4 commit 93b4e47

File tree

11 files changed

+4781
-213
lines changed

11 files changed

+4781
-213
lines changed

AutoMonthlySupportSystem/src/automonthlysupportsystem/AutoMonthlySupportSystem.java

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import javafx.scene.layout.StackPane;
1515
import javafx.stage.Stage;
1616
import model.OraDbConnection;
17+
import view.MainView;
1718

1819
/**
1920
*
@@ -23,33 +24,35 @@ public class AutoMonthlySupportSystem extends Application {
2324

2425
@Override
2526
public void start(Stage primaryStage) {
26-
Button btn = new Button();
27-
btn.setText("Say 'Hello World'");
28-
btn.setOnAction(new EventHandler<ActionEvent>() {
29-
30-
@Override
31-
public void handle(ActionEvent event) {
32-
//new Controller().updateTableSpace(OraDbConnection.connection());
33-
for (String table: new Controller().getTableList(OraDbConnection.connection())) {
34-
System.out.println("> "+table);
35-
}
36-
System.out.println("Update.... !");
37-
38-
new Controller().updateTableIndex(OraDbConnection.connection());
39-
System.out.println(" < ================================ >\n");
40-
new Controller().rebuildTableScript(OraDbConnection.connection());
41-
42-
}
43-
});
44-
45-
StackPane root = new StackPane();
46-
root.getChildren().add(btn);
47-
48-
Scene scene = new Scene(root, 300, 250);
49-
50-
primaryStage.setTitle("Hello World!");
51-
primaryStage.setScene(scene);
52-
primaryStage.show();
27+
// Button btn = new Button();
28+
// btn.setText("Say 'Hello World'");
29+
// btn.setOnAction(new EventHandler<ActionEvent>() {
30+
//
31+
// @Override
32+
// public void handle(ActionEvent event) {
33+
// //new Controller().updateTableSpace(OraDbConnection.connection());
34+
// for (String table: new Controller().getTableList(OraDbConnection.connection())) {
35+
// System.out.println("> "+table);
36+
// }
37+
// System.out.println("Update.... !");
38+
//
39+
// new Controller().updateTableIndex(OraDbConnection.connection());
40+
// System.out.println(" < ================================ >\n");
41+
// new Controller().rebuildTableScript(OraDbConnection.connection());
42+
//
43+
// }
44+
// });
45+
//
46+
// StackPane root = new StackPane();
47+
// root.getChildren().add(btn);
48+
//
49+
// Scene scene = new Scene(root, 300, 250);
50+
//
51+
// primaryStage.setTitle("Hello World!");
52+
// primaryStage.setScene(scene);
53+
// primaryStage.show();
54+
55+
new MainView().setVisible(true);
5356
}
5457

5558
/**

AutoMonthlySupportSystem/src/core/Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void updateTableSpace(Connection connection) {
4343
}
4444

4545
private int updateFinalSizeOfTableSpace(String tableSpaceName, int usedSize, int size) {
46-
System.out.println("> " + tableSpaceName);
46+
//System.out.println("> " + tableSpaceName);
4747
int updateSize = 0;
4848
if (lList.TBS_USERS.equals(tableSpaceName)) {
4949
int[] siz = lList.TABLESPACE_SIZES.get(lList.TBS_USERS);
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* To change this license header, choose License Headers in Project Properties.
3+
* To change this template file, choose Tools | Templates
4+
* and open the template in the editor.
5+
*/
6+
package core;
7+
8+
import javax.swing.SwingWorker;
9+
10+
/**
11+
*
12+
* @author Anik
13+
*/
14+
public class ProcessMainWindow extends SwingWorker<Void, String> {
15+
16+
private int key=0;
17+
18+
public ProcessMainWindow(int key) {
19+
this.key=key;
20+
}
21+
22+
23+
@Override
24+
protected Void doInBackground() throws Exception {
25+
26+
for(int i=0;i<5;i++){
27+
firePropertyChange("writeConsole", null, "> Update file "+i);
28+
System.out.println("----------- "+i);
29+
Thread.sleep(10);
30+
}
31+
32+
return null;
33+
}
34+
35+
}

AutoMonthlySupportSystem/src/model/service/SQLList.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ private void setAllSpaceSize(){
5353
int[] sizeForSystem={250};
5454
int[] sizeForSysax={68};
5555
int[] sizeForUndotbs1={80};
56+
int[] sizeForUsers02={50,55,60,65};
57+
int[] sizeForSystem02={200};
58+
int[] sizeForIndex={60,65,70,75};
5659

5760
TABLESPACE_SIZES.put(TBS_USERS, sizeForUsers);
5861
TABLESPACE_SIZES.put(TBS_SYSAUX, sizeForSysax);
Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,222 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
4+
<NonVisualComponents>
5+
<Menu class="javax.swing.JMenuBar" name="jMenuBar1">
6+
<SubComponents>
7+
<Menu class="javax.swing.JMenu" name="jMenu1">
8+
<Properties>
9+
<Property name="text" type="java.lang.String" value="File"/>
10+
</Properties>
11+
</Menu>
12+
<Menu class="javax.swing.JMenu" name="jMenu2">
13+
<Properties>
14+
<Property name="text" type="java.lang.String" value="Edit"/>
15+
</Properties>
16+
</Menu>
17+
</SubComponents>
18+
</Menu>
19+
</NonVisualComponents>
20+
<Properties>
21+
<Property name="defaultCloseOperation" type="int" value="3"/>
22+
<Property name="title" type="java.lang.String" value="Auto Monthly Support System"/>
23+
<Property name="resizable" type="boolean" value="false"/>
24+
</Properties>
25+
<SyntheticProperties>
26+
<SyntheticProperty name="menuBar" type="java.lang.String" value="jMenuBar1"/>
27+
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
28+
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
29+
</SyntheticProperties>
30+
<AuxValues>
31+
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
32+
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
33+
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
34+
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
35+
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
36+
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
37+
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
38+
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
39+
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
40+
</AuxValues>
41+
42+
<Layout>
43+
<DimensionLayout dim="0">
44+
<Group type="103" groupAlignment="0" attributes="0">
45+
<Group type="102" alignment="0" attributes="0">
46+
<EmptySpace max="-2" attributes="0"/>
47+
<Group type="103" groupAlignment="0" max="-2" attributes="0">
48+
<Component id="penAtrebute" max="32767" attributes="0"/>
49+
<Component id="jScrollPane1" max="32767" attributes="0"/>
50+
</Group>
51+
<EmptySpace max="-2" attributes="0"/>
52+
<Component id="jPanel2" min="-2" max="-2" attributes="0"/>
53+
<EmptySpace max="-2" attributes="0"/>
54+
</Group>
55+
</Group>
56+
</DimensionLayout>
57+
<DimensionLayout dim="1">
58+
<Group type="103" groupAlignment="0" attributes="0">
59+
<Group type="102" alignment="0" attributes="0">
60+
<EmptySpace max="-2" attributes="0"/>
61+
<Group type="103" groupAlignment="0" attributes="0">
62+
<Component id="jPanel2" max="32767" attributes="0"/>
63+
<Group type="102" attributes="0">
64+
<Component id="penAtrebute" max="32767" attributes="0"/>
65+
<EmptySpace max="-2" attributes="0"/>
66+
<Component id="jScrollPane1" min="-2" pref="139" max="-2" attributes="0"/>
67+
</Group>
68+
</Group>
69+
<EmptySpace max="-2" attributes="0"/>
70+
</Group>
71+
</Group>
72+
</DimensionLayout>
73+
</Layout>
74+
<SubComponents>
75+
<Container class="javax.swing.JPanel" name="penAtrebute">
76+
<Properties>
77+
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
78+
<Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">
79+
<EtchetBorder>
80+
<Color PropertyName="highlight" blue="ff" green="ff" id="white" palette="1" red="ff" type="palette"/>
81+
<Color PropertyName="shadow" blue="80" green="80" id="gray" palette="1" red="80" type="palette"/>
82+
</EtchetBorder>
83+
</Border>
84+
</Property>
85+
</Properties>
86+
87+
<Layout>
88+
<DimensionLayout dim="0">
89+
<Group type="103" groupAlignment="0" attributes="0">
90+
<Group type="102" alignment="0" attributes="0">
91+
<EmptySpace min="-2" pref="139" max="-2" attributes="0"/>
92+
<Component id="btnProcessStart" min="-2" pref="190" max="-2" attributes="0"/>
93+
<EmptySpace pref="161" max="32767" attributes="0"/>
94+
</Group>
95+
</Group>
96+
</DimensionLayout>
97+
<DimensionLayout dim="1">
98+
<Group type="103" groupAlignment="0" attributes="0">
99+
<Group type="102" alignment="1" attributes="0">
100+
<EmptySpace pref="120" max="32767" attributes="0"/>
101+
<Component id="btnProcessStart" min="-2" pref="61" max="-2" attributes="0"/>
102+
<EmptySpace min="-2" pref="112" max="-2" attributes="0"/>
103+
</Group>
104+
</Group>
105+
</DimensionLayout>
106+
</Layout>
107+
<SubComponents>
108+
<Component class="javax.swing.JButton" name="btnProcessStart">
109+
<Properties>
110+
<Property name="text" type="java.lang.String" value="Process Start"/>
111+
</Properties>
112+
<Events>
113+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnProcessStartActionPerformed"/>
114+
</Events>
115+
</Component>
116+
</SubComponents>
117+
</Container>
118+
<Container class="javax.swing.JPanel" name="jPanel2">
119+
120+
<Layout>
121+
<DimensionLayout dim="0">
122+
<Group type="103" groupAlignment="1" attributes="0">
123+
<Group type="102" alignment="1" attributes="0">
124+
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
125+
<Group type="103" groupAlignment="1" max="-2" attributes="0">
126+
<Component id="jScrollPane3" pref="207" max="32767" attributes="0"/>
127+
<Component id="jScrollPane2" pref="0" max="32767" attributes="0"/>
128+
</Group>
129+
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
130+
</Group>
131+
</Group>
132+
</DimensionLayout>
133+
<DimensionLayout dim="1">
134+
<Group type="103" groupAlignment="0" attributes="0">
135+
<Group type="102" alignment="0" attributes="0">
136+
<Component id="jScrollPane2" min="-2" pref="218" max="-2" attributes="0"/>
137+
<EmptySpace max="-2" attributes="0"/>
138+
<Component id="jScrollPane3" pref="0" max="32767" attributes="0"/>
139+
</Group>
140+
</Group>
141+
</DimensionLayout>
142+
</Layout>
143+
<SubComponents>
144+
<Container class="javax.swing.JScrollPane" name="jScrollPane2">
145+
<AuxValues>
146+
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
147+
</AuxValues>
148+
149+
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
150+
<SubComponents>
151+
<Component class="javax.swing.JTable" name="tblTableScript">
152+
<Properties>
153+
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
154+
<Table columnCount="1" rowCount="0">
155+
<Column editable="true" title="Table Script" type="java.lang.Object"/>
156+
</Table>
157+
</Property>
158+
<Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor">
159+
<TableColumnModel selectionModel="0">
160+
<Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true">
161+
<Title/>
162+
<Editor/>
163+
<Renderer/>
164+
</Column>
165+
</TableColumnModel>
166+
</Property>
167+
<Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor">
168+
<TableHeader reorderingAllowed="true" resizingAllowed="true"/>
169+
</Property>
170+
</Properties>
171+
</Component>
172+
</SubComponents>
173+
</Container>
174+
<Container class="javax.swing.JScrollPane" name="jScrollPane3">
175+
<AuxValues>
176+
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
177+
</AuxValues>
178+
179+
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
180+
<SubComponents>
181+
<Component class="javax.swing.JTable" name="tblShowTableName">
182+
<Properties>
183+
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
184+
<Table columnCount="1" rowCount="0">
185+
<Column editable="true" title="Table Name" type="java.lang.Object"/>
186+
</Table>
187+
</Property>
188+
<Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor">
189+
<TableColumnModel selectionModel="0">
190+
<Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true">
191+
<Title/>
192+
<Editor/>
193+
<Renderer/>
194+
</Column>
195+
</TableColumnModel>
196+
</Property>
197+
<Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor">
198+
<TableHeader reorderingAllowed="true" resizingAllowed="true"/>
199+
</Property>
200+
</Properties>
201+
</Component>
202+
</SubComponents>
203+
</Container>
204+
</SubComponents>
205+
</Container>
206+
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
207+
<AuxValues>
208+
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
209+
</AuxValues>
210+
211+
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
212+
<SubComponents>
213+
<Component class="javax.swing.JTextArea" name="console">
214+
<Properties>
215+
<Property name="columns" type="int" value="20"/>
216+
<Property name="rows" type="int" value="5"/>
217+
</Properties>
218+
</Component>
219+
</SubComponents>
220+
</Container>
221+
</SubComponents>
222+
</Form>

0 commit comments

Comments
 (0)