当前位置: 首页>>代码示例>>Java>>正文


Java JavaVisibility.PUBLIC属性代码示例

本文整理汇总了Java中org.mybatis.generator.api.dom.java.JavaVisibility.PUBLIC属性的典型用法代码示例。如果您正苦于以下问题:Java JavaVisibility.PUBLIC属性的具体用法?Java JavaVisibility.PUBLIC怎么用?Java JavaVisibility.PUBLIC使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.mybatis.generator.api.dom.java.JavaVisibility的用法示例。


在下文中一共展示了JavaVisibility.PUBLIC属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getExampleMethodVisibility

public JavaVisibility getExampleMethodVisibility() {
    if (exampleMethodVisibility == null) {
        String type = context
                .getJavaClientGeneratorConfiguration()
                .getProperty(PropertyRegistry.DAO_EXAMPLE_METHOD_VISIBILITY);
        if (stringHasValue(type)) {
            if ("public".equalsIgnoreCase(type)) { //$NON-NLS-1$
                exampleMethodVisibility = JavaVisibility.PUBLIC;
            } else if ("private".equalsIgnoreCase(type)) { //$NON-NLS-1$
                exampleMethodVisibility = JavaVisibility.PRIVATE;
            } else if ("protected".equalsIgnoreCase(type)) { //$NON-NLS-1$
                exampleMethodVisibility = JavaVisibility.PROTECTED;
            } else if ("default".equalsIgnoreCase(type)) { //$NON-NLS-1$
                exampleMethodVisibility = JavaVisibility.DEFAULT;
            } else {
                exampleMethodVisibility = JavaVisibility.PUBLIC;
                warnings.add(getString("Warning.16", type)); //$NON-NLS-1$
            }
        } else {
            exampleMethodVisibility = JavaVisibility.PUBLIC;
        }
    }

    return exampleMethodVisibility;
}
 
开发者ID:DomKing,项目名称:springbootWeb,代码行数:25,代码来源:AbstractDAOElementGenerator.java

示例2: addInterfaceElements

@Override
public void addInterfaceElements(Interface interfaze) {
    if (getExampleMethodVisibility() == JavaVisibility.PUBLIC) {
        Set<FullyQualifiedJavaType> importedTypes = new TreeSet<FullyQualifiedJavaType>();
        Method method = getMethodShell(importedTypes);

        if (context.getPlugins().clientDeleteByExampleMethodGenerated(
                method, interfaze, introspectedTable)) {
            interfaze.addImportedTypes(importedTypes);
            interfaze.addMethod(method);
        }
    }
}
 
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:13,代码来源:DeleteByExampleMethodGenerator.java

示例3: addInterfaceElements

@Override
public void addInterfaceElements(Interface interfaze) {
    if (getExampleMethodVisibility() == JavaVisibility.PUBLIC) {
        Set<FullyQualifiedJavaType> importedTypes = new TreeSet<FullyQualifiedJavaType>();
        Method method = getMethodShell(importedTypes);

        if (context.getPlugins()
                .clientUpdateByExampleWithoutBLOBsMethodGenerated(method,
                        interfaze, introspectedTable)) {
            interfaze.addImportedTypes(importedTypes);
            interfaze.addMethod(method);
        }
    }
}
 
开发者ID:xiachengwei5,项目名称:org.mybatis.generator.core-1.3.5,代码行数:14,代码来源:UpdateByExampleWithoutBLOBsMethodGenerator.java

示例4: addInterfaceElements

@Override
public void addInterfaceElements(Interface interfaze) {
    if (getExampleMethodVisibility() == JavaVisibility.PUBLIC) {
        Set<FullyQualifiedJavaType> importedTypes = new TreeSet<FullyQualifiedJavaType>();
        Method method = getMethodShell(importedTypes);

        if (context.getPlugins()
                .clientSelectByExampleWithBLOBsMethodGenerated(method,
                        interfaze, introspectedTable)) {
            interfaze.addImportedTypes(importedTypes);
            interfaze.addMethod(method);
        }
    }
}
 
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:14,代码来源:SelectByExampleWithBLOBsMethodGenerator.java

示例5: addInterfaceElements

@Override
public void addInterfaceElements(Interface interfaze) {
    if (getExampleMethodVisibility() == JavaVisibility.PUBLIC) {
        Set<FullyQualifiedJavaType> importedTypes = new TreeSet<FullyQualifiedJavaType>();
        Method method = getMethodShell(importedTypes);

        if (context.getPlugins()
                .clientSelectByExampleWithoutBLOBsMethodGenerated(method,
                        interfaze, introspectedTable)) {
            interfaze.addImportedTypes(importedTypes);
            interfaze.addMethod(method);
        }
    }
}
 
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:14,代码来源:SelectByExampleWithoutBLOBsMethodGenerator.java

示例6: addInterfaceElements

@Override
public void addInterfaceElements(Interface interfaze) {
    if (getExampleMethodVisibility() == JavaVisibility.PUBLIC) {
        Set<FullyQualifiedJavaType> importedTypes = new TreeSet<FullyQualifiedJavaType>();
        Method method = getMethodShell(importedTypes);

        if (context.getPlugins()
                .clientUpdateByExampleSelectiveMethodGenerated(method,
                        interfaze, introspectedTable)) {
            interfaze.addImportedTypes(importedTypes);
            interfaze.addMethod(method);
        }
    }
}
 
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:14,代码来源:UpdateByExampleSelectiveMethodGenerator.java

示例7: addInterfaceElements

@Override
public void addInterfaceElements(Interface interfaze) {
    if (getExampleMethodVisibility() == JavaVisibility.PUBLIC) {
        Set<FullyQualifiedJavaType> importedTypes = new TreeSet<FullyQualifiedJavaType>();
        Method method = getMethodShell(importedTypes);

        if (context.getPlugins()
                .clientUpdateByExampleWithBLOBsMethodGenerated(method,
                        interfaze, introspectedTable)) {
            interfaze.addImportedTypes(importedTypes);
            interfaze.addMethod(method);
        }
    }
}
 
开发者ID:DomKing,项目名称:server-utility,代码行数:14,代码来源:UpdateByExampleWithBLOBsMethodGenerator.java

示例8: addInterfaceElements

@Override
public void addInterfaceElements(Interface interfaze) {
    if (getExampleMethodVisibility() == JavaVisibility.PUBLIC) {
        Set<FullyQualifiedJavaType> importedTypes = new TreeSet<FullyQualifiedJavaType>();
        Method method = getMethodShell(importedTypes);

        if (context.getPlugins().clientCountByExampleMethodGenerated(
                method, interfaze, introspectedTable)) {
            interfaze.addImportedTypes(importedTypes);
            interfaze.addMethod(method);
        }
    }
}
 
开发者ID:nextyu,项目名称:summer-mybatis-generator,代码行数:13,代码来源:CountByExampleMethodGenerator.java


注:本文中的org.mybatis.generator.api.dom.java.JavaVisibility.PUBLIC属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。