|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.triactive.jdo.store.sql.QualifiedName
com.triactive.jdo.store.sql.TableName
An SQL table name.
A TableName is a type of QualifiedName naming an SQL database table
or view.
Table names in TJDO are generated such that there are always enough spare
characters at the end to append the various suffixes used in ConstraintNames and IndexNames.
This usually results in truncation only on databases having a fairly short
maximum table name length.
| Field Summary | |
static int |
MAX_SUFFIX_LENGTH
The maximum length in characters reserved at the end of table names for suffixes used to construct related names (such as _PK for a table's primary key). |
| Fields inherited from class com.triactive.jdo.store.sql.QualifiedName |
identifier, schemaName |
| Constructor Summary | |
TableName(DatabaseAdapter dba,
SchemaName schemaName,
java.lang.String identifier)
Constructs a table name. |
|
TableName(DatabaseAdapter dba,
java.lang.String identifier)
Constructs a table name. |
|
TableName(DatabaseAdapter dba,
java.lang.String schemaName,
java.lang.String identifier)
Constructs a table name. |
|
TableName(DatabaseAdapter dba,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String identifier)
Constructs a table name. |
|
| Method Summary | |
static TableName |
fromJavaName(DatabaseAdapter dba,
SchemaName schemaName,
java.lang.String javaName)
Converts a Java name string to an SQL table name. |
static TableName |
fromJavaName(DatabaseAdapter dba,
java.lang.String javaName)
Converts a Java name string to an SQL table name. |
static TableName |
fromStrings(DatabaseAdapter dba,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName)
Constructs a table name from strings. |
| Methods inherited from class com.triactive.jdo.store.sql.QualifiedName |
effectiveCatalogName, effectiveSchemaName, equals, fullyQualified, getIdentifier, getSchemaName, hashCode, intern, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static int MAX_SUFFIX_LENGTH
| Constructor Detail |
public TableName(DatabaseAdapter dba,
java.lang.String identifier)
dba - a database adapter for the relevant databaseidentifier - the SQL identifier value as a string
public TableName(DatabaseAdapter dba,
java.lang.String schemaName,
java.lang.String identifier)
dba - a database adapter for the relevant databaseschemaName - the SQL schema name as a string, or nullidentifier - the SQL identifier value as a string
public TableName(DatabaseAdapter dba,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String identifier)
dba - a database adapter for the relevant databasecatalogName - the SQL catalog name as a string, or nullschemaName - the SQL schema name as a string, or nullidentifier - the SQL identifier value as a string
public TableName(DatabaseAdapter dba,
SchemaName schemaName,
java.lang.String identifier)
dba - a database adapter for the relevant databaseschemaName - the schema name part of the table name, or null
if the name is not schema-qualifiedidentifier - the SQL identifier value as a string| Method Detail |
public static TableName fromStrings(DatabaseAdapter dba,
java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName)
dba - a database adapter for the relevant databasecatalogName - the catalog name, or nullschemaName - the schema name, or nulltableName - the table name
public static TableName fromJavaName(DatabaseAdapter dba,
java.lang.String javaName)
fromJavaName(dba, null, javaName)
dba - a database adapter for the relevant databasejavaName - the Java identifier name. Must not be null.
public static TableName fromJavaName(DatabaseAdapter dba,
SchemaName schemaName,
java.lang.String javaName)
dba - a database adapter for the relevant databaseschemaName - the schema name part of the table name, or null
if the name is not schema-qualifiedjavaName - the Java identifier name. Must not be null.
SqlIdentifier.javaToSql(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||