velosurf.model
Class ImportedKey

java.lang.Object
  extended by velosurf.model.Attribute
      extended by velosurf.model.ImportedKey

public class ImportedKey
extends Attribute

An imported key (aka foreign key) attribute.


Field Summary
private  java.util.List<java.lang.String> fkCols
          Foreign key columns.
 
Fields inherited from class velosurf.model.Attribute
db, entity, query, resultEntity, ROW, ROWSET, SCALAR, UNDEFINED
 
Constructor Summary
ImportedKey(java.lang.String name, Entity entity, java.lang.String pkEntity, java.util.List<java.lang.String> fkCols)
          Imported key constructor.
 
Method Summary
 java.util.List<java.lang.String> getFKCols()
          Foreign key columns getter.
protected  java.lang.String getQuery()
          Query getter.
 void setFKCols(java.util.List<java.lang.String> fkCols)
          Foreign key columns setter.
 java.lang.String toString()
          Debug method.
 
Methods inherited from class velosurf.model.Attribute
addParamName, evaluate, fetch, getCaching, getDB, getEntity, getName, getResultEntity, getType, query, query, setCaching, setForeignKeyColumn, setQuery, setResultEntity, setResultType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fkCols

private java.util.List<java.lang.String> fkCols
Foreign key columns.

Constructor Detail

ImportedKey

public ImportedKey(java.lang.String name,
                   Entity entity,
                   java.lang.String pkEntity,
                   java.util.List<java.lang.String> fkCols)
Imported key constructor.

Parameters:
name - name of this exported key
entity - parent entity
pkEntity - primary key entity
fkCols - foreign key columns
Method Detail

getQuery

protected java.lang.String getQuery()
Query getter.

Overrides:
getQuery in class Attribute
Returns:
SQL query

getFKCols

public java.util.List<java.lang.String> getFKCols()
Foreign key columns getter.

Returns:
foreign key columns list

setFKCols

public void setFKCols(java.util.List<java.lang.String> fkCols)
Foreign key columns setter.

Parameters:
fkCols - foreign key columns list

toString

public java.lang.String toString()
Debug method.

Overrides:
toString in class Attribute
Returns:
the definition string of this attribute


~ooOoo~