Class AnnotationBasedModelFactory

    • Constructor Detail

      • AnnotationBasedModelFactory

        public AnnotationBasedModelFactory()
    • Method Detail

      • getPackages

        protected String[] getPackages()
        Extension point. Subclasses might override this method in order to have faster model class scanning.
        Returns:
        array of packages to be accepted during class scanning
        See Also:
        ClassGraph.acceptPackagesNonRecursive(String...)
      • getAcceptClassesPatterns

        protected String[] getAcceptClassesPatterns()
        Extension point. Provide a list of patterns to match against class names.
        Returns:
        array of strings containing patterns
        See Also:
        ClassGraph.acceptClasses(String...)
      • getClass

        public Class<?> getClass​(String tableName)
        Get Persistence Class for Table
        Specified by:
        getClass in interface IModelFactory
        Parameters:
        tableName - table name
        Returns:
        class or null
      • getPO

        public PO getPO​(String tableName,
                        int Record_ID,
                        String trxName)
        Get PO Class Instance
        Specified by:
        getPO in interface IModelFactory
        Record_ID - record
        Returns:
        PO for Record or null
      • getPO

        public PO getPO​(String tableName,
                        ResultSet rs,
                        String trxName)
        Get PO Class Instance
        Specified by:
        getPO in interface IModelFactory
        rs - result set
        trxName - transaction
        Returns:
        PO for Record or null