本文整理汇总了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;
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}