gpl.fredy.metadata
Class IsAutoIncrement

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

public class IsAutoIncrement
extends java.lang.Object

This is to figure out, if a column is auto-increment. You instantiate this class once and then you have to set the column and have the possiblity to set the table to use only one connection to run it. 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
IsAutoIncrement(java.lang.String host, java.lang.String user, java.lang.String password, java.lang.String database, java.lang.String table)
           
IsAutoIncrement(t_connect con, java.lang.String table)
           
 
Method Summary
 boolean autoIncrement()
           
 java.lang.String getColumn()
          Get the value of column.
 t_connect getCon()
          Get the value of con.
 java.lang.String getDatabase()
          Get the value of database.
 java.lang.String getHost()
          Get the value of host.
 java.lang.String getPassword()
          Get the value of password.
 java.lang.String getSchema()
          Get the value of schema.
 java.lang.String getTable()
          Get the value of table.
 java.lang.String getUser()
          Get the value of user.
static void main(java.lang.String[] args)
           
 void setColumn(java.lang.String v)
          Set the value of column.
 void setCon(t_connect v)
          Set the value of con.
 void setDatabase(java.lang.String v)
          Set the value of database.
 void setHost(java.lang.String v)
          Set the value of host.
 void setPassword(java.lang.String v)
          Set the value of password.
 void setSchema(java.lang.String v)
          Set the value of schema.
 void setTable(java.lang.String v)
          Set the value of table.
 void setUser(java.lang.String v)
          Set the value of user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsAutoIncrement

public IsAutoIncrement(java.lang.String host,
                       java.lang.String user,
                       java.lang.String password,
                       java.lang.String database,
                       java.lang.String table)

IsAutoIncrement

public IsAutoIncrement(t_connect con,
                       java.lang.String table)
Method Detail

getCon

public t_connect getCon()
Get the value of con.

Returns:
value of con.

setCon

public void setCon(t_connect v)
Set the value of con.

Parameters:
v - Value to assign to con.

getHost

public java.lang.String getHost()
Get the value of host.

Returns:
Value of host.

setHost

public void setHost(java.lang.String v)
Set the value of host.

Parameters:
v - Value to assign to host.

getUser

public java.lang.String getUser()
Get the value of user.

Returns:
Value of user.

setUser

public void setUser(java.lang.String v)
Set the value of user.

Parameters:
v - Value to assign to user.

getPassword

public java.lang.String getPassword()
Get the value of password.

Returns:
Value of password.

setPassword

public void setPassword(java.lang.String v)
Set the value of password.

Parameters:
v - Value to assign to password.

getDatabase

public java.lang.String getDatabase()
Get the value of database.

Returns:
Value of database.

setDatabase

public void setDatabase(java.lang.String v)
Set the value of database.

Parameters:
v - Value to assign to database.

getSchema

public java.lang.String getSchema()
Get the value of schema.

Returns:
Value of schema.

setSchema

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

Parameters:
v - Value to assign to schema.

getTable

public java.lang.String getTable()
Get the value of table.

Returns:
value of table.

setTable

public void setTable(java.lang.String v)
Set the value of table.

Parameters:
v - Value to assign to table.

getColumn

public java.lang.String getColumn()
Get the value of column.

Returns:
value of column.

setColumn

public void setColumn(java.lang.String v)
Set the value of column.

Parameters:
v - Value to assign to column.

autoIncrement

public boolean autoIncrement()

main

public static void main(java.lang.String[] args)