org.apache.ws.jaxme.sqls.impl
public class SQLFactoryImpl extends Object implements SQLFactory
Default implementation of an SQLFactory.
| Nested Class Summary | |
|---|---|
| static class | SQLFactoryImpl.IdentImpl Base class for deriving identifiers. |
| Constructor Summary | |
|---|---|
| SQLFactoryImpl() Creates a new instance of SQLFactoryImpl. | |
| Method Summary | |
|---|---|
| Schema | getDefaultSchema() |
| Integer | getMaxColumnNameLength() |
| Integer | getMaxSchemaNameLength() |
| Integer | getMaxTableNameLength() |
| ObjectFactory | getObjectFactory() |
| Schema | getSchema(String pName) |
| Schema | getSchema(Schema.Name pName) |
| Schema | getSchema(Connection pConn, String pName) |
| Schema | getSchema(Connection pConn, Schema.Name pName) |
| Iterator | getSchemas() |
| Table | getTable(Connection pConnection, Schema.Name pSchema, Table.Name pTable) |
| Table | getTable(Connection pConnection, String pSchema, String pTable) |
| boolean | isColumnNameCaseSensitive() |
| boolean | isSchemaNameCaseSensitive() |
| boolean | isTableNameCaseSensitive() |
| protected Schema | makeSchema(Schema.Name pName) |
| protected Column | newColumnImpl(Table pTable, Column.Name pName, Column.Type pType) |
| DeleteStatement | newDeleteStatement() |
| SQLFactory.Ident | newIdent(String pName) Converths the given string into an SQL identifier. |
| InsertStatement | newInsertStatement() |
| protected ObjectFactory | newObjectFactory() |
| Schema | newSchema(String pName) |
| Schema | newSchema(Schema.Name pName) |
| protected Schema | newSchemaImpl(Schema.Name pName) |
| SelectStatement | newSelectStatement() |
| SQLGenerator | newSQLGenerator() |
| protected Table | newTableImpl(Schema pSchema, Table.Name pName) |
| UpdateStatement | newUpdateStatement() |
| protected Column | readColumn(Table pTable, String pColumnName, int pDataType, String pTypeName, long pColumnSize, int pDecimalDigits, int pNullable) |
| protected ForeignKey[] | readForeignKeys(DatabaseMetaData pData, SQLFactoryImpl.JDBCTable pTable, SQLFactoryImpl.JDBCTable[] pTables) |
| protected Index | readPrimaryKey(DatabaseMetaData pData, SQLFactoryImpl.JDBCTable pTable) |
| protected Table | readTable(DatabaseMetaData pData, Schema pSchema, SQLFactoryImpl.JDBCTable pTable) |
| protected SQLFactoryImpl.JDBCTable[] | readTables(DatabaseMetaData pData, Schema.Name pSchema, Table.Name pTable) |
| void | setColumnNameCaseSensitive(boolean pColumnNameCaseSensitive) Sets whether column names are case sensitive or not. |
| void | setMaxColumnNameLength(Integer pMaxLength) Sets the maximum length of a column name. |
| void | setMaxSchemaNameLength(Integer pMaxLength) Sets the maximum length of a schema name. |
| void | setMaxTableNameLength(Integer pMaxLength) Sets the maximum length of a table name. |
| protected void | setObjectFactory(ObjectFactory pFactory) |
| void | setSchemaNameCaseSensitive(boolean pSchemaNameCaseSensitive) Sets whether schema names are case sensitive or not. |
| void | setTableNameCaseSensitive(boolean pTableNameCaseSensitive) Sets whether table names are case sensitive or not. |
Creates a new instance of SQLFactoryImpl.
Sets whether column names are case sensitive or not. Defaults to false.
See Also: isColumnNameCaseSensitive
Sets the maximum length of a column name.
Parameters: pMaxLength The maximum length or null to disable checks for valid column name length.
Sets the maximum length of a schema name.
Parameters: pMaxLength The maximum length or null to disable checks for valid schema name length.
Sets the maximum length of a table name.
Parameters: pMaxLength The maximum length or null to disable checks for valid table name length.
Sets whether schema names are case sensitive or not. Defaults to false.
See Also: isSchemaNameCaseSensitive
Sets whether table names are case sensitive or not. Defaults to false.
See Also: isTableNameCaseSensitive