Package com.gengoai.sql.constraint
Interface ConstraintBuilder
-
public interface ConstraintBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CheckConstraint
check(@NonNull SQLElement sql)
default CheckConstraint
check(String sql)
default ForeignKeyConstraint
foreignKey(@NonNull Collection<String> columns, @NonNull SQLElement foreignTable, @NonNull Collection<String> foreignTableColumns)
default ForeignKeyConstraint
foreignKey(@NonNull Collection<String> columns, @NonNull String foreignTable, @NonNull Collection<String> foreignTableColumns)
default ForeignKeyConstraint
foreignKey(@NonNull List<SQLElement> columns, @NonNull SQLElement foreignTable, @NonNull List<SQLElement> foreignTableColumns)
default ForeignKeyConstraint
foreignKey(@NonNull List<SQLElement> columns, @NonNull String foreignTable, @NonNull List<SQLElement> foreignTableColumns)
String
getName()
default NotNullConstraint
notNull(@NonNull SQLElement column)
default NotNullConstraint
notNull(@NonNull String column)
default PrimaryKeyConstraint
primaryKey(@NonNull SQLElement... columns)
default PrimaryKeyConstraint
primaryKey(@NonNull String... columns)
default PrimaryKeyConstraint
primaryKey(Collection<SQLElement> columns)
default UniqueConstraint
unique(@NonNull SQLElement... columns)
default UniqueConstraint
unique(@NonNull String... columns)
default UniqueConstraint
unique(Collection<SQLElement> columns)
-
-
-
Method Detail
-
check
default CheckConstraint check(String sql)
-
check
default CheckConstraint check(@NonNull @NonNull SQLElement sql)
-
foreignKey
default ForeignKeyConstraint foreignKey(@NonNull @NonNull List<SQLElement> columns, @NonNull @NonNull String foreignTable, @NonNull @NonNull List<SQLElement> foreignTableColumns)
-
foreignKey
default ForeignKeyConstraint foreignKey(@NonNull @NonNull List<SQLElement> columns, @NonNull @NonNull SQLElement foreignTable, @NonNull @NonNull List<SQLElement> foreignTableColumns)
-
foreignKey
default ForeignKeyConstraint foreignKey(@NonNull @NonNull Collection<String> columns, @NonNull @NonNull String foreignTable, @NonNull @NonNull Collection<String> foreignTableColumns)
-
foreignKey
default ForeignKeyConstraint foreignKey(@NonNull @NonNull Collection<String> columns, @NonNull @NonNull SQLElement foreignTable, @NonNull @NonNull Collection<String> foreignTableColumns)
-
getName
String getName()
-
notNull
default NotNullConstraint notNull(@NonNull @NonNull String column)
-
notNull
default NotNullConstraint notNull(@NonNull @NonNull SQLElement column)
-
primaryKey
default PrimaryKeyConstraint primaryKey(@NonNull @NonNull String... columns)
-
primaryKey
default PrimaryKeyConstraint primaryKey(@NonNull @NonNull SQLElement... columns)
-
primaryKey
default PrimaryKeyConstraint primaryKey(Collection<SQLElement> columns)
-
unique
default UniqueConstraint unique(@NonNull @NonNull String... columns)
-
unique
default UniqueConstraint unique(@NonNull @NonNull SQLElement... columns)
-
unique
default UniqueConstraint unique(Collection<SQLElement> columns)
-
-