Java 类org.jooq.Table 实例源码

项目:AdvancedDataProfilingSeminar    文件:Queries.java   
private ValidationResult notExists(final DSLContext context, final ColumnPermutation lhs,
    final ColumnPermutation rhs) {

  final Table<Record> lhsAlias = context.select(fields(lhs))
      .from(tables(lhs))
      .where(notNull(lhs))
      .asTable();

  final int violators = context.selectCount().from(
      selectFrom(lhsAlias).whereNotExists(
          context.selectOne()
              .from(tables(rhs))
              .where(row(fields(rhs)).eq(row(lhsAlias.fields())))
      ).limit(1)
  ).fetchOne().value1();

  return new DefaultValidationResult(violators == 0);
}
项目:secrets-proxy    文件:Public.java   
private final List<Table<?>> getTables0() {
    return Arrays.<Table<?>>asList(
        Authentications.AUTHENTICATIONS,
        CiProxies.CI_PROXIES,
        CiProxiesTeams.CI_PROXIES_TEAMS,
        GroupMembers.GROUP_MEMBERS,
        Groups.GROUPS,
        GroupsTeams.GROUPS_TEAMS,
        Invitations.INVITATIONS,
        MiscDocs.MISC_DOCS,
        Organizations.ORGANIZATIONS,
        SchemaMigrations.SCHEMA_MIGRATIONS,
        Teams.TEAMS,
        TeamsUsers.TEAMS_USERS,
        UserFavorites.USER_FAVORITES,
        UserWatches.USER_WATCHES,
        Users.USERS);
}
项目:sunshine-security    文件:SunshineSecurity.java   
private final List<Table<?>> getTables0() {
    return Arrays.<Table<?>>asList(
        Authority.AUTHORITY,
        Function.FUNCTION,
        Role.ROLE,
        SchemaVersion.SCHEMA_VERSION,
        User.USER);
}
项目:stratio-jdbc-sink-mariadb    文件:MappingQueryGenerator.java   
/**
* Desc : Constructor of MappingQueryGenerator.java class
* 
* @param dslContext
* @param tableName
*/
  public MappingQueryGenerator(DSLContext dslContext, final String tableName) {
      Meta meta = dslContext.meta();

      for (Table<?> table : meta.getTables()) {
          if (table.getName().equalsIgnoreCase(tableName)) {
              this.table = table;
              break;
          }
      }
      if (this.table == null) {
          throw new JDBCSinkException("Table not found: " + tableName);
      }
  }
