use of com.wplatform.ddal.dbobject.table.TableMate in project jdbc-shards by wplatform.
the class TruncateTableExecutor method executeUpdate.
@Override
public int executeUpdate() {
TableMate table = castTableMate(prepared.getTable());
session.commit(true);
session.getUser().checkRight(table, Right.DELETE);
TableNode[] nodes = table.getPartitionNode();
execute(nodes);
return 0;
}
use of com.wplatform.ddal.dbobject.table.TableMate in project jdbc-shards by wplatform.
the class MergeExecutor method doTranslate.
@Override
protected List<Value> doTranslate(TableNode node, SearchRow row, StatementBuilder buff) {
String forTable = node.getCompositeObjectName();
TableMate table = castTableMate(prepared.getTable());
Column[] columns = table.getColumns();
return buildInsert(forTable, columns, row, buff);
}
Aggregations