org.jboss.dna.common.jdbc.model.spi
Class PrimaryKeyBean

java.lang.Object
  extended by org.jboss.dna.common.jdbc.model.spi.CoreMetaDataBean
      extended by org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean
          extended by org.jboss.dna.common.jdbc.model.spi.SchemaObjectBean
              extended by org.jboss.dna.common.jdbc.model.spi.PrimaryKeyBean
All Implemented Interfaces:
Serializable, CoreMetaData, DatabaseNamedObject, PrimaryKey, SchemaObject

public class PrimaryKeyBean
extends SchemaObjectBean
implements PrimaryKey

Provides database table's primary key specific metadata.

Author:
Sergiy Litsenko
See Also:
Serialized Form

Constructor Summary
PrimaryKeyBean()
          Default constructor
 
Method Summary
 void addColumn(PrimaryKeyColumn primaryKeyColumn)
          Adds PrimaryKeyColumn
 void deleteColumn(PrimaryKeyColumn primaryKeyColumn)
          deletes PrimaryKeyColumn
 PrimaryKeyColumn findColumnByName(String columnName)
          Returns table column for specified column name or null
 Set<PrimaryKeyColumn> getColumns()
          Retrieves primary key columns
 
Methods inherited from class org.jboss.dna.common.jdbc.model.spi.SchemaObjectBean
getCatalog, getSchema, setCatalog, setSchema
 
Methods inherited from class org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.dna.common.jdbc.model.api.SchemaObject
getCatalog, getSchema, setCatalog, setSchema
 
Methods inherited from interface org.jboss.dna.common.jdbc.model.api.DatabaseNamedObject
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks
 

Constructor Detail

PrimaryKeyBean

public PrimaryKeyBean()
Default constructor

Method Detail

getColumns

public Set<PrimaryKeyColumn> getColumns()
Retrieves primary key columns

Specified by:
getColumns in interface PrimaryKey
Returns:
primary key columns

addColumn

public void addColumn(PrimaryKeyColumn primaryKeyColumn)
Adds PrimaryKeyColumn

Specified by:
addColumn in interface PrimaryKey
Parameters:
primaryKeyColumn - the PrimaryKeyColumn

deleteColumn

public void deleteColumn(PrimaryKeyColumn primaryKeyColumn)
deletes PrimaryKeyColumn

Specified by:
deleteColumn in interface PrimaryKey
Parameters:
primaryKeyColumn - the PrimaryKeyColumn

findColumnByName

public PrimaryKeyColumn findColumnByName(String columnName)
Returns table column for specified column name or null

Specified by:
findColumnByName in interface PrimaryKey
Parameters:
columnName - the name of column
Returns:
table column for specified column name or null.


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.