X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=com%2Frapide_act%2FCmnUtils.java;fp=com%2Frapide_act%2FCmnUtils.java;h=6617b2d44aedaa55c216888817e045d52aacfbbc;hb=0c06f989aa2922f898de2ed341f7a1481c8e4481;hp=fdb87119f98603cda9835a0a6a5f4104e37424d1;hpb=e7d842a47de8885c706c0c784e02844b206f90de;p=rapideact%2Frapideact.git diff --git a/com/rapide_act/CmnUtils.java b/com/rapide_act/CmnUtils.java index fdb8711..6617b2d 100644 --- a/com/rapide_act/CmnUtils.java +++ b/com/rapide_act/CmnUtils.java @@ -298,6 +298,7 @@ public class CmnUtils{ _str.toUpperCase().equals("NTEXT") || _str.toUpperCase().equals("CHARACTER") || _str.toUpperCase().equals("CHAR") || + _str.toUpperCase().equals("BPCHAR") || _str.toUpperCase().equals("NCHAR") || _str.toUpperCase().equals("VARCHAR") || _str.toUpperCase().equals("VARCHAR2") || @@ -314,6 +315,17 @@ public class CmnUtils{ } } + protected static boolean isColBoolean(String _str) throws Exception{ + if( + _str.toUpperCase().equals("BIT") || + _str.toUpperCase().equals("BOOL") || + _str.toUpperCase().equals("BOOLEAN")){ + return true; + } else { + return false; + } + } + protected static boolean isColDate(String _str) throws Exception{ if( _str.toUpperCase().equals("DATE")){ @@ -383,6 +395,9 @@ public class CmnUtils{ _str.toUpperCase().equals("INTEGER") || _str.toUpperCase().equals("SMALLINT UNSIGNED") || _str.toUpperCase().equals("MEDIUMINT") || + _str.toUpperCase().equals("SERIAL") || + _str.toUpperCase().equals("INT2") || + _str.toUpperCase().equals("INT4") || _str.toUpperCase().equals("INT")){ return true; } else { @@ -396,6 +411,9 @@ public class CmnUtils{ _str.toUpperCase().equals("MEDIUMINT UNSIGNED") || _str.toUpperCase().equals("BIGINT UNSIGNED") || _str.toUpperCase().equals("BIGINT") || + _str.toUpperCase().equals("BIGSERIAL") || + _str.toUpperCase().equals("SERIAL8") || + _str.toUpperCase().equals("INT8") || _str.toUpperCase().equals("LONG")){ return true; } else { @@ -437,6 +455,7 @@ public class CmnUtils{ protected static boolean isColBlob(String _str) throws Exception{ if( + _str.toUpperCase().equals("BYTEA") || _str.toUpperCase().equals("BLOB") || _str.toUpperCase().equals("VARBINARY") || _str.toUpperCase().equals("UDT") ||