/** * Returns {@code true} if the two specified documents represents the same * element in the database. Two documents are considered same if they have * the same name and type and their parents are considered same. * * @param first the first document * @param second the second document * @return {@code true} if same, else {@code false} */ public static boolean isSame(Schema first, Schema second) { if (first.getId().equals(second.getId())) { final Dbms firstParent = first.getParentOrThrow(); final Dbms secondParent = second.getParentOrThrow(); return isSame(firstParent, secondParent); } else { return false; } }
private String readFromResultSet(File file, Column c, AtomicInteger position) { final Dbms dbms = c.getParentOrThrow().getParentOrThrow().getParentOrThrow(); dbmsTypeOf(dbmsHandlerComponent, c.getParentOrThrow().getParentOrThrow().getParentOrThrow()), c.findDatabaseType() );
fkcMutator.setForeignDatabaseName(schema.getParentOrThrow().getId()); fkcMutator.setForeignSchemaName("schema"); };
fkcMutator.setForeignDatabaseName(schema.getParentOrThrow().getId());
final Dbms dbms = schema.getParentOrThrow(); final Dbms dbms = schema.getParentOrThrow(); final AtomicInteger cnt = new AtomicInteger(); final double noTables = schema.tables().count();
final Dbms dbms = schema.getParentOrThrow(); final List<String> constants = enumConstantsOf(dbms, table, columnName); column.mutator().setEnumConstants(constants.stream().collect(joining(",")));
).set(Value.ofInvocation(TableIdentifier.class, "of", Stream.<HasAlias>of( table.getParentOrThrow().getParentOrThrow(), table.getParentOrThrow(), table
private String readFromResultSet(File file, Column c, AtomicInteger position) { final Dbms dbms = c.getParentOrThrow().getParentOrThrow().getParentOrThrow(); dbmsTypeOf(dbmsHandlerComponent, c.getParentOrThrow().getParentOrThrow().getParentOrThrow()), c.findDatabaseType() );
fkcMutator.setForeignDatabaseName(schema.getParentOrThrow().getId()); fkcMutator.setForeignSchemaName("schema"); };
fkcMutator.setForeignDatabaseName(schema.getParentOrThrow().getId());
final Dbms dbms = schema.getParentOrThrow(); final Dbms dbms = schema.getParentOrThrow(); final AtomicInteger cnt = new AtomicInteger(); final double noTables = schema.tables().count();
).set(Value.ofInvocation(TableIdentifier.class, "of", Stream.<HasAlias>of( table.getParentOrThrow().getParentOrThrow(), table.getParentOrThrow(), table
final Dbms dbms = schema.getParentOrThrow(); final List<String> constants = enumConstantsOf(dbms, table, columnName); column.mutator().setEnumConstants(constants.stream().collect(joining(",")));