项目:secrets-proxy    文件:CiProxiesTeams.java   
private CiProxiesTeams(String alias, Table<CiProxiesTeamsRecord> aliased) {
    this(alias, aliased, null);
}
项目:redpipe    文件:Public.java   
@Override
public final List<Table<?>> getTables() {
    List result = new ArrayList();
    result.addAll(getTables0());
    return result;
}
项目:redpipe    文件:Pages.java   
private Pages(String alias, Table<PagesRecord> aliased) {
    this(alias, aliased, null);
}
项目:secrets-proxy    文件:CiProxiesTeams.java   
private CiProxiesTeams(String alias, Table<CiProxiesTeamsRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:SA-Jericho    文件:Public.java   
@Override
public final List<Table<?>> getTables() {
    List result = new ArrayList();
    result.addAll(getTables0());
    return result;
}
项目:SA-Jericho    文件:Public.java   
private final List<Table<?>> getTables0() {
    return Arrays.<Table<?>>asList(
        Categories.CATEGORIES,
        Jokes.JOKES);
}
项目:SA-Jericho    文件:Jokes.java   
private Jokes(Name alias, Table<JokesRecord> aliased) {
    this(alias, aliased, null);
}
项目:SA-Jericho    文件:Jokes.java   
private Jokes(Name alias, Table<JokesRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:SA-Jericho    文件:Categories.java   
private Categories(Name alias, Table<CategoriesRecord> aliased) {
    this(alias, aliased, null);
}
项目:secrets-proxy    文件:Invitations.java   
private Invitations(String alias, Table<InvitationsRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:vertx-zero    文件:DbHtl.java   
@Override
public final List<Table<?>> getTables() {
    List result = new ArrayList();
    result.addAll(getTables0());
    return result;
}
项目:vertx-zero    文件:DbHtl.java   
private final List<Table<?>> getTables0() {
    return Arrays.<Table<?>>asList(
        SecUser.SEC_USER);
}
项目:vertx-zero    文件:SecUser.java   
private SecUser(Name alias, Table<SecUserRecord> aliased) {
    this(alias, aliased, null);
}
项目:jooq-flyway-typesafe-migration    文件:v1_Book.java   
private v1_Book(String alias, Table<v1_BookRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:oneops    文件:Crawler.java   
@Override
public final List<Table<?>> getTables() {
    List result = new ArrayList();
    result.addAll(getTables0());
    return result;
}
项目:oneops    文件:Crawler.java   
private final List<Table<?>> getTables0() {
    return Arrays.<Table<?>>asList(
        CrawlEntities.CRAWL_ENTITIES);
}
项目:jooq-example    文件:Public.java   
private final List<Table<?>> getTables0() {
    return Arrays.<Table<?>>asList(
        Customer.CUSTOMER,
        Product.PRODUCT);
}
项目:vertx-jooq-async    文件:DefaultSchema.java   
@Override
public final List<Table<?>> getTables() {
    List result = new ArrayList();
    result.addAll(getTables0());
    return result;
}
项目:sunshine-security    文件:Role.java   
private Role(String alias, Table<RoleRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:jooq-example    文件:Product.java   
private Product(String alias, Table<ProductRecord> aliased) {
    this(alias, aliased, null);
}
项目:oneops    文件:CmCiRelations.java   
private CmCiRelations(Name alias, Table<CmCiRelationsRecord> aliased) {
    this(alias, aliased, null);
}
项目:oneops    文件:CmCiRelations.java   
private CmCiRelations(Name alias, Table<CmCiRelationsRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:secrets-proxy    文件:UserFavorites.java   
private UserFavorites(String alias, Table<UserFavoritesRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:oneops    文件:DjRfcRelationAttributes.java   
private DjRfcRelationAttributes(Name alias, Table<DjRfcRelationAttributesRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:oneops    文件:CmsLock.java   
private CmsLock(Name alias, Table<CmsLockRecord> aliased) {
    this(alias, aliased, null);
}
项目:oneops    文件:CmsLock.java   
private CmsLock(Name alias, Table<CmsLockRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:oneops    文件:CmNsOpt.java   
private CmNsOpt(Name alias, Table<CmNsOptRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:jooq-flyway-typesafe-migration    文件:v1_Book.java   
private v1_Book(String alias, Table<v1_BookRecord> aliased) {
    this(alias, aliased, null);
}
项目:secrets-proxy    文件:Authentications.java   
private Authentications(String alias, Table<AuthenticationsRecord> aliased) {
    this(alias, aliased, null);
}
项目:jooq-flyway-typesafe-migration    文件:v1_FlywayTest.java   
@Override
public final List<Table<?>> getTables() {
    List result = new ArrayList();
    result.addAll(getTables0());
    return result;
}
项目:secrets-proxy    文件:UserWatches.java   
private UserWatches(String alias, Table<UserWatchesRecord> aliased) {
    this(alias, aliased, null);
}
项目:vertx-jooq-async    文件:Somethingcomposite.java   
private Somethingcomposite(Name alias, Table<SomethingcompositeRecord> aliased) {
    this(alias, aliased, null);
}
项目:jooq-flyway-typesafe-migration    文件:v1_Author.java   
private v1_Author(String alias, Table<v1_AuthorRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:oneops    文件:MdRelations.java   
private MdRelations(Name alias, Table<MdRelationsRecord> aliased, Field<?>[] parameters) {
    super(alias, null, aliased, parameters, "");
}
项目:oneops    文件:CmOpsProcState.java   
private CmOpsProcState(Name alias, Table<CmOpsProcStateRecord> aliased) {
    this(alias, aliased, null);
}
项目:jooq-example    文件:Public.java   
@Override
public final List<Table<?>> getTables() {
    List result = new ArrayList();
    result.addAll(getTables0());
    return result;
}