de.oio.sqlrest.db
Class TableInfo

java.lang.Object
  |
  +--de.oio.sqlrest.db.TableInfo

public class TableInfo
extends java.lang.Object

Author:
tbayer

Constructor Summary
TableInfo(java.lang.String aTableName)
           
 
Method Summary
 void add(Column column)
           
 void add(Relation relation)
          Method add.
 Column getColumn(java.lang.String columnName)
           
 java.util.Set getColumnNames()
           
 java.lang.String getPkColumnName()
          Returns the pkColumnName.
 int getPkColumnType()
          Returns the pkColumnType.
 java.lang.String getTableName()
          Method getTableName.
 boolean hasColumn(java.lang.String name)
           
 boolean isFkColumn(java.lang.String columnName)
           
 void setPkColumnName(java.lang.String pkColumnName)
          Sets the pkColumnName.
 void setPkColumnType(int pkColumnType)
          Sets the pkColumnType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableInfo

public TableInfo(java.lang.String aTableName)
Method Detail

add

public void add(Relation relation)
Method add.

Parameters:
relation -

getTableName

public java.lang.String getTableName()
Method getTableName.

Returns:
Object

isFkColumn

public boolean isFkColumn(java.lang.String columnName)

getPkColumnType

public int getPkColumnType()
Returns the pkColumnType.

Returns:
String

setPkColumnType

public void setPkColumnType(int pkColumnType)
Sets the pkColumnType.

Parameters:
pkColumnType - The pkColumnType to set

getPkColumnName

public java.lang.String getPkColumnName()
Returns the pkColumnName.

Returns:
String

setPkColumnName

public void setPkColumnName(java.lang.String pkColumnName)
Sets the pkColumnName.

Parameters:
pkColumnName - The pkColumnName to set

add

public void add(Column column)

getColumnNames

public java.util.Set getColumnNames()

hasColumn

public boolean hasColumn(java.lang.String name)

getColumn

public Column getColumn(java.lang.String columnName)


Copyright Orientation in Objects GmbH. All Rights Reserved.