Uses of Interface
org.fastnate.generator.statements.StatementsWriter
Packages that use StatementsWriter
Package
Description
-
Uses of StatementsWriter in org.fastnate.generator
Fields in org.fastnate.generator declared as StatementsWriterModifier and TypeFieldDescriptionprivate final StatementsWriterEntitySqlGenerator.writerThe target of any generated SQL statement, e.g. a file or database.Methods in org.fastnate.generator that return StatementsWriterModifier and TypeMethodDescriptionEntitySqlGenerator.getWriter()The target of any generated SQL statement, e.g. a file or database.Constructors in org.fastnate.generator with parameters of type StatementsWriterModifierConstructorDescriptionEntitySqlGenerator(GeneratorContext context, StatementsWriter writer) Creates a newEntitySqlGeneratorinstance. -
Uses of StatementsWriter in org.fastnate.generator.context
Methods in org.fastnate.generator.context with parameters of type StatementsWriterModifier and TypeMethodDescriptionvoidIdentityValue.alignNextValue(StatementsWriter writer) abstract voidIdGenerator.alignNextValue(StatementsWriter writer) Creates all statements that are necessary to set the next value created from the database iscurrentValue + 1.voidSequenceIdGenerator.alignNextValue(StatementsWriter writer) voidTableIdGenerator.alignNextValue(StatementsWriter writer) protected voidPluralProperty.createDirectValueStatement(StatementsWriter writer, E entity, ColumnExpression sourceId, ColumnExpression key, T value) Creates the statements for a (not embeddable) value from the collection.private voidPluralProperty.createEmbeddedValueStatement(StatementsWriter writer, E entity, ColumnExpression sourceId, ColumnExpression key, T value) Writes all embedded properties of a value of a collection table.voidCollectionProperty.createPostInsertStatements(StatementsWriter writer, E entity) voidEmbeddedProperty.createPostInsertStatements(StatementsWriter writer, E entity) voidEntityClass.createPostInsertStatements(E entity, StatementsWriter writer) Marks an entity as written and creates any pending update / insert statements.voidMapProperty.createPostInsertStatements(StatementsWriter writer, E entity) voidProperty.createPostInsertStatements(StatementsWriter writer, E entity) Creates additional SQL statements that are necessary after this property is written (e.g. for mapping tables).voidEmbeddedProperty.createPreInsertStatements(StatementsWriter writer, E entity) voidGeneratedIdProperty.createPreInsertStatements(StatementsWriter writer, E entity) voidIdGenerator.createPreInsertStatements(StatementsWriter writer) Creates the statements that are needed in the output beforeIdGenerator.addNextValue(TableStatement, GeneratorColumn, Number).voidProperty.createPreInsertStatements(StatementsWriter writer, E entity) Creates SQL statements that are necessary before this property is written (e.g. for updating the table generator).voidSequenceIdGenerator.createPreInsertStatements(StatementsWriter writer) voidTableIdGenerator.createPreInsertStatements(StatementsWriter writer) protected voidPluralProperty.createValueStatement(StatementsWriter writer, E entity, ColumnExpression sourceId, ColumnExpression key, T value) Adds a value statement to the list of collection statements.voidEntityProperty.generatePendingStatements(StatementsWriter writer, E entity, Object writtenEntity, Object... arguments) voidPluralProperty.generatePendingStatements(StatementsWriter writer, E entity, Object writtenEntity, Object... arguments) voidProperty.generatePendingStatements(StatementsWriter writer, E entity, Object writtenEntity, Object... arguments) Generates the update statements for an entity that are required after another entity was generated.voidGeneratorContext.writeAlignmentStatements(StatementsWriter writer) Builds all statements that are necessary to align ID generators in the database with the current IDs.private voidTableIdGenerator.writeAllocatedValue(StatementsWriter writer, boolean firstUpdate, long allocatedValue) <E> voidGenerationState.PendingState.writePendingStatements(StatementsWriter writer, Object entity) Generates the update statements for all entities that are required after the given entity was generated. -
Uses of StatementsWriter in org.fastnate.generator.dialect
Methods in org.fastnate.generator.dialect with parameters of type StatementsWriterModifier and TypeMethodDescriptionvoidGeneratorDialect.adjustNextIdentityValue(StatementsWriter writer, GeneratorTable table, GeneratorColumn column, long nextValue) Adjusts the next value of the given identity column to ensure that it is bigger than the last generated value.voidPostgresDialect.adjustNextIdentityValue(StatementsWriter writer, GeneratorTable table, GeneratorColumn columnName, long nextValue) voidGeneratorDialect.adjustNextSequenceValue(StatementsWriter writer, String sequenceName, long currentSequenceValue, long nextSequenceValue, int incrementSize) Adjusts the given sequence to ensure that the next value is exactly the given value.voidOracleDialect.adjustNextSequenceValue(StatementsWriter writer, String sequenceName, long currentSequenceValue, long nextSequenceValue, int incrementSize) voidGeneratorDialect.truncateTable(StatementsWriter writer, GeneratorTable table) Adds a "truncate table" statement to the given writer.voidPostgresDialect.truncateTable(StatementsWriter writer, GeneratorTable table) -
Uses of StatementsWriter in org.fastnate.generator.statements
Classes in org.fastnate.generator.statements that implement StatementsWriterModifier and TypeClassDescriptionclassBase class for implementations ofStatementsWriter.classAn implementation of aStatementsWriterwhich writes the SQL statements directly to a database connection.classImplementation ofStatementsWriterwhich writes the statements into aWriterresp.classGenerates statements for the Liquibase changelog file.classA simpleStatementsWriter, which just stores all generated statements into a list.classImplementation of aStatementsWriterthat writes bulk text files for each table, and references them in "COPY INTO".