Class FieldEncoder

    • Field Detail

      • fieldType

        protected final java.lang.Class<?> fieldType
      • isNullable

        protected final boolean isNullable
      • fieldName

        protected final java.lang.String fieldName
      • fieldDescription

        protected final java.lang.String fieldDescription
      • exceptionDescription

        protected final java.lang.String exceptionDescription
    • Method Detail

      • copy

        protected abstract void copy​(java.lang.Object obj,
                                     EncodingContext ctxt)
                              throws java.lang.IllegalArgumentException,
                                     java.lang.IllegalAccessException,
                                     java.lang.reflect.InvocationTargetException
        Throws:
        java.lang.IllegalArgumentException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • isNull

        protected boolean isNull​(long value)
      • isNullValue

        protected abstract boolean isNullValue​(java.lang.Object message)
                                        throws java.lang.IllegalAccessException,
                                               java.lang.reflect.InvocationTargetException
        Throws:
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • throwNotNullableException

        protected void throwNotNullableException()
      • throwConstraintViolationException

        protected void throwConstraintViolationException​(java.lang.Object v)