protobuf4j.orm.sql.clause.FromClause Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf4j-sql Show documentation
Show all versions of protobuf4j-sql Show documentation
A Facility Framework to Develop with Google Protobuf
The newest version!
package protobuf4j.orm.sql.clause;
import lombok.Data;
import lombok.NonNull;
import protobuf4j.orm.sql.AbstractSqlObject;
import protobuf4j.orm.sql.ISqlValue;
import protobuf4j.orm.sql.ITableRef;
import javax.annotation.Nonnull;
import java.util.List;
/**
* author: yuanwq
* date: 2018/7/12
*/
@Data
public class FromClause extends AbstractSqlObject {
@NonNull
private final ITableRef tableRef;
@Override
public StringBuilder toSqlTemplate(@Nonnull StringBuilder sb) {
sb.append("FROM ");
tableRef.toSqlTemplate(sb);
return sb;
}
@Override
public StringBuilder toSolidSql(@Nonnull StringBuilder sb) {
sb.append("FROM ");
tableRef.toSolidSql(sb);
return sb;
}
@Override
public List collectSqlValue(@Nonnull List sqlValues) {
tableRef.collectSqlValue(sqlValues);
return sqlValues;
}
}