gpl.fredy.metadata
Class PrimaryKey

java.lang.Object
  extended by gpl.fredy.metadata.PrimaryKey

public class PrimaryKey
extends java.lang.Object

PrimaryKeys is a part of Admin and returns the Primary keys of a table Admin is a Tool around JDBC-enabled SQL-Databases to do basic jobs for DB-Administrations, as create / delete / alter and query tables it also creates indices and generates simple Java-Code to access DBMS-tables and exports data into various formats Copyright (C) 2003, Fredy Fischer sql@hulmen.ch Postal: Fredy Fischer Hulmenweg 36 8405 Winterthur Switzerland This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


Constructor Summary
PrimaryKey()
           
PrimaryKey(java.lang.String tableName, java.lang.String columnName, short keySeq, java.lang.String pkName)
           
 
Method Summary
 java.lang.String getColumnName()
          Get the value of columnName.
 short getKeySeq()
          Get the value of keySeq.
 java.lang.String getPkName()
          Get the value of pkName.
 java.lang.String getTableName()
          Get the value of tableName.
 void setColumnName(java.lang.String v)
          Set the value of columnName.
 void setKeySeq(short v)
          Set the value of keySeq.
 void setPkName(java.lang.String v)
          Set the value of pkName.
 void setTableName(java.lang.String v)
          Set the value of tableName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimaryKey

public PrimaryKey()

PrimaryKey

public PrimaryKey(java.lang.String tableName,
                  java.lang.String columnName,
                  short keySeq,
                  java.lang.String pkName)
Method Detail

getTableName

public java.lang.String getTableName()
Get the value of tableName.

Returns:
Value of tableName.

setTableName

public void setTableName(java.lang.String v)
Set the value of tableName.

Parameters:
v - Value to assign to tableName.

getColumnName

public java.lang.String getColumnName()
Get the value of columnName.

Returns:
Value of columnName.

setColumnName

public void setColumnName(java.lang.String v)
Set the value of columnName.

Parameters:
v - Value to assign to columnName.

getKeySeq

public short getKeySeq()
Get the value of keySeq.

Returns:
Value of keySeq.

setKeySeq

public void setKeySeq(short v)
Set the value of keySeq.

Parameters:
v - Value to assign to keySeq.

getPkName

public java.lang.String getPkName()
Get the value of pkName.

Returns:
Value of pkName.

setPkName

public void setPkName(java.lang.String v)
Set the value of pkName.

Parameters:
v - Value to assign to pkName.