public Constructor emptyConstructor() { return Constructor.of().public_(); }
.add("return injector.getOrThrow(" + getSupport().typeName(getSupport().projectOrThrow()) + "Application.class);"); final Constructor constr = Constructor.of().protected_();
public Constructor copyConstructor(Type type, CopyConstructorMode mode) { final TranslatorSupport<D> support = getSupport(); final Constructor constructor = Constructor.of().protected_() .add(Field.of(support.variableName(), type));
.add(getSupport().generatedManagerType()) .add(Field.of("tableIdentifier", SimpleParameterizedType.create(TableIdentifier.class, getSupport().entityType())).private_().final_()) .add(Constructor.of().protected_() .add("this.tableIdentifier = " + TableIdentifier.class.getSimpleName() + ".of(" + Stream.of(getSupport().dbmsOrThrow().getId(), getSupport().schemaOrThrow().getId(), getSupport().tableOrThrow().getId())
.add(Constructor.of().protected_() .add("this.tableIdentifier = " + TableIdentifier.class.getSimpleName() + ".of("
colEnum.add(Constructor.of() .add(Field.of(DATABASE_NAME, String.class)) .add(Field.of(DATABASE_ORDINAL, int.class))
.abstract_() .add(getSupport().entityType()) .add(Constructor.of().protected_())
.add(Field.of("tableIdentifier", tableIdentifierType).private_().final_()) .add(SimpleParameterizedType.create(ColumnIdentifier.class, getSupport().entityType())) .add(Constructor.of() .add(Field.of("columnId", String.class)) .add("this.columnId\t = columnId;")
.add("return injector.getOrThrow(" + getSupport().typeName(getSupport().projectOrThrow()) + "Application.class);"); final Constructor constr = Constructor.of().protected_();
.add(Constructor.of().protected_() .add("this.tableIdentifier = " + TableIdentifier.class.getSimpleName() + ".of("
.add(getSupport().generatedManagerType()) .add(Field.of("tableIdentifier", SimpleParameterizedType.create(TableIdentifier.class, getSupport().entityType())).private_().final_()) .add(Constructor.of().protected_() .add("this.tableIdentifier = " + TableIdentifier.class.getSimpleName() + ".of(" + Stream.of(getSupport().dbmsOrThrow().getId(), getSupport().schemaOrThrow().getId(), getSupport().tableOrThrow().getId())
.abstract_() .add(getSupport().entityType()) .add(Constructor.of().protected_())
.add(Field.of("tableIdentifier", tableIdentifierType).private_().final_()) .add(SimpleParameterizedType.create(ColumnIdentifier.class, getSupport().entityType())) .add(Constructor.of() .add(Field.of("columnId", String.class)) .add("this.columnId\t = columnId;")