equip.data.sql
Interface IDataKeyAllocate

All Known Implementing Classes:
DataKeyAllocateMax

public interface IDataKeyAllocate

interface for generating a new SQL primary key.


Method Summary
 java.lang.String allocateKey(java.lang.String keyType, java.lang.String dataTableName, java.lang.String dataKeyColumn, java.sql.Connection conn)
          allocate key.
 

Method Detail

allocateKey

public java.lang.String allocateKey(java.lang.String keyType,
                                    java.lang.String dataTableName,
                                    java.lang.String dataKeyColumn,
                                    java.sql.Connection conn)
allocate key.

Parameters:
keyType - Key type (see CustomTableDataStore).
dataTableName - name of SQL table
dataKeyColumn - name of PK column in table
conn - open SQL connection to database