| java.lang.Object org.netbeans.modules.dbschema.util.NameUtil
NameUtil | public class NameUtil (Code) | | |
Field Summary | |
final public static char | dbElementSeparator Element namess separator in the fully qualified name. |
dbElementSeparator | final public static char dbElementSeparator(Code) | | Element namess separator in the fully qualified name.
|
getAbsoluteMemberName | public static String getAbsoluteMemberName(String schemaName, String memberName)(Code) | | The method returns a absolute (full qualified) name for the specified member name
using the specified schema name.
If the specified name is already absolute, the method returns a member name equal to the input
argument,without checking the schema part of the name beeing equal to the specified schema name.
In the case of a column pair it prepends the schemaName to both columns included in the pair.
Parameters: schemaName - the schema name to be prepended Parameters: memberName - the member name the absolute member name |
getAbsoluteTableName | public static String getAbsoluteTableName(String schemaName, String tableName)(Code) | | The method returns a absolute (full qualified) name for the specified table name
using the specified schema name.
If the specified name is already absolute, the method returns it as it is,
without checking the schema part of the name beeing equal to the specified schema name.
Parameters: schemaName - the schema name to be prepended Parameters: tableName - the table name the absolute table name |
getRelativeMemberName | public static String getRelativeMemberName(String memberName)(Code) | | The method returns the relative name for the specified member name.
If the specified name is already relative, the method returns member name
equal to the input argument.
Otherwise it strips the schema name from the given member name.
In the case of a column pair it stips the schema name from both column names.
Parameters: tableName - a member name the relative member name |
getRelativeTableName | public static String getRelativeTableName(String tableName)(Code) | | The method returns the relative name for the specified table name.
If the specified name is already relative, the method returns it as it is.
Otherwise it strips the schema name from the given table name.
Parameters: tableName - a table name the relative table name |
getSchemaName | public static String getSchemaName(String memberName)(Code) | | Returns the schema name from a given db member name.
The member might be a column, a table or a column pair.
Parameters: memberName - the full qualified member name the schema name of this member name |
getSchemaResourceName | public static String getSchemaResourceName(String schemaName)(Code) | | Returns schema resource name.
the schema resource name |
getTableName | public static String getTableName(String memberName)(Code) | | Returns the table name from a given db member name.
The member might be a column or a column pair.
Parameters: memberName - the full qualified member name the table name of this member name |
|
|