ru.curs.celesta.score.BinaryColumn Maven / Gradle / Ivy
The newest version!
package ru.curs.celesta.score;
import ru.curs.celesta.dbutils.BLOB;
/**
* Binary column (IMAGE or BLOB type).
*/
public final class BinaryColumn extends Column {
/**
* Celesta type of the column data.
*/
public static final String CELESTA_TYPE = "BLOB";
private String defaultvalue;
public BinaryColumn(TableElement table, String name) throws ParseException {
super(table, name);
}
@Override
protected void setDefault(String lexvalue) {
defaultvalue = lexvalue;
}
@Override
public String getDefaultValue() {
return defaultvalue;
}
@Override
public String jdbcGetterName() {
return "getBlob";
}
@Override
public String getCelestaType() {
return CELESTA_TYPE;
}
@Override
public Class> getJavaClass() {
return BLOB.class;
}
@Override
public String getCelestaDefault() {
return defaultvalue;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy