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

java.lang.Object
  extended by org.jboss.dna.common.jdbc.model.spi.CoreMetaDataBean
      extended by org.jboss.dna.common.jdbc.model.spi.BestRowIdentifierBean
All Implemented Interfaces:
Serializable, BestRowIdentifier, CoreMetaData

public class BestRowIdentifierBean
extends CoreMetaDataBean
implements BestRowIdentifier

Provides table's best row identifies specific metadata.

Author:
Sergiy Litsenko
See Also:
Serialized Form

Constructor Summary
BestRowIdentifierBean()
          Default constructor
 
Method Summary
 void addColumn(Column column)
          Adds column to the best row identifier
 void deleteColumn(Column column)
          Deletes column from the best row identifier
 Column findColumnByName(String columnName)
          Searches column by name
 Set<Column> getColumns()
          Retrieves best row identifier columns
 BestRowIdentifierScopeType getScopeType()
          Return the scope of best row identifier
 void setScopeType(BestRowIdentifierScopeType scopeType)
          Sets the scope of best row identifier
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BestRowIdentifierBean

public BestRowIdentifierBean()
Default constructor

Method Detail

getScopeType

public BestRowIdentifierScopeType getScopeType()
Return the scope of best row identifier

Specified by:
getScopeType in interface BestRowIdentifier
Returns:
the scope of best row identifier

setScopeType

public void setScopeType(BestRowIdentifierScopeType scopeType)
Sets the scope of best row identifier

Specified by:
setScopeType in interface BestRowIdentifier
Parameters:
scopeType - the scope of best row identifier

getColumns

public Set<Column> getColumns()
Retrieves best row identifier columns

Specified by:
getColumns in interface BestRowIdentifier
Returns:
best row identifier columns

addColumn

public void addColumn(Column column)
Adds column to the best row identifier

Specified by:
addColumn in interface BestRowIdentifier
Parameters:
column - the column that part of best row identifier

deleteColumn

public void deleteColumn(Column column)
Deletes column from the best row identifier

Specified by:
deleteColumn in interface BestRowIdentifier
Parameters:
column - the column that no longer part of best row identifier

findColumnByName

public Column findColumnByName(String columnName)
Searches column by name

Specified by:
findColumnByName in interface BestRowIdentifier
Parameters:
columnName - the column name to search
Returns:
column if found, otherwise return null


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