Adding table-cacheOf concept; ability to add a child record from child-list widget

This commit is contained in:
2022-12-05 10:24:15 -06:00
parent 3691ad87e5
commit 060da69afb
32 changed files with 1766 additions and 109 deletions

View File

@ -414,7 +414,7 @@ public abstract class AbstractRDBMSAction implements QActionInterface
case IS_BLANK:
{
clause += " IS NULL";
if(isString(field.getType()))
if(field.getType().isStringLike())
{
clause += " OR " + column + " = ''";
}
@ -424,7 +424,7 @@ public abstract class AbstractRDBMSAction implements QActionInterface
case IS_NOT_BLANK:
{
clause += " IS NOT NULL";
if(isString(field.getType()))
if(field.getType().isStringLike())
{
clause += " AND " + column + " != ''";
}
@ -479,16 +479,6 @@ public abstract class AbstractRDBMSAction implements QActionInterface
/*******************************************************************************
**
*******************************************************************************/
private static boolean isString(QFieldType fieldType)
{
return fieldType == QFieldType.STRING || fieldType == QFieldType.TEXT || fieldType == QFieldType.HTML || fieldType == QFieldType.PASSWORD;
}
/*******************************************************************************
**
*******************************************************************************/

View File

@ -136,7 +136,7 @@ public class RDBMSQueryAction extends AbstractRDBMSAction implements QueryInterf
// execute the query - iterate over results //
//////////////////////////////////////////////
QueryOutput queryOutput = new QueryOutput(queryInput);
System.out.println(sql);
// System.out.println(sql);
PreparedStatement statement = createStatement(connection, sql.toString(), queryInput);
QueryManager.executeStatement(statement, ((ResultSet resultSet) ->
{