com.jpattern.orm.crud.AColumnValueGenerator Maven / Gradle / Ivy
package com.jpattern.orm.crud;
import com.jpattern.orm.dialect.Dialect;
/**
*
* @author Francesco Cina
*
* 05/giu/2011
*/
public abstract class AColumnValueGenerator {
private final String name;
private int cacheSize = 0;
private String generatedColumnName = "";
private long[] activateValues = {};
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(Dialect dialect, String currentValue);
public abstract String insertColumn(Dialect dialect, String currentValue);
public abstract boolean returnGeneratedKeys();
public abstract boolean isAutoGenerated();
public long[] getActivateValues() {
return activateValues;
}
public void setActivateValues(long[] activateValues) {
this.activateValues = activateValues;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy