fr.cnes.sitools.datasource.jdbc.model
Class Table

java.lang.Object
  extended by fr.cnes.sitools.datasource.jdbc.model.Table

public final class Table
extends java.lang.Object

Base class for database table representation

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
Table()
          Default constructor
Table(java.lang.String name)
          Constructor with name
Table(java.lang.String name, java.lang.String schema)
          Constructor with name and schema
Table(java.lang.String name, java.lang.String schema, java.lang.String alias)
          Constructor with name and schema and alias
 
Method Summary
 java.lang.String getAlias()
          Get the alias
 java.util.List<Attribute> getAttributes()
          Get table attributes
 java.lang.String getFROMReference()
          Get the table from a reference
 java.lang.String getName()
          Gets the name value
 java.lang.String getReference()
          Get the table reference
 java.lang.String getSchema()
          Gets the schema value
 java.lang.String getUrl()
          Gets the URL value
 void setAlias(java.lang.String alias)
          Set the alias
 void setAttributes(java.util.List<Attribute> attributes)
          Sets the value of attributes
 void setName(java.lang.String name)
          Sets the value of name
 void setSchema(java.lang.String schema)
          Sets the value of schema
 void setUrl(java.lang.String url)
          Sets the value of URL
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Table

public Table()
Default constructor


Table

public Table(java.lang.String name)
Constructor with name

Parameters:
name - the table name

Table

public Table(java.lang.String name,
             java.lang.String schema,
             java.lang.String alias)
Constructor with name and schema and alias

Parameters:
name - table name
schema - database schema
alias - table alias

Table

public Table(java.lang.String name,
             java.lang.String schema)
Constructor with name and schema

Parameters:
name - table name
schema - table schema
Method Detail

getUrl

public java.lang.String getUrl()
Gets the URL value

Returns:
the URL

setUrl

public void setUrl(java.lang.String url)
Sets the value of URL

Parameters:
url - the URL to set

getName

public java.lang.String getName()
Gets the name value

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the value of name

Parameters:
name - the name to set

getSchema

public java.lang.String getSchema()
Gets the schema value

Returns:
the schema

getAlias

public java.lang.String getAlias()
Get the alias

Returns:
the alias

setAlias

public void setAlias(java.lang.String alias)
Set the alias

Parameters:
alias - the alias to set

setSchema

public void setSchema(java.lang.String schema)
Sets the value of schema

Parameters:
schema - the schema to set

setAttributes

public void setAttributes(java.util.List<Attribute> attributes)
Sets the value of attributes

Parameters:
attributes - the attributes to set

getAttributes

public java.util.List<Attribute> getAttributes()
Get table attributes

Returns:
a list of attributes

getReference

public java.lang.String getReference()
Get the table reference

Returns:
table reference schema

getFROMReference

public java.lang.String getFROMReference()
Get the table from a reference

Returns:
the table referenced


Copyright © 2010-2013 CNES. All Rights Reserved.