예제 #1
0
		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;
		}
예제 #2
0
		public string NativeDomainName(D4.MetaData AMetaData)
		{
			D4.Tag LNativeDomainName = GetTag("Storage.NativeDomainName", AMetaData);
			if (LNativeDomainName != D4.Tag.None)
				return LNativeDomainName.Value;
			return InternalNativeDomainName(AMetaData);
		}
예제 #3
0
		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);
		}
예제 #4
0
		protected override string InternalNativeDomainName(D4.MetaData AMetaData)
		{
			return 
				String.Format
				(
					"decimal({0}, {1})", 
					GetPrecision(AMetaData).ToString(),
					GetScale(AMetaData).ToString()
				);
		}
예제 #5
0
		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;
		}
예제 #6
0
 protected override string InternalNativeDomainName(D4.MetaData AMetaData)
 {
     return("integer");
 }
예제 #7
0
		public override SQLType GetSQLType(D4.MetaData AMetaData)
		{
			return new SQLBinaryType();
		}
예제 #8
0
		public override SQLType GetSQLType(D4.MetaData AMetaData)
		{
			return new SQLStringType(GetLength(AMetaData));
		}
예제 #9
0
		public override SQLType GetSQLType(D4.MetaData AMetaData)
		{
			return new SQLStringType(36);
		}
예제 #10
0
		public override SQLType GetSQLType(D4.MetaData AMetaData)
		{
			return new SQLNumericType(28, 8);
		}
예제 #11
0
		public override SQLType GetSQLType(D4.MetaData AMetaData)
		{
			return new SQLIntegerType(8);
		}
예제 #12
0
		public virtual string ParameterDomainName(D4.MetaData AMetaData)
		{
			return DomainName(AMetaData);
		}
예제 #13
0
		protected abstract string InternalNativeDomainName(D4.MetaData AMetaData);
예제 #14
0
 protected override string InternalNativeDomainName(D4.MetaData AMetaData)
 {
     return("date FORMAT=DATE9. INFORMAT=DATE9.");
 }
예제 #15
0
 protected override string InternalNativeDomainName(D4.MetaData AMetaData)
 {
     return("numeric(20, 0)");
 }
예제 #16
0
 public override SQLType GetSQLType(D4.MetaData AMetaData)
 {
     return(new SQLNumericType(20, 0));
 }
예제 #17
0
		public override SQLType GetSQLType(D4.MetaData AMetaData)
		{
			return new SQLDateTimeType();
		}
예제 #18
0
		public override string DomainName(D4.MetaData AMetaData)
		{
			return "integer";
		}
예제 #19
0
		public virtual SQLType GetSQLParameterType(D4.MetaData AMetaData)
		{
			return GetSQLType(AMetaData);
		}
예제 #20
0
		public override string DomainName(D4.MetaData AMetaData)
		{
			return "bigint";
		}
예제 #21
0
		protected override string InternalNativeDomainName(D4.MetaData AMetaData)
		{
			return "decimal(28, 8)";
		}
예제 #22
0
		public override string DomainName(D4.MetaData AMetaData)
		{
			return "decimal(20, 0)";
		}
예제 #23
0
		protected int GetLength(D4.MetaData AMetaData)
		{
			return Int32.Parse(GetTag("Storage.Length", "20", AMetaData));
		}
예제 #24
0
		public byte GetPrecision(D4.MetaData AMetaData)
		{
			return Byte.Parse(GetTag("Storage.Precision", "28", AMetaData));
		}
예제 #25
0
		protected override string InternalNativeDomainName(D4.MetaData AMetaData)
		{
			return String.Format("varchar({0})", GetLength(AMetaData).ToString());
		}
예제 #26
0
		public byte GetScale(D4.MetaData AMetaData)
		{
			return Byte.Parse(GetTag("Storage.Scale", "8", AMetaData));
		}
예제 #27
0
		public abstract SQLType GetSQLType(D4.MetaData AMetaData);
예제 #28
0
		public override SQLType GetSQLType(D4.MetaData AMetaData)
		{
			return new SQLNumericType(GetPrecision(AMetaData), GetScale(AMetaData));
		}
예제 #29
0
		protected override string InternalNativeDomainName(D4.MetaData AMetaData)
		{
			return "blob";
		}
예제 #30
0
 public override SQLType GetSQLType(ScalarType AScalarType, D4.MetaData AMetaData)
 {
     return(new SQLNumericType(3, 0));
 }