org.deegree.commons.jdbc
Class QTableName

java.lang.Object
  extended by org.deegree.commons.jdbc.QTableName

public class QTableName
extends Object

Table name with optional schema qualifier.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: markus $

Constructor Summary
QTableName(String identifier)
          Creates a new QTableName instance.
QTableName(String table, String schema)
          Creates a new QTableName instance.
 
Method Summary
 String getSchema()
          Returns the name of the schema.
 String getTable()
          Returns the name of the table (without schema).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QTableName

public QTableName(String identifier)
Creates a new QTableName instance.

Parameters:
identifier - table identifier (with optional schema), must not be null

QTableName

public QTableName(String table,
                  String schema)
Creates a new QTableName instance.

Parameters:
table - database table identifier, never null
schema - database schema identifier, can be null
Method Detail

getTable

public String getTable()
Returns the name of the table (without schema).

Returns:
the name of the table, never null

getSchema

public String getSchema()
Returns the name of the schema.

Returns:
the name of the schema, can be null (default schema)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.