org.zodiac.fastorm.rdb.metadata.NativeSqlDefaultValue Maven / Gradle / Ivy
The newest version!
package org.zodiac.fastorm.rdb.metadata;
import org.zodiac.fastorm.core.DefaultValue;
import org.zodiac.fastorm.rdb.operator.builder.fragments.NativeSql;
public class NativeSqlDefaultValue implements DefaultValue, NativeSql {
private String sql;
private NativeSqlDefaultValue(String sql) {
this.sql = sql;
}
public void setSql(String sql) {
this.sql = sql;
}
@Override
public String getSql() {
return sql;
}
@Override
public Object get() {
return this;
}
public static NativeSqlDefaultValue of(String sql) {
return new NativeSqlDefaultValue(sql);
}
}