Package org.openntf.domino.exceptions

Examples of org.openntf.domino.exceptions.DataNotCompatibleException


        return 16;
      } else {
        return 8; // Number + DateTime has 8 bytes payload
      }
    }
    throw new DataNotCompatibleException("Got a " + o.getClass() + " but " + c + " expected");
  }
View Full Code Here


      else if (firstElement instanceof lotus.domino.DateRange)
        firstElementClass = lotus.domino.DateRange.class;
      // Remark: Domino Java API doesn't accept any Vector of DateRanges (cf. DateRange.java), so the implementation
      // here will work only with Vectors of size 1 (or Vectors of size >= 2000, when Mime Beaning is enabled).
      else
        throw new DataNotCompatibleException(firstElement.getClass() + " is not a supported data type");
      for (Object o : dominoFriendly)
        payload += getLotusPayload(o, firstElementClass);
      if (payload > MAX_NATIVE_FIELD_SIZE) {
        // the datatype is OK, but there's no way to store the data in the Document
        throw new Domino32KLimitException();
View Full Code Here

        if (getTypeEx() == Type.AUTHORS) {
          return;
        }
        if (!isReadersNamesAuthors()) {
          if (getTypeEx() != Type.TEXT) {
            throw new DataNotCompatibleException("Field " + getName() + " is not Text so cannot be set as an Authors field");
          }
        }
      }
      getDelegate().setAuthors(flag);
    } catch (NotesException e) {
View Full Code Here

        if (hasFlag(Flags.NAMES)) {
          return;
        }
        if (!isReadersNamesAuthors()) {
          if (getTypeEx() != Type.TEXT) {
            throw new DataNotCompatibleException("Field " + getName() + " is not Text so cannot be set as an Names field");
          }
        }
      }
      getDelegate().setNames(flag);
    } catch (NotesException e) {
View Full Code Here

        if (getTypeEx() == Type.READERS) {
          return;
        }
        if (!isReadersNamesAuthors()) {
          if (getTypeEx() != Type.TEXT) {
            throw new DataNotCompatibleException("Field " + getName() + " is not Text so cannot be set as an Readers field");
          }
        }
      }
      getDelegate().setReaders(flag);
    } catch (NotesException e) {
View Full Code Here

TOP

Related Classes of org.openntf.domino.exceptions.DataNotCompatibleException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.