com.hardcode.gdbms.engine.data.edition
Class UpdateEditionInfo

java.lang.Object
  extended by com.hardcode.gdbms.engine.data.edition.UpdateEditionInfo
All Implemented Interfaces:
EditionInfo

public class UpdateEditionInfo
extends java.lang.Object
implements EditionInfo

Location info of a PK

Author:
Fernando González Cortés

Constructor Summary
UpdateEditionInfo(java.lang.String tableName, java.lang.String[] pkNames, DataSource ds, DBDriver driver, int internalBufferIndex, ValueCollection originalPK, InternalBuffer internalBuffer)
          Creates a new FlagIndexPair.
 
Method Summary
 int getIndex()
          gets the index
 ValueCollection getOriginalPK()
           
 java.lang.String getSQL()
          Gets the SQL to modify the data source or null if the data source does not have to be modified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateEditionInfo

public UpdateEditionInfo(java.lang.String tableName,
                         java.lang.String[] pkNames,
                         DataSource ds,
                         DBDriver driver,
                         int internalBufferIndex,
                         ValueCollection originalPK,
                         InternalBuffer internalBuffer)
Creates a new FlagIndexPair.

Parameters:
index - Index on the data source where the pk is
originalPK - Value of the PK fields when the edition started
Method Detail

getIndex

public int getIndex()
gets the index

Returns:
int

getOriginalPK

public ValueCollection getOriginalPK()

getSQL

public java.lang.String getSQL()
                        throws DriverException
Description copied from interface: EditionInfo
Gets the SQL to modify the data source or null if the data source does not have to be modified

Specified by:
getSQL in interface EditionInfo
Returns:
SQL statement or null
Throws:
DriverException - if cannot get the SQL statement


Copyright © 2005-2006 . All Rights Reserved.