empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1298181 - /empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBColumn.java
Date Wed, 07 Mar 2012 22:41:13 GMT
Author: doebele
Date: Wed Mar  7 22:41:12 2012
New Revision: 1298181

URL: http://svn.apache.org/viewvc?rev=1298181&view=rev
Log:
EMPIREDB-126
LOB-Columns

Modified:
    empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBColumn.java

Modified: empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBColumn.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBColumn.java?rev=1298181&r1=1298180&r2=1298181&view=diff
==============================================================================
--- empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBColumn.java (original)
+++ empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBColumn.java Wed Mar  7
22:41:12 2012
@@ -131,7 +131,7 @@ public abstract class DBColumn extends D
     public boolean isTextColumn()
     {
         DataType type = getDataType();
-        return (type==DataType.TEXT || type ==DataType.CHAR || type==DataType.CLOB);
+        return (type==DataType.TEXT || type==DataType.CHAR || type==DataType.CLOB);
     }
 
     /**
@@ -142,18 +142,29 @@ public abstract class DBColumn extends D
     public boolean isNumericColumn()
     {
         DataType type = getDataType();
-        return (type==DataType.INTEGER || type ==DataType.DECIMAL || type==DataType.FLOAT
|| type==DataType.AUTOINC);
+        return (type==DataType.INTEGER || type==DataType.DECIMAL || type==DataType.FLOAT
|| type==DataType.AUTOINC);
     }
 
     /**
-     * Returns true if column the column is a date based column (date, datetime)
+     * Returns true if column the column is a date based column (date or datetime)
      * 
      * @return true if column is a date based column
      */
     public boolean isDateColumn()
     {
         DataType type = getDataType();
-        return (type==DataType.DATE || type ==DataType.DATETIME);
+        return (type==DataType.DATE || type==DataType.DATETIME);
+    }
+
+    /**
+     * Returns true if column the column is a large object (LOB) column
+     * 
+     * @return true if column is a large object column
+     */
+    public boolean isLOBColumn()
+    {
+        DataType type = getDataType();
+        return (type==DataType.CLOB || type==DataType.BLOB);
     }
     
     @Override



Mime
View raw message