Class AbstractMetaDataFactory

    • Field Detail

      • log

        protected transient Log log
      • dir

        protected java.io.File dir
      • store

        protected int store
      • strict

        protected boolean strict
      • types

        protected java.util.Set types
    • Constructor Detail

      • AbstractMetaDataFactory

        public AbstractMetaDataFactory()
    • Method Detail

      • setTypes

        public void setTypes​(java.util.Set types)
        Set of persistent type names supplied by user.
      • setTypes

        public void setTypes​(java.lang.String types)
        Set of semicolon-separated persistent type names supplied by user via auto-configuration.
      • setStoreDirectory

        public void setStoreDirectory​(java.io.File dir)
        Description copied from interface: MetaDataFactory
        Base directory for storing metadata. May not be called.
        Specified by:
        setStoreDirectory in interface MetaDataFactory
      • setStrict

        public void setStrict​(boolean strict)
        Description copied from interface: MetaDataFactory
        If true, I/O's must exactly obey the mode directives given, and may not load additional information.
        Specified by:
        setStrict in interface MetaDataFactory
      • store

        public boolean store​(ClassMetaData[] metas,
                             QueryMetaData[] queries,
                             SequenceMetaData[] seqs,
                             int mode,
                             java.util.Map<java.io.File,​java.lang.String> output)
        Description copied from interface: MetaDataFactory
        Store the given metadata.
        Specified by:
        store in interface MetaDataFactory
        mode - hint about what aspects of the metadata have changed
        output - if non-null, rather than storing metadata directly, add entries mapping each output destination such as a File to the planned output for that destination in string form
        Returns:
        false if this factory is unable to store metadata
      • drop

        public boolean drop​(java.lang.Class[] cls,
                            int mode,
                            java.lang.ClassLoader envLoader)
        Description copied from interface: MetaDataFactory
        Drop the metadata for the given classes in the given mode(s).
        Specified by:
        drop in interface MetaDataFactory
        Returns:
        false if any metadata could not be dropped
      • getQueryScope

        public java.lang.Class getQueryScope​(java.lang.String queryName,
                                             java.lang.ClassLoader loader)
        Description copied from interface: MetaDataFactory
        Return the type defining the given query name, if any.
        Specified by:
        getQueryScope in interface MetaDataFactory
      • getResultSetMappingScope

        public java.lang.Class getResultSetMappingScope​(java.lang.String resultSetMappingName,
                                                        java.lang.ClassLoader loader)
        Description copied from interface: MetaDataFactory
        Return the type defining the given result set mapping name, if any.
        Specified by:
        getResultSetMappingScope in interface MetaDataFactory
      • addClassExtensionKeys

        public void addClassExtensionKeys​(java.util.Collection exts)
        Description copied from interface: MetaDataFactory
        Add any extension keys used by this instance to the given set.
        Specified by:
        addClassExtensionKeys in interface MetaDataFactory
      • addFieldExtensionKeys

        public void addFieldExtensionKeys​(java.util.Collection exts)
        Description copied from interface: MetaDataFactory
        Add any extension keys used by this instance to the given set.
        Specified by:
        addFieldExtensionKeys in interface MetaDataFactory