| java.lang.Object simpleorm.quickstart.ForeignKeyGenerate
isPrimary | public boolean isPrimary()(Code) | | |
outputFindOrCreate | public void outputFindOrCreate(Writer out) throws IOException(Code) | | public static Matter findOrCreate( Client _ref, String _fldMatterNo ){
return findOrCreate( _ref.get_fldClientno(),_fldMatterNo);
}
|
outputGettersAndSetters | public void outputGettersAndSetters(Writer out) throws IOException(Code) | | Need to generate something like this:
public Task get_refTask(){
try {
return Task.findOrCreate(get_fldClientno(), get_fldMatterno(),
get_fldTaskno());
} catch (SException e) {
if (e.getMessage().indexOf("Null Primary key") > 0) {
return null;
}
throw e;
}}
public void set_refTask( Task value){
set_fldClientno( value.get_fldClientno());
set_fldMatterno( value.get_fldMatterno());
set_fldTaskno( value.get_fldTaskno());
}
|
|
|