Class JobVariableHelper
- Namespace
- ArcanaDevelopment.adTempus.Shared
- Assembly
- ArcanaDevelopment.adTempus.Shared.dll
public static class JobVariableHelper
- Inheritance
-
object
JobVariableHelper
Methods
CompareCollections(IEnumerable, IEnumerable, IList, IList)
Compares this JobVariableCollection to another and returns collections containing changes (additions and modifications)
and deletions.
public static void CompareCollections(IEnumerable source, IEnumerable target, IList changes, IList deletions)
Parameters
| Name | Type | Description |
source |
IEnumerable |
|
target |
IEnumerable |
|
changes |
IList |
A collection of variables that exist in the target collection but not in the current collection, or that
exist in both collections but have different values.
|
deletions |
IList |
A collection of variables that exist in the current collection but not in the target collection.
|
GetBooleanValue(IJobVariable)
Gets or sets the value as a boolean value.
public static bool? GetBooleanValue(IJobVariable variable)
Parameters
Returns
- bool?
GetDateTimeValue(IJobVariable)
Gets or sets the value as a DateTime.
public static DateTime? GetDateTimeValue(IJobVariable variable)
Parameters
Returns
- DateTime?
GetDateValue(IJobVariable)
Gets or sets the value as a DateTime containing only a date.
public static DateTime? GetDateValue(IJobVariable variable)
Parameters
Returns
- DateTime?
GetDecimalValue(IJobVariable)
Gets or sets the value as a decimal.
public static decimal? GetDecimalValue(IJobVariable variable)
Parameters
Returns
- decimal?
GetIntegerValue(IJobVariable)
Gets or sets the value as an integer.
public static int? GetIntegerValue(IJobVariable variable)
Parameters
Returns
- int?
GetStringValue(IJobVariable)
Gets or sets the value as a string.
public static string GetStringValue(IJobVariable variable)
Parameters
Returns
- string
GetTimeValue(IJobVariable)
Gets or sets the value as a DateTime value that stores only the time.
public static DateTime? GetTimeValue(IJobVariable variable)
Parameters
Returns
- DateTime?
SetBooleanValue(IJobVariable, bool?)
public static void SetBooleanValue(IJobVariable variable, bool? value)
Parameters
SetDateTimeValue(IJobVariable, DateTime?)
public static void SetDateTimeValue(IJobVariable variable, DateTime? value)
Parameters
SetDateValue(IJobVariable, DateTime?)
public static void SetDateValue(IJobVariable variable, DateTime? value)
Parameters
SetDecimalValue(IJobVariable, decimal?)
public static void SetDecimalValue(IJobVariable variable, decimal? value)
Parameters
SetIntegerValue(IJobVariable, int?)
public static void SetIntegerValue(IJobVariable variable, int? value)
Parameters
SetStringValue(IJobVariable, string)
public static void SetStringValue(IJobVariable variable, string value)
Parameters
SetTimeValue(IJobVariable, DateTime?)
public static void SetTimeValue(IJobVariable variable, DateTime? value)
Parameters
TryParseBoolean(string, out bool)
public static bool TryParseBoolean(string newValue, out bool returnValue)
Parameters
| Name | Type | Description |
newValue |
string |
|
returnValue |
bool |
|
Returns
- bool
TryParseDate(string, out DateTime)
public static bool TryParseDate(string newValue, out DateTime returnValue)
Parameters
| Name | Type | Description |
newValue |
string |
|
returnValue |
DateTime |
|
Returns
- bool
TryParseDateTime(string, out DateTime)
public static bool TryParseDateTime(string newValue, out DateTime returnValue)
Parameters
| Name | Type | Description |
newValue |
string |
|
returnValue |
DateTime |
|
Returns
- bool
TryParseTime(string, out DateTime)
public static bool TryParseTime(string newValue, out DateTime returnValue)
Parameters
| Name | Type | Description |
newValue |
string |
|
returnValue |
DateTime |
|
Returns
- bool
TrySet(IJobVariable, JobVariableType, string)
Tries to set the variable to the specified type and value.
public static bool TrySet(IJobVariable variable, JobVariableType varType, string newValue)
Parameters
Returns
- bool
ValidForType(JobVariableType, string)
Determines whether a string value can be converted to the specified variable type
public static bool ValidForType(JobVariableType variableType, string value)
Parameters
Returns
- bool
ValueAsObject(IJobVariable)
Gets the Value as an object of the type specified by the VariableType.
public static object ValueAsObject(IJobVariable variable)
Parameters
Returns
- object