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

com.jpattern.orm.crud.AColumnValueGenerator Maven / Gradle / Ivy

There is a newer version: 3.5.1
Show newest version
package com.jpattern.orm.crud;

import com.jpattern.orm.dialect.IDialect;

/**
 * 
 * @author Francesco Cina
 *
 * 05/giu/2011
 */
public abstract class AColumnValueGenerator  {
	
	/**
	 * 
	 */
	
	private final String name;
	private int cacheSize = 0;
	private String generatedColumnName;

	public AColumnValueGenerator(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}
	
	public void setCacheSize(int cacheSize) {
		this.cacheSize = cacheSize;
	}

	public int getCacheSize() {
		return cacheSize;
	}
	
	public void setGeneratedColumnName(String generatedColumnName) {
		this.generatedColumnName = generatedColumnName;
	}

	public String getGeneratedColumnName() {
		return generatedColumnName;
	}
	
	public abstract String insertQueryParameter(IDialect dialect, String currentValue);
	
	public abstract String insertColumn(IDialect dialect, String currentValue);
	
	public abstract boolean returnGeneratedKeys();
	
	public abstract boolean isAutoGenerated();
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy