public class FullyQualifiedTable extends Object
| 构造器和说明 |
|---|
FullyQualifiedTable(String introspectedCatalog,
String introspectedSchema,
String introspectedTableName,
String domainObjectName,
String alias,
boolean ignoreQualifiersAtRuntime,
String runtimeCatalog,
String runtimeSchema,
String runtimeTableName,
boolean delimitIdentifiers,
Context context)
This object is used to hold information related to the table itself, not the columns in the table.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
String |
getAlias()
Gets the alias.
|
String |
getAliasedFullyQualifiedTableNameAtRuntime()
Gets the aliased fully qualified table name at runtime.
|
String |
getDomainObjectName()
Gets the domain object name.
|
String |
getFullyQualifiedTableNameAtRuntime()
Gets the fully qualified table name at runtime.
|
String |
getIbatis2SqlMapNamespace()
This method returns a string that is the fully qualified table name, with
underscores as the separator.
|
String |
getIntrospectedCatalog()
Gets the introspected catalog.
|
String |
getIntrospectedSchema()
Gets the introspected schema.
|
String |
getIntrospectedTableName()
Gets the introspected table name.
|
String |
getSubPackage(boolean isSubPackagesEnabled)
Calculates a Java package fragment based on the table catalog and schema.
|
int |
hashCode() |
String |
toString() |
public FullyQualifiedTable(String introspectedCatalog, String introspectedSchema, String introspectedTableName, String domainObjectName, String alias, boolean ignoreQualifiersAtRuntime, String runtimeCatalog, String runtimeSchema, String runtimeTableName, boolean delimitIdentifiers, Context context)
introspectedCatalog - the actual catalog of the table as returned from DatabaseMetaData. This value should only be set if
the user configured a catalog. Otherwise the DatabaseMetaData is reporting some database default that
we don't want in the generated code.introspectedSchema - the actual schema of the table as returned from DatabaseMetaData. This value should only be set if the
user configured a schema. Otherwise the DatabaseMetaData is reporting some database default that we
don't want in the generated code.introspectedTableName - the actual table name as returned from DatabaseMetaDatadomainObjectName - the configured domain object name for this table. If nothing is configured, we'll build the domain
object named based on the tableName or runtimeTableName.alias - a configured alias for the table. This alias will be added to the table name in the SQLignoreQualifiersAtRuntime - if true, then the catalog and schema qualifiers will be ignored when composing fully qualified names
in the generated SQL. This is used, for example, when the user needs to specify a specific schema for
generating code but does not want the schema in the generated SQLruntimeCatalog - this is used to "rename" the catalog in the generated SQL. This is useful, for example, when
generating code against one catalog that should run with a different catalog.runtimeSchema - this is used to "rename" the schema in the generated SQL. This is useful, for example, when generating
code against one schema that should run with a different schema.runtimeTableName - this is used to "rename" the table in the generated SQL. This is useful, for example, when generating
code to run with an Oracle synonym. The user would have to specify the actual table name and schema
for generation, but would want to use the synonym name in the generated SQLdelimitIdentifiers - if true, then the table identifiers will be delimited at runtime. The delimiter characters are
obtained from the Context.context - the contextpublic String getIntrospectedCatalog()
public String getIntrospectedSchema()
public String getIntrospectedTableName()
public String getFullyQualifiedTableNameAtRuntime()
public String getAliasedFullyQualifiedTableNameAtRuntime()
public String getIbatis2SqlMapNamespace()
public String getDomainObjectName()
public String getAlias()
public String getSubPackage(boolean isSubPackagesEnabled)
isSubPackagesEnabled - the is sub packages enabledCopyright © 2006–2016 MyBatis.org. All rights reserved.