Class SchemaExaminer
java.lang.Object
com.valqueries.automapper.context.schema.SchemaExaminer
- All Implemented Interfaces:
ISchemaExaminer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancolumnExists(String schema, Token table, Token column) Check if a column exists in a specified schema and table.booleanhasPrimaryKey(String schema, Token table) Check if a primary key exists for a table in a schema.booleanschemaExists(String schema) Check if a schema exists.booleantableExists(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, waitMethods inherited from interface com.valqueries.automapper.context.schema.ISchemaExaminer
columnExists, hasPrimaryKey, tableExists
-
Constructor Details
-
SchemaExaminer
-
-
Method Details
-
columnExists
Description copied from interface:ISchemaExaminerCheck if a column exists in a specified schema and table.- Specified by:
columnExistsin 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:ISchemaExaminerCheck if a table exists in a specified schema.- Specified by:
tableExistsin 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:ISchemaExaminerCheck if a schema exists.- Specified by:
schemaExistsin interfaceISchemaExaminer- Parameters:
schema- the schema to check- Returns:
- true if the schema exists, false otherwise
-
hasPrimaryKey
Description copied from interface:ISchemaExaminerCheck if a primary key exists for a table in a schema.- Specified by:
hasPrimaryKeyin interfaceISchemaExaminer- Parameters:
schema- the schema to check intable- the table to be checked- Returns:
- true if the table has a primary key, false otherwise
-