Class EmbedValueHandler

    • Constructor Detail

      • EmbedValueHandler

        public EmbedValueHandler()
    • Method Detail

      • map

        @Deprecated
        protected void map​(ValueMapping vm,
                           java.lang.String name,
                           ColumnIO io,
                           boolean adapt,
                           java.util.List cols,
                           java.util.List args)
        Deprecated.
        Maps embedded value and gathers columns and arguments into given lists.
      • map

        protected void map​(ValueMapping vm,
                           DBIdentifier name,
                           ColumnIO io,
                           boolean adapt,
                           java.util.List cols,
                           java.util.List args)
        Maps embedded value and gathers columns and arguments into given lists.
      • toDataStoreValue

        protected java.lang.Object toDataStoreValue​(OpenJPAStateManager em,
                                                    ValueMapping vm,
                                                    JDBCStore store,
                                                    Column[] cols,
                                                    java.lang.Object rval,
                                                    int idx)
        Helper to convert an object value to its datastore equivalent.
        Parameters:
        em - state manager for embedded object
        vm - owning value
        store - store manager
        cols - embedded columns
        rval - return array if multiple columns
        idx - index in columns array to start
      • toObjectValue

        protected void toObjectValue​(OpenJPAStateManager em,
                                     ValueMapping vm,
                                     java.lang.Object val,
                                     JDBCStore store,
                                     JDBCFetchConfiguration fetch,
                                     Column[] cols,
                                     int idx)
                              throws java.sql.SQLException
        Helper to convert a datastore value to its object equivalent.
        Parameters:
        em - state manager for embedded object
        vm - owning value
        val - datastore value
        store - optional store manager
        fetch - optional fetch configuration
        cols - embedded columns
        idx - index in columns array to start
        Throws:
        java.sql.SQLException
      • getEmbeddedIdCols

        public static void getEmbeddedIdCols​(FieldMapping fmd,
                                             java.util.List cols)
      • getIdColumns

        public static void getIdColumns​(FieldMapping fmd,
                                        java.util.List cols)