public Table<R> rename(String rename) { return new TableImpl<R>(rename, getSchema()); }
public Table<R> rename(Name rename) { return new TableImpl<R>(rename, getSchema()); }
/** * Create a qualified table, given its table name. * <p> * This constructs a table reference given the table's qualified name. jOOQ * will render the table name according to your * {@link Settings#getRenderNameStyle()} settings. Choose * {@link RenderNameStyle#QUOTED} to prevent syntax errors and/or SQL * injection. * <p> * Example: <code><pre> * // This table... * tableByName("MY_SCHEMA", "MY_TABLE"); * * // ... will render this SQL on SQL Server with RenderNameStyle.QUOTED set * [MY_SCHEMA].[MY_TABLE] * </pre></code> * <p> * The returned table does not know its field references, i.e. * {@link Table#fields()} returns an empty array. */ @Support public static Table<Record> table(Name name, Comment comment) { return new TableImpl<Record>(name, null, null, null, comment); }
/** * Create a qualified table, given its table name. * <p> * This constructs a table reference given the table's qualified name. jOOQ * will render the table name according to your * {@link Settings#getRenderNameStyle()} settings. Choose * {@link RenderNameStyle#QUOTED} to prevent syntax errors and/or SQL * injection. * <p> * Example: <code><pre> * // This table... * tableByName("MY_SCHEMA", "MY_TABLE"); * * // ... will render this SQL on SQL Server with RenderNameStyle.QUOTED set * [MY_SCHEMA].[MY_TABLE] * </pre></code> * <p> * The returned table does not know its field references, i.e. * {@link Table#fields()} returns an empty array. */ @Support public static Table<Record> table(Name name) { return new TableImpl<Record>(name); }