NHibernate.Lob.ClobType.GetValue C# (CSharp) Method

GetValue() protected method

protected GetValue ( object dataObj ) : object
dataObj object
return object
		protected override object GetValue(object dataObj)
		{
			if (compression == null)
			{
				string str = dataObj as string;
				return str == null ? null : new StringClob(str);
			}
			else
			{
				byte[] data = dataObj as byte[];
				if (data == null) return null;
				return new CompressedClob(data, encoding, compression);
			}
		}