Use this to create a new Value from a single string representation.
The preferred_type
can optionally ask this to return a Value
of the requested type (but if such a value can't be created from string
, then null
is returned); pass
INVALID if any returned type is acceptable.
The returned value is either a new Value or null
in the following cases: - string
cannot be converted to preferred_type
type - the provider does not handle preferred_type
- the provider could
not make a Value from string
If dbms_type
is not null
, then if will contain a constant string representing the database type used for the
conversion if the conversion was successfull, or null
otherwise.
this |
a server provider. |
cnc |
a Connection object, or |
string |
the SQL string to convert to a value |
preferred_type |
a Type, or INVALID |
dbms_type |
place to get the actual database type used if the conversion succeeded, or |
a new Value, or |