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
480 B
Java
21 lines
480 B
Java
15 years ago
|
package com.todoroo.andlib.data.sql;
|
||
|
|
||
|
public class Table extends DBObject<Table> {
|
||
|
|
||
|
protected Table(String expression) {
|
||
|
super(expression);
|
||
|
}
|
||
|
|
||
|
public static Table table(String table) {
|
||
|
return new Table(table);
|
||
|
}
|
||
|
|
||
|
@SuppressWarnings("nls")
|
||
|
protected String fieldExpression(String fieldName) {
|
||
|
if (hasAlias()) {
|
||
|
return alias + "." + fieldName;
|
||
|
}
|
||
|
return expression+"."+fieldName;
|
||
|
}
|
||
|
}
|