FileDocCategorySizeDatePackage
PrimaryKeyColumnFilter.javaAPI DocExample420Tue Dec 08 01:21:00 GMT 1998oisoft.togetherx.scripts.SQL.impl

PrimaryKeyColumnFilter.java

// Generated by Together
package oisoft.togetherx.scripts.SQL.impl;

import COM.objectspace.jgl.UnaryFunction;

class PrimaryKeyColumnFilter implements UnaryFunction{
  public Object execute(Object src){
    return( src instanceof ColumnImpl
              && ((ColumnImpl)src).isPrimaryKey()
            ? src : null );
  }
  private String tagNamePrimaryKey(){
    return "PrimaryKey";
  }
}