From: Jorg J. <jj...@us...> - 2004-01-16 07:27:54
|
Update of /cvsroot/compiere/dbPort/src/org/compiere/util In directory sc8-pr-cvs1:/tmp/cvs-serv28719/src/org/compiere/util Modified Files: DisplayType.java Log Message: . Index: DisplayType.java =================================================================== RCS file: /cvsroot/compiere/dbPort/src/org/compiere/util/DisplayType.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** DisplayType.java 8 Jan 2004 06:50:57 -0000 1.9 --- DisplayType.java 16 Jan 2004 07:27:51 -0000 1.10 *************** *** 162,165 **** --- 162,178 ---- return false; } // isLookup + + /** + * Returns true if DisplayType is a Large Object + * @param displayType Display Type + * @return true if LOB + */ + public static boolean isLOB (int displayType) + { + if (displayType == Binary || displayType == TextLong + || displayType == Image) + return true; + return false; + } /*************************************************************************/ *************** *** 302,305 **** --- 315,320 ---- else if (displayType == Button) return String.class; + else if (isLOB(displayType)) + return byte[].class; // return Object.class; |