com.triactive.jdo.store.sql
Class CatalogName
java.lang.Object
com.triactive.jdo.store.sql.SqlIdentifier
com.triactive.jdo.store.sql.CatalogName
- All Implemented Interfaces:
- java.lang.Comparable
- public final class CatalogName
- extends SqlIdentifier
An SQL catalog name.
A CatalogName is just an SqlIdentifier
subclassed for type safety.
- Author:
- Mike Martin
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CatalogName
public CatalogName(DatabaseAdapter dba,
java.lang.String identifier)
- Constructs a catalog name.
The identifier will be truncated if necessary to the maximum allowed
catalog name length.
- Parameters:
dba
- a database adapter for the relevant databaseidentifier
- the SQL identifier value as a string
fromString
public static CatalogName fromString(DatabaseAdapter dba,
java.lang.String catalogName)
- Constructs a catalog name from a string.
This method returns
null
if catalogName is null,
otherwise it returns a new CatalogName object using the
CatalogName(DatabaseAdapter, String)
constructor.
- Parameters:
dba
- a database adapter for the relevant databasecatalogName
- the catalog name, or null
- Returns:
- a new CatalogName object, or
null
if
catalogName is null.
Copyright © 2001-2007 The TJDO Project All Rights Reserved.