Class MetaDataUtils
- java.lang.Object
-
- org.fugerit.java.core.db.metadata.MetaDataUtils
-
public class MetaDataUtils extends Object
- Author:
- Fugerit
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_TABLE
static String
TYPE_VIEW
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataBaseModel
createModel(ConnectionFactory cf)
static DataBaseModel
createModel(ConnectionFactory cf, String[] types)
static DataBaseModel
createModel(ConnectionFactory cf, String catalog, String schema)
static DataBaseModel
createModel(ConnectionFactory cf, String catalog, String schema, String[] types)
static DataBaseModel
createModel(ConnectionFactory cf, String catalog, String schema, List<String> tableNameList)
static DataBaseModel
createModel(ConnectionFactory cf, String catalog, String schema, List<String> tableNameList, String[] types)
static JdbcAdaptor
getDefaultAdaptorFor(String databaseProductName, ConnectionFactory cf)
static String
insertQueryBuilder(TableModel tableModel)
static List<String>
tableListAll()
static String[]
typesAll()
static String[]
typesDefault()
static String[]
typesTable()
static String[]
typesView()
-
-
-
Field Detail
-
TYPE_TABLE
public static final String TYPE_TABLE
- See Also:
- Constant Field Values
-
TYPE_VIEW
public static final String TYPE_VIEW
- See Also:
- Constant Field Values
-
-
Method Detail
-
typesAll
public static final String[] typesAll()
-
typesDefault
public static final String[] typesDefault()
-
typesView
public static final String[] typesView()
-
typesTable
public static final String[] typesTable()
-
insertQueryBuilder
public static String insertQueryBuilder(TableModel tableModel)
-
createModel
public static DataBaseModel createModel(ConnectionFactory cf) throws DAOException
- Throws:
DAOException
-
createModel
public static DataBaseModel createModel(ConnectionFactory cf, String[] types) throws DAOException
- Throws:
DAOException
-
createModel
public static DataBaseModel createModel(ConnectionFactory cf, String catalog, String schema) throws DAOException
- Throws:
DAOException
-
createModel
public static DataBaseModel createModel(ConnectionFactory cf, String catalog, String schema, String[] types) throws DAOException
- Throws:
DAOException
-
createModel
public static DataBaseModel createModel(ConnectionFactory cf, String catalog, String schema, List<String> tableNameList) throws DAOException
- Throws:
DAOException
-
createModel
public static DataBaseModel createModel(ConnectionFactory cf, String catalog, String schema, List<String> tableNameList, String[] types) throws DAOException
- Throws:
DAOException
-
getDefaultAdaptorFor
public static JdbcAdaptor getDefaultAdaptorFor(String databaseProductName, ConnectionFactory cf)
-
-