Package dev. warrengates. bettermetadata
Types
Wrapper for results of getAttributes method and represents an attribute of a UserDefinedType.
Indicates whether NULL is allowed
Indicates whether best row column is a pseudo column like an Oracle ROWID
Wrapper for results of getBestRowIdentifier method and represents the optimal set of columns that uniquely identify a Table's row
Best row identifier scope
Wrapper for results of getClientInfoProperties method and represents a list of the client info properties supported by the current driver
Wrapper for results of getColumns method and represents a Table column
Column nullable
Wrapper for results of getColumnPrivileges method. Used from Column.getColumnPrivileges
Provides a wrapper around DatabaseMetaData.
Foreign key delete rule
Foreign key initial deferrability
Foreign key update rule
Wrapper for results of getFunctions method and represents user and system functions
Wrapper for results of getFunctionColumns method and represents a column of Function
Function column nullable
Function column type
Function return type
Wrapper for the results of the getIndexInfo method and represents a Table's indices and statistics. Returned from Table.getIndexes
Index sort
Index type
Integer enum, convenience interface for converting integer values to enums
Is auto increment, values taken from returned strings
Is generated column, values taken from returned strings
Is grantable, values taken from returned strings
Is nullable, values taken from returned strings
Key
Various integer columns (such as DECIMAL_DIGTS) returned from DatabaseMetaData functions indicate that null is returned when the value is not applicable. Since ResultSet.getInt returns 0 for null values, you'll never actually get null returned. If you'd prefer to have nulls returned when null exists in the ResultSet, use the below code. It uses a nullable Int (kotlin) or Integer (java) and sets it to null appropriately.
If you'd rather get 0 values instead of nulls, comment out the code immediately below and use the 'Non-nullable int' code at the bottom
Note that at this point not all possible values are using this type alias
Wrapper for results of getPrimaryKeys. It has been refactored to provide of Column object rather than the flattened view provided by the getPrimaryKeys method.
Holds a Column and its sequence number for use in PrimaryKey
Wrapper for results of getProcedures method and represents a stored procedure
Wrapper for results of getProcedureColumns
Procedure column nullable
Procedure column type
Procedure return type
Wrapper for results of getPseudoColumns
Result set concurrency
Result set holdability
Result set type
Wrapper for results of getSchemas
SQL state type
String enum, convenience interface for converting string values to enums
Wrapper for results of getSuperTypes
Wrapper for the results of getTables
Wrapper for results of getTablePrivileges
Transaction isolation
Wrapper for results of getTypeInfo
Type nullable
Type searchable
Wrapper for results of getUDTs
Wrapper for results of getVersionColumns
Version column type
Functions
Gets enum of type T where the enums' value matches value. The enum must implement IntegerEnum
Gets enum of type T where the enums' value matches value. The enum must implement StringEnum