Class XMLDatabinder

  • Direct Known Subclasses:
    AtlassianXMLDatabinder

    @Deprecated
    public abstract class XMLDatabinder
    extends Object
    Deprecated.
    since 8.0.0
    Moved from hibernate-extras. This would be temporarily available to support legacy import export.
    Since:
    8.0.0
    • Constructor Detail

      • XMLDatabinder

        public XMLDatabinder​(org.hibernate.engine.spi.SessionFactoryImplementor factory,
                             String encoding,
                             HibernateTranslator translator)
        Deprecated.
    • Method Detail

      • getPersister

        protected final org.hibernate.persister.entity.EntityPersister getPersister​(Class clazz)
                                                                             throws org.hibernate.MappingException
        Deprecated.
        Throws:
        org.hibernate.MappingException
      • objectWritten

        protected final void objectWritten​(ExportHibernateHandle handle)
                                    throws org.hibernate.HibernateException
        Deprecated.
        Throws:
        org.hibernate.HibernateException
      • incrementProgress

        protected void incrementProgress()
                                  throws org.hibernate.HibernateException
        Deprecated.
        We need to commit and flush session for every batch of records handled
        Throws:
        org.hibernate.HibernateException
      • incrementProgressTotal

        protected void incrementProgressTotal()
        Deprecated.
      • commit

        protected void commit()
                       throws org.hibernate.HibernateException
        Deprecated.
        Throws:
        org.hibernate.HibernateException
      • writeObject

        protected final void writeObject​(Writer writer,
                                         ExportHibernateHandle handle,
                                         Object object,
                                         org.hibernate.persister.entity.EntityPersister persister)
                                  throws IOException,
                                         org.hibernate.HibernateException
        Deprecated.
        Throws:
        IOException
        org.hibernate.HibernateException
      • getExportableFields

        protected final List<XMLDatabinder.FieldWithType> getExportableFields​(Class<?> clazz)
        Deprecated.
        Get the exportable fields of a class from the in-memory map If the list of exportable fields is not in the map, they will be extracted from the class with the Reflection API and then put into the map
        Parameters:
        clazz - the class in question
        Returns:
        the list of exportable fields of the input class
      • isExcludedOrProcessed

        protected final boolean isExcludedOrProcessed​(ExportHibernateHandle handle)
        Deprecated.
      • maybeInitializeIfProxy

        protected Object maybeInitializeIfProxy​(Object object)
        Deprecated.
      • bindAll

        public XMLDatabinder bindAll​(Collection objects)
        Deprecated.
        Register a set of objects as being ones that should be exported.
        Parameters:
        objects - either objects or handles.
        Returns:
        itself for chaining purposes
      • unbindAll

        public XMLDatabinder unbindAll​(Collection objects)
        Deprecated.
        Register a set of objects as being ones that should *not* be exported.
        Parameters:
        objects - either objects or handles.
        Returns:
        itself for chaining purposes
      • renderProperty

        protected final void renderProperty​(Writer writer,
                                            String name,
                                            org.hibernate.type.Type type,
                                            Object value,
                                            String componentName,
                                            String propertyName,
                                            String collectionName,
                                            boolean doType)
                                     throws org.hibernate.HibernateException,
                                            IOException
        Deprecated.
        Throws:
        org.hibernate.HibernateException
        IOException
      • renderOtherType

        protected final void renderOtherType​(Writer writer,
                                             String name,
                                             org.hibernate.type.Type type,
                                             Object value,
                                             String propertyName,
                                             boolean doType)
                                      throws org.hibernate.HibernateException,
                                             IOException
        Deprecated.
        Throws:
        org.hibernate.HibernateException
        IOException
      • renderEnumType

        protected final void renderEnumType​(Writer writer,
                                            String name,
                                            org.hibernate.type.Type type,
                                            Object value,
                                            String propertyName)
                                     throws org.hibernate.HibernateException,
                                            IOException
        Deprecated.
        Throws:
        org.hibernate.HibernateException
        IOException
      • renderEntityType

        protected final void renderEntityType​(Writer writer,
                                              String name,
                                              Object value,
                                              String propertyName)
                                       throws org.hibernate.HibernateException,
                                              IOException
        Deprecated.
        Throws:
        org.hibernate.HibernateException
        IOException
      • isExcludedAsProperty

        protected final boolean isExcludedAsProperty​(org.hibernate.type.Type type,
                                                     Object obj)
        Deprecated.
      • renderComponentType

        protected final void renderComponentType​(Writer writer,
                                                 String name,
                                                 org.hibernate.type.Type type,
                                                 Object value,
                                                 String componentName)
                                          throws org.hibernate.HibernateException,
                                                 IOException
        Deprecated.
        Throws:
        org.hibernate.HibernateException
        IOException
      • associatedObjectFound

        protected final void associatedObjectFound​(Object object)
        Deprecated.
      • excludeClass

        public void excludeClass​(Class<?> clazz)
        Deprecated.
        Mark a class as being excluded from the export. Any entities of this type will be excluded from the export.
        Parameters:
        clazz - type to exclude from exports.
      • excludeClassFromReferenceExport

        public void excludeClassFromReferenceExport​(Class<?> clazz)
        Deprecated.
      • excludeClassFromEntityExport

        public void excludeClassFromEntityExport​(Class<?> clazz)
        Deprecated.