Class SchemaExaminer
java.lang.Object
com.valqueries.automapper.context.schema.SchemaExaminer
- All Implemented Interfaces:
ISchemaExaminer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
columnExists
(String schema, Token table, Token column) Check if a column exists in a specified schema and table.boolean
hasPrimaryKey
(String schema, Token table) Check if a primary key exists for a table in a schema.boolean
schemaExists
(String schema) Check if a schema exists.boolean
tableExists
(String schema, Token table) Check if a table exists in a specified schema.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.valqueries.automapper.context.schema.ISchemaExaminer
columnExists, hasPrimaryKey, tableExists
-
Constructor Details
-
SchemaExaminer
-
-
Method Details
-
columnExists
Description copied from interface:ISchemaExaminer
Check if a column exists in a specified schema and table.- Specified by:
columnExists
in interfaceISchemaExaminer
- Parameters:
schema
- the schema to check intable
- the table to be checkedcolumn
- the column to be checked- Returns:
- true if the table exists, false otherwise
-
tableExists
Description copied from interface:ISchemaExaminer
Check if a table exists in a specified schema.- Specified by:
tableExists
in interfaceISchemaExaminer
- Parameters:
schema
- the schema to check intable
- the table to be checked.- Returns:
- true if the table exists, false otherwise
-
schemaExists
Description copied from interface:ISchemaExaminer
Check if a schema exists.- Specified by:
schemaExists
in interfaceISchemaExaminer
- Parameters:
schema
- the schema to check- Returns:
- true if the schema exists, false otherwise
-
hasPrimaryKey
Description copied from interface:ISchemaExaminer
Check if a primary key exists for a table in a schema.- Specified by:
hasPrimaryKey
in interfaceISchemaExaminer
- Parameters:
schema
- the schema to check intable
- the table to be checked- Returns:
- true if the table has a primary key, false otherwise
-