Index: .idea/sonarIssues.xml =================================================================== diff -u -r8cab9e7cc85dd66414b4ff23410a53edb8a93bea -r6b8c4d7b039335012a2a19df87003435e1255391 --- .idea/sonarIssues.xml (.../sonarIssues.xml) (revision 8cab9e7cc85dd66414b4ff23410a53edb8a93bea) +++ .idea/sonarIssues.xml (.../sonarIssues.xml) (revision 6b8c4d7b039335012a2a19df87003435e1255391) @@ -913,11 +913,21 @@ + + + + + + + + + + Index: standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/aggregateResult/AggregateResult_DDL_Oracle.sql =================================================================== diff -u --- standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/aggregateResult/AggregateResult_DDL_Oracle.sql (revision 0) +++ standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/aggregateResult/AggregateResult_DDL_Oracle.sql (revision 6b8c4d7b039335012a2a19df87003435e1255391) @@ -0,0 +1,138 @@ +/* + * JsTree 추적 로그 테이블 + * 트리거 Log를 저장합니다. + */ +CREATE TABLE T_JSTREE_AGGREGATE_RESULT_LOG +( + C_ID NUMBER NOT NULL, + C_PARENTID NUMBER NOT NULL, + C_POSITION NUMBER NOT NULL, + C_LEFT NUMBER NOT NULL, + C_RIGHT NUMBER NOT NULL, + C_LEVEL NUMBER NOT NULL, + C_TITLE VARCHAR2(4000 BYTE), + C_TYPE VARCHAR2(4000 BYTE), + C_METHOD VARCHAR2(4000 BYTE), + C_STATE VARCHAR2(4000 BYTE), + C_DATE DATE NOT NULL +); + +COMMENT ON TABLE T_JSTREE_AGGREGATE_RESULT_LOG IS '기본 트리 스키마 트리거 로그'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT_LOG.C_ID IS '노드 아이디'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT_LOG.C_PARENTID IS '부모 노드 아이디'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT_LOG.C_POSITION IS '노드 포지션'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT_LOG.C_LEFT IS '노드 좌측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT_LOG.C_RIGHT IS '노드 우측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT_LOG.C_LEVEL IS '노드 DEPTH '; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT_LOG.C_TITLE IS '노드 명'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT_LOG.C_TYPE IS '노드 타입'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT_LOG.C_METHOD IS '노드 변경 행위'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT_LOG.C_STATE IS '노드 상태값 ( 이전인지. 이후인지)'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT_LOG.C_DATE IS '노드 변경 시'; + +/* + * JsTree + */ +CREATE TABLE T_JSTREE_AGGREGATE_RESULT +( + C_ID NUMBER NOT NULL, + C_PARENTID NUMBER NOT NULL, + C_POSITION NUMBER NOT NULL, + C_LEFT NUMBER NOT NULL, + C_RIGHT NUMBER NOT NULL, + C_LEVEL NUMBER NOT NULL, + C_TITLE VARCHAR2(4000 BYTE), + C_TYPE VARCHAR2(4000 BYTE), + + C_NUMBER_OF_ADVANTAGES NUMBER, + C_LIKE_COUNT NUMBER, + C_TOTAL_REGISTERED_POSTS NUMBER, + C_REGISTERED_HASH_TAG NUMBER, + CONSTRAINT T_JSTREE_AGGREGATE_RESULT_PK PRIMARY KEY (C_ID) + /* + * CONSTRAINT T_JSTREE_AGGREGATE_RESULT_FK1 FOREIGN KEY (OTHER_ID) REFERENCES OTHER T_JSTREE_AGGREGATE_RESULT(C_ID) ON DELETE CASCADE + */ +); + +COMMENT ON TABLE T_JSTREE_AGGREGATE_RESULT IS '기본 트리 스키마'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_ID IS '노드 아이디'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_PARENTID IS '부모 노드 아이디'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_POSITION IS '노드 포지션'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_LEFT IS '노드 좌측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_RIGHT IS '노드 우측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_LEVEL IS '노드 DEPTH '; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_TITLE IS '노드 명'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_TYPE IS '노드 타입'; + +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_NUMBER_OF_ADVANTAGES IS '우위 스펙 개수'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_LIKE_COUNT IS '좋아요 개수'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_TOTAL_REGISTERED_POSTS IS '등록된 글 총 개수'; +COMMENT ON COLUMN T_JSTREE_AGGREGATE_RESULT.C_REGISTERED_HASH_TAG IS '등록된 해쉬 태그 개수'; +/* + * 인덱스는 되도록 걸지 말것. + * CREATE UNIQUE INDEX I_COMPREHENSIVETREE ON T_JSTREE_AGGREGATE_RESULT + * ("C_ID" ASC) + * DROP SEQUENCE S_JSTREE_AGGREGATE_RESULT; + */ + + +CREATE SEQUENCE S_JSTREE_AGGREGATE_RESULT + START WITH 10 + MAXVALUE 999999999999999999999999999 + MINVALUE 0 + NOCYCLE + CACHE 20 + NOORDER; + +/* + * JsTree 트리거 + */ +CREATE OR REPLACE TRIGGER "TG_JSTREE_AGGREGATE_RESULT" +BEFORE DELETE OR INSERT OR UPDATE +ON T_JSTREE_AGGREGATE_RESULT +REFERENCING NEW AS NEW OLD AS OLD +FOR EACH ROW +DECLARE +tmpVar NUMBER; +/****************************************************************************** + NAME: TRIGGER_COMPREHENSIVETREE + PURPOSE: + + REVISIONS: + Ver Date Author Description + --------- ---------- --------------- ------------------------------------ + 1.0 2012-08-29 1. Created this trigger. + + NOTES: + + Automatically available Auto Replace Keywords: + Object Name: TRIGGER_COMPREHENSIVETREE + Sysdate: 2012-08-29 + Date and Time: 2012-08-29, 오후 5:26:44, and 2012-08-29 오후 5:26:44 + Username: (set in TOAD Options, Proc Templates) + Table Name: T_JSTREE_AGGREGATE_RESULT (set in the "New PL/SQL Object" dialog) + Trigger Options: (set in the "New PL/SQL Object" dialog) +******************************************************************************/ +BEGIN + tmpVar := 0; + IF UPDATING THEN + insert into T_JSTREE_AGGREGATE_RESULT_LOG + values (:old.C_ID,:old.C_PARENTID,:old.C_POSITION,:old.C_LEFT,:old.C_RIGHT,:old.C_LEVEL,:old.C_TITLE,:old.C_TYPE,'update','변경이전데이터',sysdate); + insert into T_JSTREE_AGGREGATE_RESULT_LOG + values (:new.C_ID,:new.C_PARENTID,:new.C_POSITION,:new.C_LEFT,:new.C_RIGHT,:new.C_LEVEL,:new.C_TITLE,:new.C_TYPE,'update','변경이후데이터',sysdate); + END IF; + IF DELETING THEN + insert into T_JSTREE_AGGREGATE_RESULT_LOG + values (:old.C_ID,:old.C_PARENTID,:old.C_POSITION,:old.C_LEFT,:old.C_RIGHT,:old.C_LEVEL,:old.C_TITLE,:old.C_TYPE,'delete','삭제된데이터',sysdate); + END IF; + IF INSERTING THEN + insert into T_JSTREE_AGGREGATE_RESULT_LOG + values (:new.C_ID,:new.C_PARENTID,:new.C_POSITION,:new.C_LEFT,:new.C_RIGHT,:new.C_LEVEL,:new.C_TITLE,:new.C_TYPE,'insert','삽입된데이터',sysdate); + END IF; + + EXCEPTION + WHEN OTHERS THEN + -- Consider logging the error and then re-raise + RAISE; +END TG_JSTREE_AGGREGATE_RESULT; +/ \ No newline at end of file FishEye: Tag 6b8c4d7b039335012a2a19df87003435e1255391 refers to a dead (removed) revision in file `standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/aggregateResult/rivalWar_aggregateResult_DDL_Oracle.sql'. FishEye: No comparison available. Pass `N' to diff? Index: standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/directChat/DirectChat_DDL_Oracle.sql =================================================================== diff -u --- standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/directChat/DirectChat_DDL_Oracle.sql (revision 0) +++ standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/directChat/DirectChat_DDL_Oracle.sql (revision 6b8c4d7b039335012a2a19df87003435e1255391) @@ -0,0 +1,140 @@ +/* + * JsTree 추적 로그 테이블 + * 트리거 Log를 저장합니다. + */ +CREATE TABLE T_JSTREE_DIRECTCHAT_LOG +( + C_ID NUMBER NOT NULL, + C_PARENTID NUMBER NOT NULL, + C_POSITION NUMBER NOT NULL, + C_LEFT NUMBER NOT NULL, + C_RIGHT NUMBER NOT NULL, + C_LEVEL NUMBER NOT NULL, + C_TITLE VARCHAR2(4000 BYTE), + C_TYPE VARCHAR2(4000 BYTE), + C_METHOD VARCHAR2(4000 BYTE), + C_STATE VARCHAR2(4000 BYTE), + C_DATE DATE NOT NULL +); + +COMMENT ON TABLE T_JSTREE_DIRECTCHAT_LOG IS '기본 트리 스키마 트리거 로그'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT_LOG.C_ID IS '노드 아이디'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT_LOG.C_PARENTID IS '부모 노드 아이디'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT_LOG.C_POSITION IS '노드 포지션'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT_LOG.C_LEFT IS '노드 좌측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT_LOG.C_RIGHT IS '노드 우측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT_LOG.C_LEVEL IS '노드 DEPTH '; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT_LOG.C_TITLE IS '노드 명'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT_LOG.C_TYPE IS '노드 타입'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT_LOG.C_METHOD IS '노드 변경 행위'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT_LOG.C_STATE IS '노드 상태값 ( 이전인지. 이후인지)'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT_LOG.C_DATE IS '노드 변경 시'; + +/* + * JsTree + */ +CREATE TABLE T_JSTREE_DIRECTCHAT +( + C_ID NUMBER NOT NULL, + C_PARENTID NUMBER NOT NULL, + C_POSITION NUMBER NOT NULL, + C_LEFT NUMBER NOT NULL, + C_RIGHT NUMBER NOT NULL, + C_LEVEL NUMBER NOT NULL, + C_TITLE VARCHAR2(4000 BYTE), + C_TYPE VARCHAR2(4000 BYTE), + + C_USERID NUMBER, + C_TIME VARCHAR2(4000 BYTE), + C_LIKECOUNT NUMBER, + C_HATECOUNT NUMBER, + C_CAMP NUMBER, + CONSTRAINT T_JSTREE_DIRECTCHAT_PK PRIMARY KEY (C_ID) + /* + * CONSTRAINT T_JSTREE_DIRECTCHAT_FK1 FOREIGN KEY (OTHER_ID) REFERENCES OTHER T_JSTREE_DIRECTCHAT(C_ID) ON DELETE CASCADE + */ +); + +COMMENT ON TABLE T_JSTREE_DIRECTCHAT IS '기본 트리 스키마'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_ID IS '노드 아이디'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_PARENTID IS '부모 노드 아이디'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_POSITION IS '노드 포지션'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_LEFT IS '노드 좌측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_RIGHT IS '노드 우측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_LEVEL IS '노드 DEPTH '; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_TITLE IS '노드 명'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_TYPE IS '노드 타입'; + +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_USERID IS '비교토론 등록사용자 아이디'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_TIME IS '비교토론 등록시간'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_LIKECOUNT IS '비교토론 좋아요 수'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_HATECOUNT IS '비교토론 싫어요 수'; +COMMENT ON COLUMN T_JSTREE_DIRECTCHAT.C_CAMP IS '비교토론 등록 진영 구분'; +/* + * 인덱스는 되도록 걸지 말것. + * CREATE UNIQUE INDEX I_COMPREHENSIVETREE ON T_JSTREE_DIRECTCHAT + * ("C_ID" ASC) + * DROP SEQUENCE S_JSTREE_DIRECTCHAT; + */ + + +CREATE SEQUENCE S_JSTREE_DIRECTCHAT + START WITH 10 + MAXVALUE 999999999999999999999999999 + MINVALUE 0 + NOCYCLE + CACHE 20 + NOORDER; + +/* + * JsTree 트리거 + */ +CREATE OR REPLACE TRIGGER "TRIGGER_JSTREE_DIRECTCHAT" +BEFORE DELETE OR INSERT OR UPDATE +ON T_JSTREE_DIRECTCHAT +REFERENCING NEW AS NEW OLD AS OLD +FOR EACH ROW +DECLARE +tmpVar NUMBER; +/****************************************************************************** + NAME: TRIGGER_COMPREHENSIVETREE + PURPOSE: + + REVISIONS: + Ver Date Author Description + --------- ---------- --------------- ------------------------------------ + 1.0 2012-08-29 1. Created this trigger. + + NOTES: + + Automatically available Auto Replace Keywords: + Object Name: TRIGGER_COMPREHENSIVETREE + Sysdate: 2012-08-29 + Date and Time: 2012-08-29, 오후 5:26:44, and 2012-08-29 오후 5:26:44 + Username: (set in TOAD Options, Proc Templates) + Table Name: T_JSTREE_DIRECTCHAT (set in the "New PL/SQL Object" dialog) + Trigger Options: (set in the "New PL/SQL Object" dialog) +******************************************************************************/ +BEGIN + tmpVar := 0; + IF UPDATING THEN + insert into T_JSTREE_DIRECTCHAT_LOG + values (:old.C_ID,:old.C_PARENTID,:old.C_POSITION,:old.C_LEFT,:old.C_RIGHT,:old.C_LEVEL,:old.C_TITLE,:old.C_TYPE,'update','변경이전데이터',sysdate); + insert into T_JSTREE_DIRECTCHAT_LOG + values (:new.C_ID,:new.C_PARENTID,:new.C_POSITION,:new.C_LEFT,:new.C_RIGHT,:new.C_LEVEL,:new.C_TITLE,:new.C_TYPE,'update','변경이후데이터',sysdate); + END IF; + IF DELETING THEN + insert into T_JSTREE_DIRECTCHAT_LOG + values (:old.C_ID,:old.C_PARENTID,:old.C_POSITION,:old.C_LEFT,:old.C_RIGHT,:old.C_LEVEL,:old.C_TITLE,:old.C_TYPE,'delete','삭제된데이터',sysdate); + END IF; + IF INSERTING THEN + insert into T_JSTREE_DIRECTCHAT_LOG + values (:new.C_ID,:new.C_PARENTID,:new.C_POSITION,:new.C_LEFT,:new.C_RIGHT,:new.C_LEVEL,:new.C_TITLE,:new.C_TYPE,'insert','삽입된데이터',sysdate); + END IF; + + EXCEPTION + WHEN OTHERS THEN + -- Consider logging the error and then re-raise + RAISE; +END TRIGGER_JSTREE_DIRECTCHAT; +/ \ No newline at end of file FishEye: Tag 6b8c4d7b039335012a2a19df87003435e1255391 refers to a dead (removed) revision in file `standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/directChat/rivalWar_DirectChat_DDL_Oracle.sql'. FishEye: No comparison available. Pass `N' to diff? Index: standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/menu/Menu_DDL_Oracle.sql =================================================================== diff -u --- standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/menu/Menu_DDL_Oracle.sql (revision 0) +++ standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/menu/Menu_DDL_Oracle.sql (revision 6b8c4d7b039335012a2a19df87003435e1255391) @@ -0,0 +1,134 @@ +/* + * JsTree 추적 로그 테이블 + * 트리거 Log를 저장합니다. + */ +CREATE TABLE T_JSTREE_MENU_LOG +( + C_ID NUMBER NOT NULL, + C_PARENTID NUMBER NOT NULL, + C_POSITION NUMBER NOT NULL, + C_LEFT NUMBER NOT NULL, + C_RIGHT NUMBER NOT NULL, + C_LEVEL NUMBER NOT NULL, + C_TITLE VARCHAR2(4000 BYTE), + C_TYPE VARCHAR2(4000 BYTE), + C_METHOD VARCHAR2(4000 BYTE), + C_STATE VARCHAR2(4000 BYTE), + C_DATE DATE NOT NULL +); + +COMMENT ON TABLE T_JSTREE_MENU_LOG IS '기본 트리 스키마 트리거 로그'; +COMMENT ON COLUMN T_JSTREE_MENU_LOG.C_ID IS '노드 아이디'; +COMMENT ON COLUMN T_JSTREE_MENU_LOG.C_PARENTID IS '부모 노드 아이디'; +COMMENT ON COLUMN T_JSTREE_MENU_LOG.C_POSITION IS '노드 포지션'; +COMMENT ON COLUMN T_JSTREE_MENU_LOG.C_LEFT IS '노드 좌측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_MENU_LOG.C_RIGHT IS '노드 우측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_MENU_LOG.C_LEVEL IS '노드 DEPTH '; +COMMENT ON COLUMN T_JSTREE_MENU_LOG.C_TITLE IS '노드 명'; +COMMENT ON COLUMN T_JSTREE_MENU_LOG.C_TYPE IS '노드 타입'; +COMMENT ON COLUMN T_JSTREE_MENU_LOG.C_METHOD IS '노드 변경 행위'; +COMMENT ON COLUMN T_JSTREE_MENU_LOG.C_STATE IS '노드 상태값 ( 이전인지. 이후인지)'; +COMMENT ON COLUMN T_JSTREE_MENU_LOG.C_DATE IS '노드 변경 시'; + +/* + * JsTree + */ +CREATE TABLE T_JSTREE_MENU +( + C_ID NUMBER NOT NULL, + C_PARENTID NUMBER NOT NULL, + C_POSITION NUMBER NOT NULL, + C_LEFT NUMBER NOT NULL, + C_RIGHT NUMBER NOT NULL, + C_LEVEL NUMBER NOT NULL, + C_TITLE VARCHAR2(4000 BYTE), + C_TYPE VARCHAR2(4000 BYTE), + + C_VOTE_START_DATE VARCHAR2(4000 BYTE), + C_VOTE_END_DATE VARCHAR2(4000 BYTE), + CONSTRAINT T_JSTREE_MENU_PK PRIMARY KEY (C_ID) + /* + * CONSTRAINT T_JSTREE_MENU_FK1 FOREIGN KEY (OTHER_ID) REFERENCES OTHER T_JSTREE_MENU(C_ID) ON DELETE CASCADE + */ +); + +COMMENT ON TABLE T_JSTREE_MENU IS '기본 트리 스키마'; +COMMENT ON COLUMN T_JSTREE_MENU.C_ID IS '노드 아이디'; +COMMENT ON COLUMN T_JSTREE_MENU.C_PARENTID IS '부모 노드 아이디'; +COMMENT ON COLUMN T_JSTREE_MENU.C_POSITION IS '노드 포지션'; +COMMENT ON COLUMN T_JSTREE_MENU.C_LEFT IS '노드 좌측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_MENU.C_RIGHT IS '노드 우측 끝 포인트'; +COMMENT ON COLUMN T_JSTREE_MENU.C_LEVEL IS '노드 DEPTH '; +COMMENT ON COLUMN T_JSTREE_MENU.C_TITLE IS '노드 명'; +COMMENT ON COLUMN T_JSTREE_MENU.C_TYPE IS '노드 타입'; + +COMMENT ON COLUMN T_JSTREE_MENU.C_VOTE_START_DATE IS '비교토론 시작일'; +COMMENT ON COLUMN T_JSTREE_MENU.C_VOTE_END_DATE IS '비교토론 종료일'; +/* + * 인덱스는 되도록 걸지 말것. + * CREATE UNIQUE INDEX I_COMPREHENSIVETREE ON T_JSTREE_MENU + * ("C_ID" ASC) + * DROP SEQUENCE S_JSTREE_MENU; + */ + + +CREATE SEQUENCE S_JSTREE_MENU + START WITH 10 + MAXVALUE 999999999999999999999999999 + MINVALUE 0 + NOCYCLE + CACHE 20 + NOORDER; + +/* + * JsTree 트리거 + */ +CREATE OR REPLACE TRIGGER "TRIGGER_JSTREE_MENU" +BEFORE DELETE OR INSERT OR UPDATE +ON T_JSTREE_MENU +REFERENCING NEW AS NEW OLD AS OLD +FOR EACH ROW +DECLARE +tmpVar NUMBER; +/****************************************************************************** + NAME: TRIGGER_COMPREHENSIVETREE + PURPOSE: + + REVISIONS: + Ver Date Author Description + --------- ---------- --------------- ------------------------------------ + 1.0 2012-08-29 1. Created this trigger. + + NOTES: + + Automatically available Auto Replace Keywords: + Object Name: TRIGGER_COMPREHENSIVETREE + Sysdate: 2012-08-29 + Date and Time: 2012-08-29, 오후 5:26:44, and 2012-08-29 오후 5:26:44 + Username: (set in TOAD Options, Proc Templates) + Table Name: T_JSTREE_MENU (set in the "New PL/SQL Object" dialog) + Trigger Options: (set in the "New PL/SQL Object" dialog) +******************************************************************************/ +BEGIN + tmpVar := 0; + IF UPDATING THEN + insert into T_JSTREE_MENU_LOG + values (:old.C_ID,:old.C_PARENTID,:old.C_POSITION,:old.C_LEFT,:old.C_RIGHT,:old.C_LEVEL,:old.C_TITLE,:old.C_TYPE,'update','변경이전데이터',sysdate); + insert into T_JSTREE_MENU_LOG + values (:new.C_ID,:new.C_PARENTID,:new.C_POSITION,:new.C_LEFT,:new.C_RIGHT,:new.C_LEVEL,:new.C_TITLE,:new.C_TYPE,'update','변경이후데이터',sysdate); + END IF; + IF DELETING THEN + insert into T_JSTREE_MENU_LOG + values (:old.C_ID,:old.C_PARENTID,:old.C_POSITION,:old.C_LEFT,:old.C_RIGHT,:old.C_LEVEL,:old.C_TITLE,:old.C_TYPE,'delete','삭제된데이터',sysdate); + END IF; + IF INSERTING THEN + insert into T_JSTREE_MENU_LOG + values (:new.C_ID,:new.C_PARENTID,:new.C_POSITION,:new.C_LEFT,:new.C_RIGHT,:new.C_LEVEL,:new.C_TITLE,:new.C_TYPE,'insert','삽입된데이터',sysdate); + END IF; + + EXCEPTION + WHEN OTHERS THEN + -- Consider logging the error and then re-raise + RAISE; +END TRIGGER_JSTREE_MENU; +/ \ No newline at end of file FishEye: Tag 6b8c4d7b039335012a2a19df87003435e1255391 refers to a dead (removed) revision in file `standard/project/web/script/ddl/oracle/egovframework/api/rivalWar/menu/rivalWar_Menu_DDL_Oracle.sql'. FishEye: No comparison available. Pass `N' to diff? Index: standard/project/web/script/dml/oracle/egovframework/api/rivalWar/aggregateResult/AggregateResult_Data_Script_Oracle.sql =================================================================== diff -u --- standard/project/web/script/dml/oracle/egovframework/api/rivalWar/aggregateResult/AggregateResult_Data_Script_Oracle.sql (revision 0) +++ standard/project/web/script/dml/oracle/egovframework/api/rivalWar/aggregateResult/AggregateResult_Data_Script_Oracle.sql (revision 6b8c4d7b039335012a2a19df87003435e1255391) @@ -0,0 +1,25 @@ +Insert into T_JSTREE_AGGREGATE_RESULT + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_NUMBER_OF_ADVANTAGES, C_LIKE_COUNT, C_TOTAL_REGISTERED_POSTS, C_REGISTERED_HASH_TAG) +Values + (1, 0, 0, 1, 8, + 0, 'Root Node', 'root', 3, 313, 131, 1); +Insert into T_JSTREE_AGGREGATE_RESULT + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_NUMBER_OF_ADVANTAGES, C_LIKE_COUNT, C_TOTAL_REGISTERED_POSTS, C_REGISTERED_HASH_TAG) +Values + (2, 1, 0, 2, 7, + 1, 'First Child', 'drive', 3, 313, 131, 1); +Insert into T_JSTREE_AGGREGATE_RESULT + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_NUMBER_OF_ADVANTAGES, C_LIKE_COUNT, C_TOTAL_REGISTERED_POSTS, C_REGISTERED_HASH_TAG) +Values + (3, 2, 0, 3, 4, + 2, 'Leaf Node', 'default', 3, 313, 131, 1); +Insert into T_JSTREE_AGGREGATE_RESULT + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_NUMBER_OF_ADVANTAGES, C_LIKE_COUNT, C_TOTAL_REGISTERED_POSTS, C_REGISTERED_HASH_TAG) +Values + (4, 2, 1, 5, 6, + 2, 'Branch Node', 'folder', 3, 313, 131, 1); +COMMIT; Index: standard/project/web/script/dml/oracle/egovframework/api/rivalWar/directChat/DirectChat_Data_Script_Oracle.sql =================================================================== diff -u --- standard/project/web/script/dml/oracle/egovframework/api/rivalWar/directChat/DirectChat_Data_Script_Oracle.sql (revision 0) +++ standard/project/web/script/dml/oracle/egovframework/api/rivalWar/directChat/DirectChat_Data_Script_Oracle.sql (revision 6b8c4d7b039335012a2a19df87003435e1255391) @@ -0,0 +1,25 @@ +Insert into T_JSTREE_DIRECTCHAT + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_USERID, C_TIME, C_LIKECOUNT, C_HATECOUNT, C_CAMP) +Values + (1, 0, 0, 1, 8, + 0, 'Root Node', 'root', 3, '2017-03-13 03:13:31', 313, 131, 1); +Insert into T_JSTREE_DIRECTCHAT + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_USERID, C_TIME, C_LIKECOUNT, C_HATECOUNT, C_CAMP) +Values + (2, 1, 0, 2, 7, + 1, 'First Child', 'drive', 3, '2017-03-13 03:13:31', 313, 131, 1); +Insert into T_JSTREE_DIRECTCHAT + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_USERID, C_TIME, C_LIKECOUNT, C_HATECOUNT, C_CAMP) +Values + (3, 2, 0, 3, 4, + 2, 'Leaf Node', 'default', 3, '2017-03-13 03:13:31', 313, 131, 1); +Insert into T_JSTREE_DIRECTCHAT + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_USERID, C_TIME, C_LIKECOUNT, C_HATECOUNT, C_CAMP) +Values + (4, 2, 1, 5, 6, + 2, 'Branch Node', 'folder', 3, '2017-03-13 03:13:31', 313, 131, 1); +COMMIT; \ No newline at end of file Index: standard/project/web/script/dml/oracle/egovframework/api/rivalWar/menu/Menu_Data_Script_Oracle.sql =================================================================== diff -u --- standard/project/web/script/dml/oracle/egovframework/api/rivalWar/menu/Menu_Data_Script_Oracle.sql (revision 0) +++ standard/project/web/script/dml/oracle/egovframework/api/rivalWar/menu/Menu_Data_Script_Oracle.sql (revision 6b8c4d7b039335012a2a19df87003435e1255391) @@ -0,0 +1,25 @@ +Insert into T_JSTREE_MENU + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_VOTE_START_DATE, C_VOTE_END_DATE) +Values + (1, 0, 0, 1, 8, + 0, 'Root Node', 'root', '2017-01-01', '2017-03-13'); +Insert into T_JSTREE_MENU + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_VOTE_START_DATE, C_VOTE_END_DATE) +Values + (2, 1, 0, 2, 7, + 1, 'First Child', 'drive', '2017-01-01', '2017-03-13'); +Insert into T_JSTREE_MENU + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_VOTE_START_DATE, C_VOTE_END_DATE) +Values + (3, 2, 0, 3, 4, + 2, 'Leaf Node', 'default', '2017-01-01', '2017-03-13'); +Insert into T_JSTREE_MENU + (C_ID, C_PARENTID, C_POSITION, C_LEFT, C_RIGHT, + C_LEVEL, C_TITLE, C_TYPE, C_VOTE_START_DATE, C_VOTE_END_DATE) +Values + (4, 2, 1, 5, 6, + 2, 'Branch Node', 'folder', '2017-01-01', '2017-03-13'); +COMMIT; \ No newline at end of file FishEye: Tag 6b8c4d7b039335012a2a19df87003435e1255391 refers to a dead (removed) revision in file `standard/project/web/script/dml/oracle/egovframework/rivalWar/api/directChat/jsTreeDirectChat_Data_Script_Oracle.sql'. FishEye: No comparison available. Pass `N' to diff? FishEye: Tag 6b8c4d7b039335012a2a19df87003435e1255391 refers to a dead (removed) revision in file `standard/project/web/script/dml/oracle/egovframework/rivalWar/api/menu/jsTreeMenu_Data_Script_Oracle.sql'. FishEye: No comparison available. Pass `N' to diff?