MGDatabaseSetup.setKeyColumnType   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

boolean setKeyColumnType(String keyColumnType)

Description

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.

Parameters

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.

Returns

boolean - Returns True and sets the layer's rebuild flag to True if the method is successful.

Error Codes

-1 (busy)

-3 (illegal argument)

-15 (does not apply)

See Also

getKeyColumnType, KeyColumnType