summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/db/ColumnPropertySet.java
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/db/ColumnPropertySet.java')
-rw-r--r--wizards/com/sun/star/wizards/db/ColumnPropertySet.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/db/ColumnPropertySet.java b/wizards/com/sun/star/wizards/db/ColumnPropertySet.java
index 204ba2328321..a3ff8c12b712 100644
--- a/wizards/com/sun/star/wizards/db/ColumnPropertySet.java
+++ b/wizards/com/sun/star/wizards/db/ColumnPropertySet.java
@@ -31,6 +31,7 @@ import com.sun.star.beans.PropertyValue;
import com.sun.star.beans.XPropertySet;
import com.sun.star.sdbc.DataType;
import com.sun.star.wizards.common.Properties;
+import com.sun.star.wizards.common.PropertyNames;
// import com.sun.star.wizards.db.TypeInspector;
public class ColumnPropertySet
@@ -89,9 +90,9 @@ public class ColumnPropertySet
for (int i = 0; i < _aNewColPropertyValues.length; i++)
{
String sPropName = _aNewColPropertyValues[i].Name;
- if (_sNewName != null && sPropName.equals("Name"))
+ if (_sNewName != null && sPropName.equals(PropertyNames.PROPERTY_NAME))
{
- xPropertySet.setPropertyValue("Name", _sNewName);
+ xPropertySet.setPropertyValue(PropertyNames.PROPERTY_NAME, _sNewName);
}
else if (sPropName.equals("Precision"))
{
@@ -170,12 +171,12 @@ public class ColumnPropertySet
nType = ((Integer) _oValue).intValue();
xPropertySet.setPropertyValue("Type", new Integer(nType));
}
- else if (_spropname.equals("Name"))
+ else if (_spropname.equals(PropertyNames.PROPERTY_NAME))
{
String sName = (String) _oValue;
if (!sName.equals(""))
{
- xPropertySet.setPropertyValue("Name", sName);
+ xPropertySet.setPropertyValue(PropertyNames.PROPERTY_NAME, sName);
}
}
else if (_spropname.equals("Scale"))