本文整理了Java中org.jooq.Table.getSchema()
方法的一些代码示例,展示了Table.getSchema()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getSchema()
方法的具体详情如下:
包路径:org.jooq.Table
类名称:Table
方法名:getSchema
[英]Get the table schema.
[中]获取表模式。
代码示例来源:origin: org.jooq/jooq
@Override
public final List<Schema> getSchemas() {
Set<Schema> result = new LinkedHashSet<Schema>();
for (Table<?> table : tables)
if (table.getSchema() != null)
result.add(table.getSchema());
return new ArrayList<Schema>(result);
}
代码示例来源:origin: org.jooq/jooq
@Override
public final List<Catalog> getCatalogs() {
Set<Catalog> result = new LinkedHashSet<Catalog>();
for (Table<?> table : tables)
if (table.getSchema() != null)
if (table.getSchema().getCatalog() != null)
result.add(table.getSchema().getCatalog());
return new ArrayList<Catalog>(result);
}
代码示例来源:origin: org.jooq/jooq
private static String getQualifiedName(Table<?> table) {
StringBuilder sb = new StringBuilder();
if (table.getSchema() != null) {
sb.append(table.getSchema().getName());
sb.append(".");
}
sb.append(table.getName());
return sb.toString();
}
}
代码示例来源:origin: org.jooq/jooq
Lateral(Table<R> table) {
super(table.getName(), table.getSchema());
this.table = table;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
Lateral(Table<R> table) {
super(table.getName(), table.getSchema());
this.table = table;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
TableAlias(Table<R> table, String alias, String[] fieldAliases, boolean wrapInParentheses) {
super(alias, table.getSchema());
this.alias = new Alias<Table<R>>(table, alias, fieldAliases, wrapInParentheses);
this.aliasedFields = init(fieldAliases);
}
代码示例来源:origin: org.jooq/jooq
TableAlias(Table<R> table, Name alias, Name[] fieldAliases, boolean wrapInParentheses) {
super(alias, table.getSchema());
this.alias = new Alias<Table<R>>(table, this, alias, fieldAliases, wrapInParentheses);
this.aliasedFields = init(fieldAliases);
}
代码示例来源:origin: com.torodb.torod.backends/common
public boolean isSemanticallyEquals(Table<Record> table) {
if (!table.getName().equals(getName())) {
return false;
}
if (table.getSchema() == null || !getSchema().getName().equals(table.getSchema().getName())) {
return false;
}
if (table.fields().length != 7) {
return false;
}
return true; //TODO: improve the check
}
代码示例来源:origin: org.jooq/jooq
static final InformationSchema exportTables(Configuration configuration, List<Table<?>> tables) {
InformationSchema result = new InformationSchema();
Set<Catalog> includedCatalogs = new LinkedHashSet<Catalog>();
Set<Schema> includedSchemas = new LinkedHashSet<Schema>();
Set<Table<?>> includedTables = new LinkedHashSet<Table<?>>(tables);
for (Table<?> t : tables)
includedSchemas.add(t.getSchema());
for (Schema s : includedSchemas)
includedCatalogs.add(s.getCatalog());
for (Catalog c : includedCatalogs)
exportCatalog0(result, c);
for (Schema s : includedSchemas)
exportSchema0(result, s);
for (Table<?> t : tables)
exportTable0(configuration, result, t, includedTables);
return result;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
RenamedTable(Table<R> delegate, String rename) {
super(rename, delegate.getSchema());
for (Field<?> field : delegate.fields()) {
createField(field.getName(), field.getDataType(), this);
}
}
}
代码示例来源:origin: org.jooq/jooq
Schema schema = table.getSchema();
代码示例来源:origin: org.jooq/jooq
@Override
public Result<Record> run(DatabaseMetaData meta) throws SQLException {
ResultSet rs = meta.getExportedKeys(null, pkTable.getSchema().getName(), pkTable.getName());
return ctx.fetch(
rs,
String.class, // PKTABLE_CAT
String.class, // PKTABLE_SCHEM
String.class, // PKTABLE_NAME
String.class, // PKCOLUMN_NAME
String.class, // FKTABLE_CAT
String.class, // FKTABLE_SCHEM
String.class, // FKTABLE_NAME
String.class, // FKCOLUMN_NAME
Short.class, // KEY_SEQ
Short.class, // UPDATE_RULE
Short.class, // DELETE_RULE
String.class, // FK_NAME
String.class // PK_NAME
);
}
});
代码示例来源:origin: org.jooq/jooq
if (inputTable.getSchema().getName().equals(s.getInput())) {
schema = new MappedSchema().withInput(inputTable.getSchema().getName());
mapping().getSchemata().add(schema);
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
if (inputTable.getSchema().getName().equals(s.getInput())) {
schema = new MappedSchema().withInput(inputTable.getSchema().getName());
mapping().getSchemata().add(schema);
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
Schema schema = table.getSchema();
代码示例来源:origin: org.jooq/jooq
@Override
public String getSchemaName(int column) throws SQLException {
rs.checkNotClosed();
Field<?> field = rs.result.field(column - 1);
if (field instanceof TableField) {
Table<?> table = ((TableField<?, ?>) field).getTable();
if (table != null) {
Schema schema = table.getSchema();
if (schema != null) {
Configuration configuration = rs.result.configuration();
Schema mapped = null;
if (configuration != null)
mapped = DSL.using(configuration).map(schema);
if (mapped != null)
return mapped.getName();
else
return schema.getName();
}
}
}
// By default, no schema is available
return "";
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
@Override
public String getSchemaName(int column) throws SQLException {
rs.checkNotClosed();
Field<?> field = rs.result.field(column - 1);
if (field instanceof TableField) {
Table<?> table = ((TableField<?, ?>) field).getTable();
if (table != null) {
Schema schema = table.getSchema();
if (schema != null) {
Configuration configuration = ((AttachableInternal) rs.result).configuration();
Schema mapped = null;
if (configuration != null) {
mapped = DSL.using(configuration).map(schema);
}
if (mapped != null) {
return mapped.getName();
}
else {
return schema.getName();
}
}
}
}
// By default, no schema is available
return "";
}
代码示例来源:origin: org.jooq/jooq
it.setTableCatalog(t.getCatalog().getName());
if (!StringUtils.isBlank(t.getSchema().getName()))
it.setTableSchema(t.getSchema().getName());
ic.setTableCatalog(t.getCatalog().getName());
if (!StringUtils.isBlank(t.getSchema().getName()))
ic.setTableSchema(t.getSchema().getName());
代码示例来源:origin: org.jooq/jooq
String schemaName = t.getSchema().getName();
UniqueKey<?> uk = ((ForeignKey<?, ?>) key).getKey();
String ukCatalogName = uk.getTable().getCatalog().getName();
String ukSchemaName = uk.getTable().getSchema().getName();
代码示例来源:origin: org.jooq/jooq
String schemaName = t.getSchema().getName();
内容来源于网络,如有侵权,请联系作者删除!