Ejemplo n.º 1
0
 public static bool IsBlobOrClob(INakedObjectSpecificationSurface spec)
 {
     if (spec.IsParseable() || spec.IsCollection())
     {
         Type           underlyingType = spec.GetUnderlyingType();
         PredefinedType pdt            = TypeToPredefinedType(underlyingType);
         return(pdt == PredefinedType.Blob || pdt == PredefinedType.Clob);
     }
     return(false);
 }
Ejemplo n.º 2
0
        public static PredefinedType?SpecToPredefinedType(INakedObjectSpecificationSurface spec)
        {
            if (spec.IsFileAttachment() || spec.IsImage())
            {
                return(PredefinedType.Blob);
            }

            if (spec.IsParseable() || spec.IsCollection() || spec.IsVoid())
            {
                Type underlyingType = spec.GetUnderlyingType();
                return(TypeToPredefinedType(underlyingType));
            }
            return(null);
        }
Ejemplo n.º 3
0
 public static bool IsBlobOrClob(INakedObjectSpecificationSurface spec) {
     if (spec.IsParseable() || spec.IsCollection()) {
         Type underlyingType = spec.GetUnderlyingType();
         PredefinedType pdt = TypeToPredefinedType(underlyingType);
         return pdt == PredefinedType.Blob || pdt == PredefinedType.Clob;
     }
     return false;
 }
Ejemplo n.º 4
0
        public static PredefinedType? SpecToPredefinedType(INakedObjectSpecificationSurface spec) {
            if (spec.IsFileAttachment() || spec.IsImage()) {
                return PredefinedType.Blob;
            }

            if (spec.IsParseable() || spec.IsCollection() || spec.IsVoid()) {
                Type underlyingType = spec.GetUnderlyingType();
                return TypeToPredefinedType(underlyingType);
            }
            return null;
        }