%Library.SerialState
Class %Library.SerialState [ Abstract, Not ProcedureBlock, System = 2 ]
Serial object interface
Parameters
SERIALDELIMITER;
Parameter SERIALDELIMITER;
ODBCDELIMITER
Parameter ODBCDELIMITER = ",";
STORAGECOMPILERCLASS
Parameter STORAGECOMPILERCLASS = "%Compiler.Storage.CustomSerial";
STORAGEINTERFACE
Parameter STORAGEINTERFACE As STRING [ Constraint = ",persistent,serial", Flags = ENUM ] = "serial";
STORAGEINTERFACE defines the type of serialization implemented by this class. The value has to match the classtype of the class that is inheriting the serialization interface.
Methods
%GetSerial
Method %GetSerial(force As %Integer = 0) As %String [ Private, ServerOnly = 1 ]
Get Serialized State. %GetSerial() can assume that the ID values have already been reset for swizzled references since %Oid has already called %ResetAllObject()
%SetSerial
Method %SetSerial(val As %String) As %Status [ Private, ServerOnly = 1 ]
Set Serialized State.
LogicalToOdbc
ClassMethod LogicalToOdbc(%val As %String = "") As %String [ CodeMode = generator, ServerOnly = 1 ]
LogicalToOdbc() Construct a string delimited by ODBCDELIMITER from an object's serialized state.
OdbcToLogical
ClassMethod OdbcToLogical(%val As %String = "") As %String [ CodeMode = generator, ServerOnly = 1 ]