mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
490 B
Java
21 lines
490 B
Java
package com.todoroo.andlib.sql;
|
|
|
|
public class SqlTable extends DBObject<SqlTable> {
|
|
|
|
protected SqlTable(String expression) {
|
|
super(expression);
|
|
}
|
|
|
|
public static SqlTable table(String table) {
|
|
return new SqlTable(table);
|
|
}
|
|
|
|
@SuppressWarnings("nls")
|
|
protected String fieldExpression(String fieldName) {
|
|
if (hasAlias()) {
|
|
return alias + "." + fieldName;
|
|
}
|
|
return expression+"."+fieldName;
|
|
}
|
|
}
|