- java.lang.Object
-
- org.tentackle.sql.metadata.MetaDataUtilities
-
@Service(MetaDataUtilities.class) public class MetaDataUtilities extends java.lang.Object
Database metadata utility methods.
Replaceable by application specific implementation viaServiceannotation.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description MetaDataUtilities()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetaDataUtilitiesgetInstance()The singleton.booleanisReservedTable(java.lang.String tableName)Returns whether the given tablename is reserved.java.lang.StringjdbcTypeToString(int jdbcType)Converts a jdbc type to a string.
-
-
-
Method Detail
-
getInstance
public static MetaDataUtilities getInstance()
The singleton.- Returns:
- the singleton
-
jdbcTypeToString
public java.lang.String jdbcTypeToString(int jdbcType)
Converts a jdbc type to a string.- Parameters:
jdbcType- the jdbc type- Returns:
- the string, never null
-
isReservedTable
public boolean isReservedTable(java.lang.String tableName)
Returns whether the given tablename is reserved.- Parameters:
tableName- the tablename, with or without schema- Returns:
- true if reserved
-
-