This object is representative of a field in Final Cut Server. It is used to store field name, the underlying FCS database field name, and the field value. This object provides basic data sanity checking and data formatting.
Parameters: |
|
---|---|
Raises : | fcsxml.FCSValidationError |
Note
If both are specified provided, The value dbDataType will take presidence over the provided dataType.
Output basic field info, including name, stored value, datatype, dbDataType, and dbname.
Returns: | (str) – Basic field information |
---|
This method will set this field to the represent specified dbDataType (The underlying Final Cut Server database field name). This method will also populate the value for dataType based upon the provided value. Please refer to table shown in fcsxml.FCSXMLField.setDataType() for acceptable dbDataType values.
Parameters: | dbDataType (str) – The datatype to set for this field. |
---|---|
Raises : | fcsxml.FCSValidationError |
Note
KtAtom and KtAtomList datatypes are not supported.
This method will set this field to the specified dataType. It will also populate the value for dbDataType based upon the provided value.
Parameters: | dataType (str) – The datatype to set for this field. |
---|---|
Raises : | RuntimeError |
The following table shows acceptable datatypes and their corresponding Final Cut Server data types.
DataType | Final Cut Server Data Type (dbDataType) |
---|---|
string | KtString32 |
varchar | KtString |
int | KtInt |
integer | KtInt |
int64 | KtInt64 |
bigint | KtInt64 |
dateTime | KtDateTime |
timestamp | KtDateTime |
timecode | PxTimecode |
float | KtReal |
coords | KtIntXY |
fraction | KtFraction |
bool | KtBool |
list | KtMdValueMap |