/** * INTERNAL: */ public String toString() { return Helper.getShortClassName(getClass()) + "(" + getName() + ")"; }
/** * INTERNAL: */ public String toString() { return Helper.getShortClassName(getClass()) + "(" + getName() + ")"; }
/** * INTERNAL: */ @Override public String toString() { return Helper.getShortClassName(getClass()) + "(" + getName() + ")"; }
protected NonreflectiveMethodDefinition buildConstructor() { NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition(); methodDefinition.setName(getClassName()); methodDefinition.setIsConstructor(true); methodDefinition.addLine("setName(\"" + getProject().getName() + "\");"); methodDefinition.addLine("applyLogin();"); if (!getProject().getDefaultReadOnlyClasses().isEmpty()) { methodDefinition.addLine("setDefaultReadOnlyClasses(buildDefaultReadOnlyClasses());"); } methodDefinition.addLine(""); // Sort by name. Vector descriptors = buildSortedVectorOfDescriptors(getProject().getOrderedDescriptors()); for (Enumeration descriptorsEnum = descriptors.elements(); descriptorsEnum.hasMoreElements();) { ClassDescriptor descriptor = (ClassDescriptor)descriptorsEnum.nextElement(); // Singleton interface descriptors should not exist. if (!(descriptor.isDescriptorForInterface() && (descriptor.getInterfacePolicy().getImplementorDescriptor() != null))) { methodDefinition.addLine("addDescriptor(build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor());"); } } return methodDefinition; }
protected NonreflectiveMethodDefinition buildConstructor() { NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition(); methodDefinition.setName(getClassName()); methodDefinition.setIsConstructor(true); methodDefinition.addLine("setName(\"" + getProject().getName() + "\");"); methodDefinition.addLine("applyLogin();"); if (!getProject().getDefaultReadOnlyClasses().isEmpty()) { methodDefinition.addLine("setDefaultReadOnlyClasses(buildDefaultReadOnlyClasses());"); } methodDefinition.addLine(""); // Sort by name. List<ClassDescriptor> descriptors = buildSortedListOfDescriptors(getProject().getOrderedDescriptors()); for (ClassDescriptor descriptor : descriptors) { // Singleton interface descriptors should not exist. if (!(descriptor.isDescriptorForInterface() && (descriptor.getInterfacePolicy().getImplementorDescriptor() != null))) { methodDefinition.addLine("addDescriptor(build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor());"); } } return methodDefinition; }
protected NonreflectiveMethodDefinition buildConstructor() { NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition(); methodDefinition.setName(getClassName()); methodDefinition.setIsConstructor(true); methodDefinition.addLine("setName(\"" + getProject().getName() + "\");"); methodDefinition.addLine("applyLogin();"); if (!getProject().getDefaultReadOnlyClasses().isEmpty()) { methodDefinition.addLine("setDefaultReadOnlyClasses(buildDefaultReadOnlyClasses());"); } methodDefinition.addLine(""); // Sort by name. List<ClassDescriptor> descriptors = buildSortedListOfDescriptors(getProject().getOrderedDescriptors()); for (ClassDescriptor descriptor : descriptors) { // Singleton interface descriptors should not exist. if (!(descriptor.isDescriptorForInterface() && (descriptor.getInterfacePolicy().getImplementorDescriptor() != null))) { methodDefinition.addLine("addDescriptor(build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor());"); } } return methodDefinition; }
if (oxProject.getName().length() == 0) {
if (oxProject.getName().length() == 0) {
definition.setName(Helper.truncate(project.getName() + "SEQ_SEL", MAX_NAME_SIZE)); definition.addArgument("SEQ_NAME", String.class, 100); definition.addArgument("PREALLOC_SIZE", java.math.BigDecimal.class, 10);
definition.setName(Helper.truncate(project.getName() + "SEQ_SEL", MAX_NAME_SIZE)); definition.addArgument("SEQ_NAME", String.class, 100); definition.addArgument("PREALLOC_SIZE", java.math.BigDecimal.class, 10);
definition.setName(Helper.truncate(project.getName() + "SEQ_SEL", MAX_NAME_SIZE)); definition.addArgument("SEQ_NAME", String.class, 100); definition.addArgument("PREALLOC_SIZE", java.math.BigDecimal.class, 10);