Common : Apply Constant using DALimit.java 76/22576/1
authorjungwook.ryu <jungwook.ryu@samsung.com>
Mon, 9 Jun 2014 01:22:17 +0000 (10:22 +0900)
committerjungwook.ryu <jungwook.ryu@samsung.com>
Mon, 9 Jun 2014 01:24:38 +0000 (10:24 +0900)
DBConstants.FUNCNAME_LEN -> DALimit.FUNCTION_NAME_LENGTH

Change-Id: I665434da0c65fc1facd21f31eee094d02c3e5555
Signed-off-by: jungwook.ryu <jungwook.ryu@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/kernel/data/FunctionDataDBTable.java

index 571a2a4..16303b7 100644 (file)
@@ -4,6 +4,7 @@ import java.sql.PreparedStatement;
 import java.sql.SQLException;
 import java.util.List;
 
+import org.tizen.dynamicanalyzer.common.DALimit;
 import org.tizen.dynamicanalyzer.database.DBColumn;
 import org.tizen.dynamicanalyzer.database.DBConstants;
 import org.tizen.dynamicanalyzer.database.DBTable;
@@ -50,7 +51,7 @@ public class FunctionDataDBTable extends DBTable {
                addColumn(new DBColumn(COLUMN.ENDTYPE.name, DBConstants.EMPTY, DBConstants.INTEGER));
                addColumn(new DBColumn(COLUMN.ENDADDR.name, DBConstants.EMPTY, DBConstants.LONG));
                addColumn(new DBColumn(COLUMN.FUNCNAME.name, DBConstants.EMPTY,
-                               DBConstants.VARCHAR, DBConstants.FUNCNAME_LEN));
+                               DBConstants.VARCHAR, DALimit.FUNCTION_NAME_LENGTH));
        }
 
        @Override
@@ -76,7 +77,7 @@ public class FunctionDataDBTable extends DBTable {
                                prep.setLong(COLUMN.ENDADDR.index + 1, (Long) (rowData.get(COLUMN.ENDADDR.index)));
 
                                String retstr = clipString((String) (rowData.get(COLUMN.FUNCNAME.index)),
-                                               DBConstants.FUNCNAME_LEN, rowData.get(COLUMN.SEQ.index).toString());
+                                               DALimit.FUNCTION_NAME_LENGTH, rowData.get(COLUMN.SEQ.index).toString());
 
                                prep.setString(COLUMN.FUNCNAME.index + 1, retstr);
                        } catch (SQLException e) {