com.scooterframework.orm.sqldataexpress.object
Class PrimaryKey

java.lang.Object
  extended by com.scooterframework.orm.sqldataexpress.object.PrimaryKey
All Implemented Interfaces:
java.io.Serializable

public class PrimaryKey
extends java.lang.Object
implements java.io.Serializable

PrimaryKey class holds config information about a specific table.

See Also:
Serialized Form

Field Summary
protected  java.lang.String catalog
           
protected  java.util.List<java.lang.String> columns
           
protected  java.lang.String schema
           
protected  java.lang.String table
           
 
Constructor Summary
PrimaryKey(java.lang.String catalog, java.lang.String schema, java.lang.String table, java.util.List<java.lang.String> columnNames)
          Constructor.
 
Method Summary
 java.lang.String getCatalog()
          Returns catalog
 java.util.List<java.lang.String> getColumns()
          Returns primary key columns
 java.lang.String getSchema()
          Returns schema
 java.lang.String getTable()
          Returns table
 boolean hasColumn(java.lang.String column)
           
 void setCatalog(java.lang.String catalog)
          Sets catalog
 void setColumns(java.util.List<java.lang.String> columns)
          Sets primary key columns
 void setSchema(java.lang.String schema)
          Sets schema
 void setTable(java.lang.String table)
          Sets table
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

catalog

protected java.lang.String catalog

schema

protected java.lang.String schema

table

protected java.lang.String table

columns

protected java.util.List<java.lang.String> columns
Constructor Detail

PrimaryKey

public PrimaryKey(java.lang.String catalog,
                  java.lang.String schema,
                  java.lang.String table,
                  java.util.List<java.lang.String> columnNames)
Constructor.

Parameters:
catalog -
schema -
table -
columnNames -
Method Detail

getColumns

public java.util.List<java.lang.String> getColumns()
Returns primary key columns


setColumns

public void setColumns(java.util.List<java.lang.String> columns)
Sets primary key columns


getCatalog

public java.lang.String getCatalog()
Returns catalog


setCatalog

public void setCatalog(java.lang.String catalog)
Sets catalog


getSchema

public java.lang.String getSchema()
Returns schema


setSchema

public void setSchema(java.lang.String schema)
Sets schema


getTable

public java.lang.String getTable()
Returns table


setTable

public void setTable(java.lang.String table)
Sets table


hasColumn

public boolean hasColumn(java.lang.String column)

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
String