All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springframework.data.relational.core.dialect.InsertRenderContexts Maven / Gradle / Ivy

There is a newer version: 3.3.2
Show newest version
package org.springframework.data.relational.core.dialect;

/**
 * In the scope of Insert with default values SQL statement, for example {@literal INSERT INTO SCHEMA.TABLE VALUES
 * (DEFAULT)} this enum represents the default values part in different {@link Dialect}s
 *
 * @author Mikhail Polivakha
 * @since 2.4
 */
public enum InsertRenderContexts implements InsertRenderContext {

	DEFAULT(" VALUES (DEFAULT)"), //
	MS_SQL_SERVER(" DEFAULT VALUES");

	private final String defaultInsertPart;

	InsertRenderContexts(String defaultInsertPart) {
		this.defaultInsertPart = defaultInsertPart;
	}

	public String getDefaultValuesInsertPart() {
		return defaultInsertPart;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy