|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A factory for generating SQL statements.
Nested Class Summary | |
static interface |
SQLFactory.Ident
|
Method Summary | |
Schema |
getDefaultSchema()
Returns the Default schema . |
java.lang.Integer |
getMaxColumnNameLength()
Returns the maximum length of a column name. |
java.lang.Integer |
getMaxSchemaNameLength()
Returns the maximum length of a schema name. |
java.lang.Integer |
getMaxTableNameLength()
Returns the maximum length of a table name. |
Schema |
getSchema(java.sql.Connection pConnection,
Schema.Name pName)
Reads the schema named pName from the database. |
Schema |
getSchema(java.sql.Connection pConnection,
java.lang.String pName)
Reads the schema named pName from the database. |
Schema |
getSchema(Schema.Name pName)
Returns the schema with the given name or null, if no such schema exists. |
Schema |
getSchema(java.lang.String pName)
Returns the schema with the given name or null, if no such schema exists. |
java.util.Iterator |
getSchemas()
Returns a list of all schemas. |
boolean |
isColumnNameCaseSensitive()
Returns whether column names are case sensitive or not. |
boolean |
isSchemaNameCaseSensitive()
Returns whether schema names are case sensitive or not. |
boolean |
isTableNameCaseSensitive()
Returns whether table names are case sensitive or not. |
DeleteStatement |
newDeleteStatement()
Creates a new DELETE statement. |
InsertStatement |
newInsertStatement()
Creates a new INSERT statement. |
Schema |
newSchema(Schema.Name pName)
Creates a new Schema with the given name. |
Schema |
newSchema(java.lang.String pName)
Creates a new Schema with the given name. |
SelectStatement |
newSelectStatement()
Creates a new SELECT statement. |
SQLGenerator |
newSQLGenerator()
Creates a new SQLGenerator . |
UpdateStatement |
newUpdateStatement()
Creates a new UPDATE statement. |
Method Detail |
public java.lang.Integer getMaxTableNameLength()
Returns the maximum length of a table name.
public boolean isTableNameCaseSensitive()
Returns whether table names are case sensitive or not. Defaults to false.
public java.lang.Integer getMaxSchemaNameLength()
Returns the maximum length of a schema name.
public boolean isSchemaNameCaseSensitive()
Returns whether schema names are case sensitive or not. Defaults to false.
public java.lang.Integer getMaxColumnNameLength()
Returns the maximum length of a column name.
public boolean isColumnNameCaseSensitive()
Returns whether column names are case sensitive or not. Defaults to false.
public SelectStatement newSelectStatement()
Creates a new SELECT statement.
public InsertStatement newInsertStatement()
Creates a new INSERT statement.
public UpdateStatement newUpdateStatement()
Creates a new UPDATE statement.
public DeleteStatement newDeleteStatement()
Creates a new DELETE statement.
public Schema newSchema(java.lang.String pName)
Creates a new Schema
with the given name.
public Schema newSchema(Schema.Name pName)
Creates a new Schema
with the given name.
public Schema getDefaultSchema()
Returns the Default schema
. The default
schema has the name null.
public Schema getSchema(Schema.Name pName)
Returns the schema with the given name or null, if no such schema exists.
public Schema getSchema(java.lang.String pName)
Returns the schema with the given name or null, if no such schema exists.
public java.util.Iterator getSchemas()
Returns a list of all schemas. The list includes the default
schema, if getDefaultSchema()
was called at any time.
public SQLGenerator newSQLGenerator()
Creates a new SQLGenerator
.
public Schema getSchema(java.sql.Connection pConnection, Schema.Name pName) throws java.sql.SQLException
Reads the schema named pName
from the database.
java.sql.SQLException
public Schema getSchema(java.sql.Connection pConnection, java.lang.String pName) throws java.sql.SQLException
Reads the schema named pName
from the database.
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |