A compound having the structure of formula, a pharmaceutically acceptable salt thereof, or a hydrate thereof, wherein: A and B independently represent N or CR, with the proviso that either A or B is N; R, R' and R" independently represent H, (C 1 -C 6) alkyl, halogen, -CN, -NR a R b, -NR a COR b or -CONR a R b, with the proviso that R' represents H, halogen or -NR a COR b when A is N and R" represents H, halogen or -NR a COR b when B is N; R 1 represents H, (C 1 -C 3) alkyl or -COR 4; R 2 represents H, (C 1 -C 3) alkyl, halo or -CN; R 3 represents H, (C 1 -C 3) alkyl, halo, -CN or -COR 4; R 4 represents with the proviso that R 1 represents -COR 4 when A is N and R 3 represents -COR 4 when B is N; R a and R b independently represent H, (C 1 -C 8) alkyl, (C 3 -C 8) cycloalkyl or OR"'; R a and R b are taken together with the N atom to which they are attached to form 3-8 membered heterocyclyl, optionally containing additional heteroatom(s) selected from N, O or S,; R'" represents H or (C 1 -C 3) alkyl; R 7, R 8 and R 9 independently represent H, alkyl, alkenyl, alkynyl, cycloalkyl, aryl, aralkyl, heteroaryl, heteroarylalkyl, heterocyclyl, heterocyclylalkyl, alkoxy, halo, -NO 2, -(CH 2) q C NR c R d -(CH 2) q NR c COR d, -(CH 2) q NR c CONR c R d, -(CH 2) q NR c C OR d, -(CH 2) q NR c R d, -(CH=CH)-(CH 2) s C OR e, -(CH=CH)-(CH 2) s CONR c R d, -(CH=CH)-(CH 2) s CN, -(CH=CH)-(CH 2) s R e, -(CH 2) s C OR e, - r CN, -(CH 2) r OR e, -(CH 2) r R e, -(CH 2) r C OR e, - r halo, -S p R e, -S p NR c R d or -NR c S p R d, wherein alkyl, alkenyl, alkynyl, cycloalkyl, aryl, heteroaryl and heterocyclyl are optionally substituted with (C 1 -C 6) alkyl, halogen, or -OR f; R c and R d independently represent H, (C 1 -C 8) alkyl, (C 3 -C 8) cycloalkyl, aryl, aralkyl, heteroaryl, heteroarylalkyl, -(CH 2) r OR e, -(CH 2) r SR e, -(CH 2) r CN, -(CH 2) r halo, -(CH 2) r C OR e, -(CH 2) r NR c R d, -COR e, -S p R e or -(CH 2) r R e, wherein alkyl, cycloalkyl, aryl and heteroaryl are optionally substituted with -OR f or -C OR f; R c and R d are taken together with the N atom to which they are attached to form 3-8 membered heterocyclyl, optionally containing additional heteroatom(s) selected from N, O or S; R e represents H, (C 1 -C 6) alkyl, -CF 3, (C 3 -C 8) cycloalkyl, heterocyclyl, aryl or heteroaryl; wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are optionally substituted with -OR f; R f represents H or alkyl; p represents an integer of 1 or 2; q represents an integer of 0, 1, 2 or 3; r represents an integer of 0, 1, 2, 3 or 4; and s represents an integer of 0, 1 or 2. A and B independently represent N or CR, with the proviso that either A or B is N; R, R' and R" independently represent H, (C 1 -C 6) alkyl, halogen, -CN, -NR a R b, -NR a COR b or -CONR a R b, with the proviso that R' represents H, halogen or -NR a COR b when A is N and R" represents H, halogen or -NR a COR b when B is N; R 1 represents H, (C 1 -C 3) alkyl or -COR 4; R 2 represents H, (C 1 -C 3) alkyl, halo or -CN; R 3 represents H, (C 1 -C 3) alkyl, halo, -CN or -COR 4; R 4 represents with the proviso that R 1 represents -COR 4 when A is N and R 3 represents -COR 4 when B is N; R a and R b independently represent H, (C 1 -C 8) alkyl, (C 3 -C 8) cycloalkyl or OR"'; R a and R b are taken together with the N atom to which they are attached to form 3-8 membered heterocyclyl, optionally containing additional heteroatom(s) selected from N, O or S,; R'" represents H or (C 1 -C 3) alkyl; R 7, R 8 and R 9 independently represent H, alkyl, alkenyl, alkynyl, cycloalkyl, aryl, aralkyl, heteroaryl, heteroarylalkyl, heterocyclyl, heterocyclylalkyl, alkoxy, halo, -NO 2, -(CH 2) q C NR c R d -(CH 2) q NR c COR d, -(CH 2) q NR c CONR c R d, -(CH 2) q NR c C OR d, -(CH 2) q NR c R d, -(CH=CH)-(CH 2) s C OR e, -(CH=CH)-(CH 2) s CONR c R d, -(CH=CH)-(CH 2) s CN, -(CH=CH)-(CH 2) s R e, -(CH 2) s C OR e, - r CN, -(CH 2) r OR e, -(CH 2) r R e, -(CH 2) r C OR e, - r halo, -S p R e, -S p NR c R d or -NR c S p R d, wherein alkyl, alkenyl, alkynyl, cycloalkyl, aryl, heteroaryl and heterocyclyl are optionally substituted with (C 1 -C 6) alkyl, halogen, or -OR f; R c and R d independently represent H, (C 1 -C 8) alkyl, (C 3 -C 8) cycloalkyl, aryl, aralkyl, heteroaryl, heteroarylalkyl, -(CH 2) r OR e, -(CH 2) r SR e, -(CH 2) r CN, -(CH 2) r halo, -(CH 2) r C OR e, -(CH 2) r NR c R d, -COR e, -S p R e or -(CH 2) r R e, wherein alkyl, cycloalkyl, aryl and heteroaryl are optionally substituted with -OR f or -C OR f; R c and R d are taken together with the N atom to which they are attached to form 3-8 membered heterocyclyl, optionally containing additional heteroatom(s) selected from N, O or S; R e represents H, (C 1 -C 6) alkyl, -CF 3, (C 3 -C 8) cycloalkyl, heterocyclyl, aryl or heteroaryl; wherein alkyl, cycloalkyl, heterocyclyl, aryl and heteroaryl are optionally substituted with -OR f; R f represents H or alkyl; p represents an integer of 1 or 2; q represents an integer of 0, 1, 2 or 3; r represents an integer of 0, 1, 2, 3 or 4; and s represents an integer of 0, 1 or 2.