com.triactive.jdo.store.sql
Class CatalogName

java.lang.Object
  extended bycom.triactive.jdo.store.sql.SqlIdentifier
      extended bycom.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

Field Summary
 
Fields inherited from class com.triactive.jdo.store.sql.SqlIdentifier
dba, fullName, name
 
Constructor Summary
CatalogName(DatabaseAdapter dba, java.lang.String identifier)
          Constructs a catalog name.
 
Method Summary
static CatalogName fromString(DatabaseAdapter dba, java.lang.String catalogName)
          Constructs a catalog name from a string.
 
Methods inherited from class com.triactive.jdo.store.sql.SqlIdentifier
compareTo, equals, hashCode, intern, isKeyword, javaToSql, toString, undelimited, untruncated
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 database
identifier - the SQL identifier value as a string
Method Detail

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 database
catalogName - 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.