public string GetTag(string ATagName, string ADefaultValue, D4.MetaData AMetaData) { D4.Tag LTag = GetTag(ATagName, AMetaData); if (LTag != D4.Tag.None) return LTag.Value; return ADefaultValue; }
public string NativeDomainName(D4.MetaData AMetaData) { D4.Tag LNativeDomainName = GetTag("Storage.NativeDomainName", AMetaData); if (LNativeDomainName != D4.Tag.None) return LNativeDomainName.Value; return InternalNativeDomainName(AMetaData); }
public string DomainName(D4.MetaData AMetaData) { D4.Tag LDomainName = D4.MetaData.GetTag(AMetaData, "Storage.DomainName"); if (LDomainName != D4.Tag.None) return LDomainName.Value; LDomainName = GetTag("Storage.Name"); if (LDomainName != D4.Tag.None) return LDomainName.Value; return NativeDomainName(AMetaData); }
protected override string InternalNativeDomainName(D4.MetaData AMetaData) { return String.Format ( "decimal({0}, {1})", GetPrecision(AMetaData).ToString(), GetScale(AMetaData).ToString() ); }
public D4.Tag GetTag(string ATagName, D4.MetaData AMetaData) { D4.Tag LTag = D4.MetaData.GetTag(AMetaData, ATagName); if (LTag == D4.Tag.None) { LTag = D4.MetaData.GetTag(MetaData, ATagName); if (LTag == D4.Tag.None) LTag = D4.MetaData.GetTag(ScalarType.MetaData, ATagName); } return LTag; }
protected override string InternalNativeDomainName(D4.MetaData AMetaData) { return("integer"); }
public override SQLType GetSQLType(D4.MetaData AMetaData) { return new SQLBinaryType(); }
public override SQLType GetSQLType(D4.MetaData AMetaData) { return new SQLStringType(GetLength(AMetaData)); }
public override SQLType GetSQLType(D4.MetaData AMetaData) { return new SQLStringType(36); }
public override SQLType GetSQLType(D4.MetaData AMetaData) { return new SQLNumericType(28, 8); }
public override SQLType GetSQLType(D4.MetaData AMetaData) { return new SQLIntegerType(8); }
public virtual string ParameterDomainName(D4.MetaData AMetaData) { return DomainName(AMetaData); }
protected abstract string InternalNativeDomainName(D4.MetaData AMetaData);
protected override string InternalNativeDomainName(D4.MetaData AMetaData) { return("date FORMAT=DATE9. INFORMAT=DATE9."); }
protected override string InternalNativeDomainName(D4.MetaData AMetaData) { return("numeric(20, 0)"); }
public override SQLType GetSQLType(D4.MetaData AMetaData) { return(new SQLNumericType(20, 0)); }
public override SQLType GetSQLType(D4.MetaData AMetaData) { return new SQLDateTimeType(); }
public override string DomainName(D4.MetaData AMetaData) { return "integer"; }
public virtual SQLType GetSQLParameterType(D4.MetaData AMetaData) { return GetSQLType(AMetaData); }
public override string DomainName(D4.MetaData AMetaData) { return "bigint"; }
protected override string InternalNativeDomainName(D4.MetaData AMetaData) { return "decimal(28, 8)"; }
public override string DomainName(D4.MetaData AMetaData) { return "decimal(20, 0)"; }
protected int GetLength(D4.MetaData AMetaData) { return Int32.Parse(GetTag("Storage.Length", "20", AMetaData)); }
public byte GetPrecision(D4.MetaData AMetaData) { return Byte.Parse(GetTag("Storage.Precision", "28", AMetaData)); }
protected override string InternalNativeDomainName(D4.MetaData AMetaData) { return String.Format("varchar({0})", GetLength(AMetaData).ToString()); }
public byte GetScale(D4.MetaData AMetaData) { return Byte.Parse(GetTag("Storage.Scale", "8", AMetaData)); }
public abstract SQLType GetSQLType(D4.MetaData AMetaData);
public override SQLType GetSQLType(D4.MetaData AMetaData) { return new SQLNumericType(GetPrecision(AMetaData), GetScale(AMetaData)); }
protected override string InternalNativeDomainName(D4.MetaData AMetaData) { return "blob"; }
public override SQLType GetSQLType(ScalarType AScalarType, D4.MetaData AMetaData) { return(new SQLNumericType(3, 0)); }