| MGDatabaseSetup.setKeyColumnType |
|
boolean setKeyColumnType(String keyColumnType)
Sets the data type of the key column to the data type you specify.
Note that this method does not work during a busy state. For additional information about the busy state, refer to "Handling Busy State and Map Refresh" chapter in the Autodesk MapGuide Developer's Guide.
keyColumnType - The data type you want the key column set to.
Values can be: Boolean, Byte, Date, Decimal, Double, Float, Integer, Numeric, SmallInt, String, Time, TimeStamp, UnsignedByte, UnsignedInteger, or UnsignedSmallInt.
For compatibility with previous releases, setKeyColumnType also accepts the values Char, LongVarChar, Real, or VarChar.
We recommend that you do not use Float, Double, and Real types because of the inherent inaccuracies in comparing them.
boolean - Returns True and sets the layer's rebuild flag to True if the method is successful.
-1 (busy)
-3 (illegal argument)
-15 (does not apply)
getKeyColumnType, KeyColumnType