通过约束验证setter

时间:2015-04-15 06:13:00

标签: oracle jdbc code-generation

大家好,

我正在编写代码生成器  给出以下Query以获取有关约束的信息。

SELECT 
     alc.search_condition as condition
FROM 
     all_cons_columns cols 
     LEFT JOIN all_constraints alc 
     ON alc.constraint_name = cols.constraint_name 
     AND alc.owner = cols.owner 
     LEFT JOIN all_constraints r_alc 
     ON alc.r_constraint_name = r_alc.constraint_name 
     AND alc.r_owner = r_alc.owner 
     LEFT JOIN all_cons_columns r_cols 
     ON r_alc.constraint_name = r_cols.constraint_name 
     AND r_alc.owner = r_cols.owner 
     AND cols.position = r_cols.position 
WHERE 
     alc.constraint_name = cols.constraint_name 
     AND alc.table_name = 'XXXXXXX'
     AND cols.column_name ='YYYYYYY'
     AND alc.constraint_type='C'

如何在java代码中使用“ condition ”字段进行验证?
 我想要验证的setter方法给定值字段“conditions”。

0 个答案:

没有答案