IDEMPIERE-638 Check log level before calling logging method / log.finest
This commit is contained in:
parent
e0b18312f8
commit
a6b7473ff4
|
@ -167,7 +167,7 @@ public class Aging extends SvrProcess
|
||||||
|
|
||||||
sql.append(" ORDER BY oi.C_BPartner_ID, oi.C_Currency_ID, oi.C_Invoice_ID");
|
sql.append(" ORDER BY oi.C_BPartner_ID, oi.C_Currency_ID, oi.C_Invoice_ID");
|
||||||
|
|
||||||
log.finest(sql.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(sql.toString());
|
||||||
String finalSql = MRole.getDefault(getCtx(), false).addAccessSQL(
|
String finalSql = MRole.getDefault(getCtx(), false).addAccessSQL(
|
||||||
sql.toString(), "oi", MRole.SQL_FULLYQUALIFIED, MRole.SQL_RO);
|
sql.toString(), "oi", MRole.SQL_FULLYQUALIFIED, MRole.SQL_RO);
|
||||||
log.finer(finalSql);
|
log.finer(finalSql);
|
||||||
|
|
|
@ -336,7 +336,7 @@ implements ImportProcess
|
||||||
{
|
{
|
||||||
impBP.setC_BPartner_ID(bp.getC_BPartner_ID());
|
impBP.setC_BPartner_ID(bp.getC_BPartner_ID());
|
||||||
msglog = new StringBuilder("Insert BPartner - ").append(bp.getC_BPartner_ID());
|
msglog = new StringBuilder("Insert BPartner - ").append(bp.getC_BPartner_ID());
|
||||||
log.finest(msglog.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(msglog.toString());
|
||||||
noInsert++;
|
noInsert++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -377,7 +377,7 @@ implements ImportProcess
|
||||||
if (bp.save())
|
if (bp.save())
|
||||||
{
|
{
|
||||||
msglog = new StringBuilder("Update BPartner - ").append(bp.getC_BPartner_ID());
|
msglog = new StringBuilder("Update BPartner - ").append(bp.getC_BPartner_ID());
|
||||||
log.finest(msglog.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(msglog.toString());
|
||||||
noUpdate++;
|
noUpdate++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -430,7 +430,7 @@ implements ImportProcess
|
||||||
location.setPostal_Add(impBP.getPostal_Add());
|
location.setPostal_Add(impBP.getPostal_Add());
|
||||||
if (location.save()){
|
if (location.save()){
|
||||||
msglog = new StringBuilder("Insert Location - ").append(location.getC_Location_ID());
|
msglog = new StringBuilder("Insert Location - ").append(location.getC_Location_ID());
|
||||||
log.finest(msglog.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(msglog.toString());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -453,7 +453,7 @@ implements ImportProcess
|
||||||
if (bpl.save())
|
if (bpl.save())
|
||||||
{
|
{
|
||||||
msglog = new StringBuilder("Insert BP Location - ").append(bpl.getC_BPartner_Location_ID());
|
msglog = new StringBuilder("Insert BP Location - ").append(bpl.getC_BPartner_Location_ID());
|
||||||
log.finest(msglog.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(msglog.toString());
|
||||||
impBP.setC_BPartner_Location_ID(bpl.getC_BPartner_Location_ID());
|
impBP.setC_BPartner_Location_ID(bpl.getC_BPartner_Location_ID());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -518,7 +518,7 @@ implements ImportProcess
|
||||||
if (user.save())
|
if (user.save())
|
||||||
{
|
{
|
||||||
msglog = new StringBuilder("Update BP Contact - ").append(user.getAD_User_ID());
|
msglog = new StringBuilder("Update BP Contact - ").append(user.getAD_User_ID());
|
||||||
log.finest(msglog.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(msglog.toString());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -556,7 +556,7 @@ implements ImportProcess
|
||||||
if (user.save())
|
if (user.save())
|
||||||
{
|
{
|
||||||
msglog = new StringBuilder("Insert BP Contact - ").append(user.getAD_User_ID());
|
msglog = new StringBuilder("Insert BP Contact - ").append(user.getAD_User_ID());
|
||||||
log.finest(msglog.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(msglog.toString());
|
||||||
impBP.setAD_User_ID(user.getAD_User_ID());
|
impBP.setAD_User_ID(user.getAD_User_ID());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -305,12 +305,12 @@ public class ImportReportLine extends SvrProcess
|
||||||
pstmt_insertLine.setString(3, Name);
|
pstmt_insertLine.setString(3, Name);
|
||||||
//
|
//
|
||||||
no = pstmt_insertLine.executeUpdate();
|
no = pstmt_insertLine.executeUpdate();
|
||||||
log.finest("Insert ReportLine = " + no + ", PA_ReportLine_ID=" + PA_ReportLine_ID);
|
if (log.isLoggable(Level.FINEST)) log.finest("Insert ReportLine = " + no + ", PA_ReportLine_ID=" + PA_ReportLine_ID);
|
||||||
noInsertLine++;
|
noInsertLine++;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
log.finest(ex.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(ex.toString());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -427,12 +427,12 @@ public class ImportReportLine extends SvrProcess
|
||||||
pstmt_insertSource.setInt(2, I_ReportLine_ID);
|
pstmt_insertSource.setInt(2, I_ReportLine_ID);
|
||||||
//
|
//
|
||||||
no = pstmt_insertSource.executeUpdate();
|
no = pstmt_insertSource.executeUpdate();
|
||||||
log.finest("Insert ReportSource = " + no + ", I_ReportLine_ID=" + I_ReportLine_ID + ", PA_ReportSource_ID=" + PA_ReportSource_ID);
|
if (log.isLoggable(Level.FINEST)) log.finest("Insert ReportSource = " + no + ", I_ReportLine_ID=" + I_ReportLine_ID + ", PA_ReportSource_ID=" + PA_ReportSource_ID);
|
||||||
noInsertSource++;
|
noInsertSource++;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
log.finest("Insert ReportSource - " + ex.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest("Insert ReportSource - " + ex.toString());
|
||||||
sql = new StringBuilder ("UPDATE I_ReportLine i ")
|
sql = new StringBuilder ("UPDATE I_ReportLine i ")
|
||||||
.append("SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||").append(DB.TO_STRING("Insert ElementSource: " + ex.toString()))
|
.append("SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||").append(DB.TO_STRING("Insert ElementSource: " + ex.toString()))
|
||||||
.append("WHERE I_ReportLine_ID=").append(I_ReportLine_ID);
|
.append("WHERE I_ReportLine_ID=").append(I_ReportLine_ID);
|
||||||
|
@ -458,12 +458,12 @@ public class ImportReportLine extends SvrProcess
|
||||||
{
|
{
|
||||||
no = pstmt_updateSource.executeUpdate();
|
no = pstmt_updateSource.executeUpdate();
|
||||||
//no = DB.executeUpdate(sqlt, get_TrxName());
|
//no = DB.executeUpdate(sqlt, get_TrxName());
|
||||||
log.finest("Update ReportSource = " + no + ", I_ReportLine_ID=" + I_ReportLine_ID + ", PA_ReportSource_ID=" + PA_ReportSource_ID);
|
if (log.isLoggable(Level.FINEST)) log.finest("Update ReportSource = " + no + ", I_ReportLine_ID=" + I_ReportLine_ID + ", PA_ReportSource_ID=" + PA_ReportSource_ID);
|
||||||
noUpdateSource++;
|
noUpdateSource++;
|
||||||
}
|
}
|
||||||
catch (SQLException ex)
|
catch (SQLException ex)
|
||||||
{
|
{
|
||||||
log.finest( "Update ReportSource - " + ex.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest( "Update ReportSource - " + ex.toString());
|
||||||
sql = new StringBuilder ("UPDATE I_ReportLine i ")
|
sql = new StringBuilder ("UPDATE I_ReportLine i ")
|
||||||
.append("SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||").append(DB.TO_STRING("Update ElementSource: " + ex.toString()))
|
.append("SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||").append(DB.TO_STRING("Update ElementSource: " + ex.toString()))
|
||||||
.append("WHERE I_ReportLine_ID=").append(I_ReportLine_ID);
|
.append("WHERE I_ReportLine_ID=").append(I_ReportLine_ID);
|
||||||
|
@ -489,7 +489,7 @@ public class ImportReportLine extends SvrProcess
|
||||||
// Delete report sources with null account
|
// Delete report sources with null account
|
||||||
pstmt_deleteSource.setInt(1, PA_ReportSource_ID);
|
pstmt_deleteSource.setInt(1, PA_ReportSource_ID);
|
||||||
no = pstmt_deleteSource.executeUpdate();
|
no = pstmt_deleteSource.executeUpdate();
|
||||||
log.finest("Delete ReportSource with Null Account= " + no + ", I_ReportLine_ID=" + I_ReportLine_ID + ", PA_ReportSource_ID=" + PA_ReportSource_ID);
|
if (log.isLoggable(Level.FINEST)) log.finest("Delete ReportSource with Null Account= " + no + ", I_ReportLine_ID=" + I_ReportLine_ID + ", PA_ReportSource_ID=" + PA_ReportSource_ID);
|
||||||
// End afalcone 22/02/2007 - F.R. [ 1642250 ] Import ReportLine / Very Slow Reports
|
// End afalcone 22/02/2007 - F.R. [ 1642250 ] Import ReportLine / Very Slow Reports
|
||||||
|
|
||||||
commitEx();
|
commitEx();
|
||||||
|
|
|
@ -222,7 +222,7 @@ public class ReplenishReport extends SvrProcess
|
||||||
if (p_C_BPartner_ID != 0)
|
if (p_C_BPartner_ID != 0)
|
||||||
sql.append(" AND po.C_BPartner_ID=").append(p_C_BPartner_ID);
|
sql.append(" AND po.C_BPartner_ID=").append(p_C_BPartner_ID);
|
||||||
int no = DB.executeUpdate(sql.toString(), get_TrxName());
|
int no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||||
log.finest(sql.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(sql.toString());
|
||||||
log.fine("Insert (1) #" + no);
|
log.fine("Insert (1) #" + no);
|
||||||
|
|
||||||
if (p_C_BPartner_ID == 0)
|
if (p_C_BPartner_ID == 0)
|
||||||
|
|
|
@ -236,7 +236,7 @@ public class ReplenishReportProduction extends SvrProcess
|
||||||
if ( isKanban != null )
|
if ( isKanban != null )
|
||||||
sql.append(" AND p.IsKanban = '").append(isKanban).append("' ");
|
sql.append(" AND p.IsKanban = '").append(isKanban).append("' ");
|
||||||
int no = DB.executeUpdate(sql.toString(), get_TrxName());
|
int no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||||
log.finest(sql.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(sql.toString());
|
||||||
log.fine("Insert (1) #" + no);
|
log.fine("Insert (1) #" + no);
|
||||||
|
|
||||||
if (p_C_BPartner_ID == 0)
|
if (p_C_BPartner_ID == 0)
|
||||||
|
|
|
@ -216,7 +216,7 @@ public abstract class AbstractExcelExporter
|
||||||
format = new StringBuffer(f).append(";[RED]-").append(f);
|
format = new StringBuffer(f).append(";[RED]-").append(f);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
if (CLogMgt.isLevelFinest()) log.finest("NumberFormat: "+format);
|
if (log.isLoggable(Level.FINEST)) log.finest("NumberFormat: "+format);
|
||||||
return format.toString();
|
return format.toString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -746,7 +746,7 @@ public class CreateAdempiere
|
||||||
writeLog(cmd);
|
writeLog(cmd);
|
||||||
log.finer(cmd);
|
log.finer(cmd);
|
||||||
int no = stmt.executeUpdate(cmd);
|
int no = stmt.executeUpdate(cmd);
|
||||||
log.finest("# " + no);
|
if (log.isLoggable(Level.FINEST)) log.finest("# " + no);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
if (batch)
|
if (batch)
|
||||||
|
|
|
@ -522,7 +522,7 @@ public final class ImpFormat
|
||||||
String[] nodes = parseLine (line, true, false, true); // with label, no trace, ignore empty
|
String[] nodes = parseLine (line, true, false, true); // with label, no trace, ignore empty
|
||||||
if (nodes.length == 0)
|
if (nodes.length == 0)
|
||||||
{
|
{
|
||||||
log.finest("Nothing parsed from: " + line);
|
if (log.isLoggable(Level.FINEST)) log.finest("Nothing parsed from: " + line);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// log.config( "ImpFormat.updateDB - listSize=" + nodes.length);
|
// log.config( "ImpFormat.updateDB - listSize=" + nodes.length);
|
||||||
|
|
|
@ -339,7 +339,7 @@ public class GridField
|
||||||
if (checkContext && m_vo.MandatoryLogic.length() > 0)
|
if (checkContext && m_vo.MandatoryLogic.length() > 0)
|
||||||
{
|
{
|
||||||
boolean retValue = Evaluator.evaluateLogic(this, m_vo.MandatoryLogic);
|
boolean retValue = Evaluator.evaluateLogic(this, m_vo.MandatoryLogic);
|
||||||
log.finest(m_vo.ColumnName + " Mandatory(" + m_vo.MandatoryLogic + ") => Mandatory-" + retValue);
|
if (log.isLoggable(Level.FINEST)) log.finest(m_vo.ColumnName + " Mandatory(" + m_vo.MandatoryLogic + ") => Mandatory-" + retValue);
|
||||||
if (retValue)
|
if (retValue)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -373,7 +373,7 @@ public class GridField
|
||||||
if (checkContext && m_vo.ReadOnlyLogic.length() > 0)
|
if (checkContext && m_vo.ReadOnlyLogic.length() > 0)
|
||||||
{
|
{
|
||||||
boolean retValue = !Evaluator.evaluateLogic(this, m_vo.ReadOnlyLogic);
|
boolean retValue = !Evaluator.evaluateLogic(this, m_vo.ReadOnlyLogic);
|
||||||
log.finest(m_vo.ColumnName + " R/O(" + m_vo.ReadOnlyLogic + ") => R/W-" + retValue);
|
if (log.isLoggable(Level.FINEST)) log.finest(m_vo.ColumnName + " R/O(" + m_vo.ReadOnlyLogic + ") => R/W-" + retValue);
|
||||||
if (!retValue)
|
if (!retValue)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -423,21 +423,21 @@ public class GridField
|
||||||
// Tab or field is R/O
|
// Tab or field is R/O
|
||||||
if (m_vo.tabReadOnly || m_vo.IsReadOnly)
|
if (m_vo.tabReadOnly || m_vo.IsReadOnly)
|
||||||
{
|
{
|
||||||
log.finest(m_vo.ColumnName + " NO - TabRO=" + m_vo.tabReadOnly + ", FieldRO=" + m_vo.IsReadOnly);
|
if (log.isLoggable(Level.FINEST)) log.finest(m_vo.ColumnName + " NO - TabRO=" + m_vo.tabReadOnly + ", FieldRO=" + m_vo.IsReadOnly);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Not Updateable - only editable if new updateable row
|
// Not Updateable - only editable if new updateable row
|
||||||
if (!m_vo.IsUpdateable && !m_inserting)
|
if (!m_vo.IsUpdateable && !m_inserting)
|
||||||
{
|
{
|
||||||
log.finest(m_vo.ColumnName + " NO - FieldUpdateable=" + m_vo.IsUpdateable);
|
if (log.isLoggable(Level.FINEST)) log.finest(m_vo.ColumnName + " NO - FieldUpdateable=" + m_vo.IsUpdateable);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Field is the Link Column of the tab
|
// Field is the Link Column of the tab
|
||||||
if (m_vo.ColumnName.equals(Env.getContext(ctx, m_vo.WindowNo, m_vo.TabNo, GridTab.CTX_LinkColumnName)))
|
if (m_vo.ColumnName.equals(Env.getContext(ctx, m_vo.WindowNo, m_vo.TabNo, GridTab.CTX_LinkColumnName)))
|
||||||
{
|
{
|
||||||
log.finest(m_vo.ColumnName + " NO - LinkColumn");
|
if (log.isLoggable(Level.FINEST)) log.finest(m_vo.ColumnName + " NO - LinkColumn");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -464,7 +464,7 @@ public class GridField
|
||||||
if (checkContext && m_vo.ReadOnlyLogic.length() > 0)
|
if (checkContext && m_vo.ReadOnlyLogic.length() > 0)
|
||||||
{
|
{
|
||||||
boolean retValue = !Evaluator.evaluateLogic(this, m_vo.ReadOnlyLogic);
|
boolean retValue = !Evaluator.evaluateLogic(this, m_vo.ReadOnlyLogic);
|
||||||
log.finest(m_vo.ColumnName + " R/O(" + m_vo.ReadOnlyLogic + ") => R/W-" + retValue);
|
if (log.isLoggable(Level.FINEST)) log.finest(m_vo.ColumnName + " R/O(" + m_vo.ReadOnlyLogic + ") => R/W-" + retValue);
|
||||||
if (!retValue)
|
if (!retValue)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -794,7 +794,7 @@ public class GridField
|
||||||
// need to re-set invalid values - OK BPartner in PO Line - not OK SalesRep in Invoice
|
// need to re-set invalid values - OK BPartner in PO Line - not OK SalesRep in Invoice
|
||||||
if (m_lookup.getDirect(m_value, false, true) == null)
|
if (m_lookup.getDirect(m_value, false, true) == null)
|
||||||
{
|
{
|
||||||
log.finest(m_vo.ColumnName + " Serach not valid - set to null");
|
if (log.isLoggable(Level.FINEST)) log.finest(m_vo.ColumnName + " Serach not valid - set to null");
|
||||||
setValue(null, m_inserting);
|
setValue(null, m_inserting);
|
||||||
m_error = true;
|
m_error = true;
|
||||||
return false;
|
return false;
|
||||||
|
@ -811,7 +811,7 @@ public class GridField
|
||||||
if (isKey() || isParentValue()) // parents/ket are not validated
|
if (isKey() || isParentValue()) // parents/ket are not validated
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
log.finest(m_vo.ColumnName + " - set to null");
|
if (log.isLoggable(Level.FINEST)) log.finest(m_vo.ColumnName + " - set to null");
|
||||||
setValue(null, m_inserting);
|
setValue(null, m_inserting);
|
||||||
m_error = true;
|
m_error = true;
|
||||||
return false;
|
return false;
|
||||||
|
@ -852,7 +852,7 @@ public class GridField
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
boolean retValue = Evaluator.evaluateLogic(evaluatee, m_vo.DisplayLogic);
|
boolean retValue = Evaluator.evaluateLogic(evaluatee, m_vo.DisplayLogic);
|
||||||
log.finest(m_vo.ColumnName
|
if (log.isLoggable(Level.FINEST)) log.finest(m_vo.ColumnName
|
||||||
+ " (" + m_vo.DisplayLogic + ") => " + retValue);
|
+ " (" + m_vo.DisplayLogic + ") => " + retValue);
|
||||||
return retValue;
|
return retValue;
|
||||||
}
|
}
|
||||||
|
@ -1804,8 +1804,7 @@ public class GridField
|
||||||
private final void backupValue() {
|
private final void backupValue() {
|
||||||
if (!m_isBackupValue) {
|
if (!m_isBackupValue) {
|
||||||
m_backupValue = get_ValueAsString(m_vo.ColumnName);
|
m_backupValue = get_ValueAsString(m_vo.ColumnName);
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest("Backup " + m_vo.WindowNo + "|" + m_vo.ColumnName + "=" + m_backupValue);
|
||||||
log.finest("Backup " + m_vo.WindowNo + "|" + m_vo.ColumnName + "=" + m_backupValue);
|
|
||||||
m_isBackupValue = true;
|
m_isBackupValue = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1818,14 +1817,12 @@ public class GridField
|
||||||
if (m_isBackupValue) {
|
if (m_isBackupValue) {
|
||||||
if (isParentTabField())
|
if (isParentTabField())
|
||||||
{
|
{
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest("Restore " + m_vo.WindowNo + "|" + m_vo.TabNo + "|" + m_vo.ColumnName + "=" + m_backupValue);
|
||||||
log.finest("Restore " + m_vo.WindowNo + "|" + m_vo.TabNo + "|" + m_vo.ColumnName + "=" + m_backupValue);
|
|
||||||
Env.setContext(m_vo.ctx, m_vo.WindowNo, m_vo.TabNo, m_vo.ColumnName, m_backupValue);
|
Env.setContext(m_vo.ctx, m_vo.WindowNo, m_vo.TabNo, m_vo.ColumnName, m_backupValue);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest("Restore " + m_vo.WindowNo + "|" + m_vo.ColumnName + "=" + m_backupValue);
|
||||||
log.finest("Restore " + m_vo.WindowNo + "|" + m_vo.ColumnName + "=" + m_backupValue);
|
|
||||||
Env.setContext(m_vo.ctx, m_vo.WindowNo, m_vo.ColumnName, m_backupValue);
|
Env.setContext(m_vo.ctx, m_vo.WindowNo, m_vo.ColumnName, m_backupValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1142,7 +1142,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
||||||
log.warning ("Not allowed in TabNo=" + m_vo.TabNo + " -> Processed=" + processed);
|
log.warning ("Not allowed in TabNo=" + m_vo.TabNo + " -> Processed=" + processed);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
log.finest("Processed=" + processed);
|
if (log.isLoggable(Level.FINEST)) log.finest("Processed=" + processed);
|
||||||
}
|
}
|
||||||
|
|
||||||
//hengsin, don't create new when parent is empty
|
//hengsin, don't create new when parent is empty
|
||||||
|
@ -1516,7 +1516,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
||||||
|
|
||||||
// ** dynamic content ** uses get_ValueAsString
|
// ** dynamic content ** uses get_ValueAsString
|
||||||
boolean retValue = Evaluator.evaluateLogic(this, m_vo.ReadOnlyLogic);
|
boolean retValue = Evaluator.evaluateLogic(this, m_vo.ReadOnlyLogic);
|
||||||
log.finest(m_vo.Name
|
if (log.isLoggable(Level.FINEST)) log.finest(m_vo.Name
|
||||||
+ " (" + m_vo.ReadOnlyLogic + ") => " + retValue);
|
+ " (" + m_vo.ReadOnlyLogic + ") => " + retValue);
|
||||||
return retValue;
|
return retValue;
|
||||||
} // isReadOnly
|
} // isReadOnly
|
||||||
|
|
|
@ -1210,7 +1210,7 @@ public class GridTable extends AbstractTableModel
|
||||||
|| m_rowCount == 0 // no rows
|
|| m_rowCount == 0 // no rows
|
||||||
|| row >= m_rowCount ) //invalid row
|
|| row >= m_rowCount ) //invalid row
|
||||||
{
|
{
|
||||||
log.finest("r=" + row + " c=" + col + " - R/O=" + m_readOnly + ", Rows=" + m_rowCount + " - Ignored");
|
if (log.isLoggable(Level.FINEST)) log.finest("r=" + row + " c=" + col + " - R/O=" + m_readOnly + ", Rows=" + m_rowCount + " - Ignored");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1220,7 +1220,7 @@ public class GridTable extends AbstractTableModel
|
||||||
Object oldValue = getValueAt(row, col);
|
Object oldValue = getValueAt(row, col);
|
||||||
if (!force && !isValueChanged(oldValue, value) )
|
if (!force && !isValueChanged(oldValue, value) )
|
||||||
{
|
{
|
||||||
log.finest("r=" + row + " c=" + col + " - New=" + value + "==Old=" + oldValue + " - Ignored");
|
if (log.isLoggable(Level.FINEST)) log.finest("r=" + row + " c=" + col + " - New=" + value + "==Old=" + oldValue + " - Ignored");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2312,7 +2312,7 @@ public class GridTable extends AbstractTableModel
|
||||||
{
|
{
|
||||||
m_createSqlColumn.add(columnName);
|
m_createSqlColumn.add(columnName);
|
||||||
m_createSqlValue.add(value);
|
m_createSqlValue.add(value);
|
||||||
log.finest("#" + m_createSqlColumn.size()
|
if (log.isLoggable(Level.FINEST)) log.finest("#" + m_createSqlColumn.size()
|
||||||
+ " - " + columnName + "=" + value);
|
+ " - " + columnName + "=" + value);
|
||||||
} // createUpdateSQL
|
} // createUpdateSQL
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ package org.compiere.model;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.AbstractListModel;
|
import javax.swing.AbstractListModel;
|
||||||
import javax.swing.MutableComboBoxModel;
|
import javax.swing.MutableComboBoxModel;
|
||||||
|
@ -286,7 +287,7 @@ public abstract class Lookup extends AbstractListModel
|
||||||
// Selected Object changed
|
// Selected Object changed
|
||||||
if (obj != m_selectedObject)
|
if (obj != m_selectedObject)
|
||||||
{
|
{
|
||||||
log.finest(getColumnName() + ": SelectedValue Changed=" + obj + "->" + m_selectedObject);
|
if (log.isLoggable(Level.FINEST)) log.finest(getColumnName() + ": SelectedValue Changed=" + obj + "->" + m_selectedObject);
|
||||||
obj = m_selectedObject;
|
obj = m_selectedObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,10 @@ import java.sql.Timestamp;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
import org.compiere.util.CLogMgt;
|
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.EMail;
|
import org.compiere.util.EMail;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
@ -504,7 +504,7 @@ public class MAsset extends X_A_Asset
|
||||||
public void changeStatus(String newStatus, Timestamp date)
|
public void changeStatus(String newStatus, Timestamp date)
|
||||||
{
|
{
|
||||||
String status = getA_Asset_Status();
|
String status = getA_Asset_Status();
|
||||||
if (CLogMgt.isLevelFinest()) log.finest("Entering: " + status + "->" + newStatus + ", date=" + date);
|
if (log.isLoggable(Level.FINEST)) log.finest("Entering: " + status + "->" + newStatus + ", date=" + date);
|
||||||
|
|
||||||
//
|
//
|
||||||
// If date is null, use context #Date
|
// If date is null, use context #Date
|
||||||
|
|
|
@ -249,7 +249,7 @@ public class MAssetAddition extends X_A_Asset_Addition
|
||||||
private MAssetAddition (MProject project)
|
private MAssetAddition (MProject project)
|
||||||
{
|
{
|
||||||
this(project.getCtx(), 0, project.get_TrxName());
|
this(project.getCtx(), 0, project.get_TrxName());
|
||||||
log.finest("Entering: Project=" + project);
|
if (log.isLoggable(Level.FINEST)) log.finest("Entering: Project=" + project);
|
||||||
setAD_Org_ID(project.getAD_Org_ID());
|
setAD_Org_ID(project.getAD_Org_ID());
|
||||||
setPostingType(POSTINGTYPE_Actual);
|
setPostingType(POSTINGTYPE_Actual);
|
||||||
setA_SourceType(A_SOURCETYPE_Project);
|
setA_SourceType(A_SOURCETYPE_Project);
|
||||||
|
@ -292,7 +292,7 @@ public class MAssetAddition extends X_A_Asset_Addition
|
||||||
private MAssetAddition (MIFixedAsset ifa)
|
private MAssetAddition (MIFixedAsset ifa)
|
||||||
{
|
{
|
||||||
this(ifa.getCtx(), 0, ifa.get_TrxName());
|
this(ifa.getCtx(), 0, ifa.get_TrxName());
|
||||||
log.finest("Entering: ifa=" + ifa);
|
if (log.isLoggable(Level.FINEST)) log.finest("Entering: ifa=" + ifa);
|
||||||
setAD_Org_ID(ifa.getAD_Org_ID());
|
setAD_Org_ID(ifa.getAD_Org_ID());
|
||||||
setPostingType(POSTINGTYPE_Actual);
|
setPostingType(POSTINGTYPE_Actual);
|
||||||
setA_SourceType(A_SOURCETYPE_Imported);
|
setA_SourceType(A_SOURCETYPE_Imported);
|
||||||
|
|
|
@ -6,6 +6,7 @@ import java.math.RoundingMode;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.compiere.process.DocAction;
|
import org.compiere.process.DocAction;
|
||||||
import org.compiere.process.DocumentEngine;
|
import org.compiere.process.DocumentEngine;
|
||||||
|
@ -50,7 +51,7 @@ implements DocAction
|
||||||
|
|
||||||
private MAssetDisposed (MInvoiceLine invLine) {
|
private MAssetDisposed (MInvoiceLine invLine) {
|
||||||
this(invLine.getCtx(),0,invLine.get_TrxName());
|
this(invLine.getCtx(),0,invLine.get_TrxName());
|
||||||
log.finest("Entering: Project=" + invLine);
|
if (log.isLoggable(Level.FINEST)) log.finest("Entering: Project=" + invLine);
|
||||||
setAD_Org_ID(invLine.getAD_Org_ID());
|
setAD_Org_ID(invLine.getAD_Org_ID());
|
||||||
setPostingType(POSTINGTYPE_Actual);
|
setPostingType(POSTINGTYPE_Actual);
|
||||||
setDateDoc(invLine.getC_Invoice().getDateInvoiced());
|
setDateDoc(invLine.getC_Invoice().getDateInvoiced());
|
||||||
|
|
|
@ -905,7 +905,7 @@ public class MCostDetail extends X_M_CostDetail
|
||||||
cost.setCurrentCostPrice(MCost.getSeedCosts(product, M_ASI_ID,
|
cost.setCurrentCostPrice(MCost.getSeedCosts(product, M_ASI_ID,
|
||||||
as, Org_ID, ce.getCostingMethod(), getC_OrderLine_ID()));
|
as, Org_ID, ce.getCostingMethod(), getC_OrderLine_ID()));
|
||||||
}
|
}
|
||||||
log.finest("PO - Standard - CurrentCostPrice(seed)="+cost.getCurrentCostPrice()+", price="+price);
|
if (log.isLoggable(Level.FINEST)) log.finest("PO - Standard - CurrentCostPrice(seed)="+cost.getCurrentCostPrice()+", price="+price);
|
||||||
}
|
}
|
||||||
cost.add(amt, qty);
|
cost.add(amt, qty);
|
||||||
log.finer("PO - Standard - " + cost);
|
log.finer("PO - Standard - " + cost);
|
||||||
|
@ -976,7 +976,7 @@ public class MCostDetail extends X_M_CostDetail
|
||||||
{
|
{
|
||||||
cost.setCurrentCostPrice(MCost.getSeedCosts(product, M_ASI_ID,
|
cost.setCurrentCostPrice(MCost.getSeedCosts(product, M_ASI_ID,
|
||||||
as, Org_ID, ce.getCostingMethod(), getC_OrderLine_ID()));
|
as, Org_ID, ce.getCostingMethod(), getC_OrderLine_ID()));
|
||||||
log.finest("Inv - Standard - CurrentCostPrice(seed)="+cost.getCurrentCostPrice()+", price="+price);
|
if (log.isLoggable(Level.FINEST)) log.finest("Inv - Standard - CurrentCostPrice(seed)="+cost.getCurrentCostPrice()+", price="+price);
|
||||||
}
|
}
|
||||||
cost.add(amt, qty);
|
cost.add(amt, qty);
|
||||||
}
|
}
|
||||||
|
@ -1124,7 +1124,7 @@ public class MCostDetail extends X_M_CostDetail
|
||||||
&& cost.is_new())
|
&& cost.is_new())
|
||||||
{
|
{
|
||||||
cost.setCurrentCostPrice(price);
|
cost.setCurrentCostPrice(price);
|
||||||
log.finest("QtyAdjust - Standard - CurrentCostPrice="+price);
|
if (log.isLoggable(Level.FINEST)) log.finest("QtyAdjust - Standard - CurrentCostPrice="+price);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -220,7 +220,7 @@ public class MDepreciation extends X_A_Depreciation
|
||||||
int lifePeriods = assetwk.getUseLifeMonths(assetwk.isFiscal());
|
int lifePeriods = assetwk.getUseLifeMonths(assetwk.isFiscal());
|
||||||
boolean ok = (offset <= A_Current_Period);
|
boolean ok = (offset <= A_Current_Period);
|
||||||
|
|
||||||
if(CLogMgt.isLevelFinest()) log.finest("A_Current_Period=" + A_Current_Period + ", lifePeriods=" + lifePeriods + " (offset=" + offset + ") ==> OK=" + ok);
|
if (log.isLoggable(Level.FINEST)) log.finest("A_Current_Period=" + A_Current_Period + ", lifePeriods=" + lifePeriods + " (offset=" + offset + ") ==> OK=" + ok);
|
||||||
return ok;
|
return ok;
|
||||||
} // canInvoke
|
} // canInvoke
|
||||||
|
|
||||||
|
@ -258,10 +258,7 @@ public class MDepreciation extends X_A_Depreciation
|
||||||
amtPerPeriod = remainingAmt.divide(remainingPeriods, getPrecision(), RoundingMode.HALF_UP);
|
amtPerPeriod = remainingAmt.divide(remainingPeriods, getPrecision(), RoundingMode.HALF_UP);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest("currentPeriod=" + A_Current_Period + ", remainingAmt=" + remainingAmt + ", remainingPeriods=" + remainingPeriods + " => amtPerPeriod=" + amtPerPeriod);
|
||||||
{
|
|
||||||
log.finest("currentPeriod=" + A_Current_Period + ", remainingAmt=" + remainingAmt + ", remainingPeriods=" + remainingPeriods + " => amtPerPeriod=" + amtPerPeriod);
|
|
||||||
}
|
|
||||||
|
|
||||||
return amtPerPeriod;
|
return amtPerPeriod;
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,10 +114,8 @@ public class MInfoColumn extends X_AD_InfoColumn
|
||||||
};
|
};
|
||||||
|
|
||||||
boolean retValue = Evaluator.evaluateLogic(evaluatee, getDisplayLogic());
|
boolean retValue = Evaluator.evaluateLogic(evaluatee, getDisplayLogic());
|
||||||
if (log.isLoggable(Level.FINEST)) {
|
if (log.isLoggable(Level.FINEST)) log.finest(getName()
|
||||||
log.finest(getName()
|
|
||||||
+ " (" + getDisplayLogic() + ") => " + retValue);
|
+ " (" + getDisplayLogic() + ") => " + retValue);
|
||||||
}
|
|
||||||
return retValue;
|
return retValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -335,7 +335,7 @@ public class MJournal extends X_GL_Journal implements DocAction
|
||||||
"UPDATE GL_JournalLine SET "+MJournalLine.COLUMNNAME_DateAcct+"=? WHERE GL_Journal_ID=?",
|
"UPDATE GL_JournalLine SET "+MJournalLine.COLUMNNAME_DateAcct+"=? WHERE GL_Journal_ID=?",
|
||||||
new Object[]{getDateAcct(), getGL_Journal_ID()},
|
new Object[]{getDateAcct(), getGL_Journal_ID()},
|
||||||
false, get_TrxName());
|
false, get_TrxName());
|
||||||
log.finest("Updated GL_JournalLine.DateAcct #" + no);
|
if (log.isLoggable(Level.FINEST)) log.finest("Updated GL_JournalLine.DateAcct #" + no);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} // beforeSave
|
} // beforeSave
|
||||||
|
|
|
@ -521,7 +521,7 @@ public class MLocation extends X_C_Location implements Comparator<Object>
|
||||||
outStr.append(" ").append(super.getRegionName());
|
outStr.append(" ").append(super.getRegionName());
|
||||||
|
|
||||||
String retValue = Util.replace(outStr.toString(), "\\n", "\n");
|
String retValue = Util.replace(outStr.toString(), "\\n", "\n");
|
||||||
log.finest("parseCRP - " + c.getDisplaySequence() + " -> " + retValue);
|
if (log.isLoggable(Level.FINEST)) log.finest("parseCRP - " + c.getDisplaySequence() + " -> " + retValue);
|
||||||
return retValue;
|
return retValue;
|
||||||
} // parseContext
|
} // parseContext
|
||||||
|
|
||||||
|
|
|
@ -525,8 +525,7 @@ public final class MLookup extends Lookup implements Serializable
|
||||||
directValue = null;
|
directValue = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest(m_info.KeyColumn + ": " + directValue + " - " + m_info);
|
||||||
log.finest(m_info.KeyColumn + ": " + directValue + " - " + m_info);
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -764,7 +763,7 @@ public final class MLookup extends Lookup implements Serializable
|
||||||
if (CLogMgt.isLevelFiner())
|
if (CLogMgt.isLevelFiner())
|
||||||
log.finer(m_info.Column_ID + ", " + m_info.KeyColumn + ": " + sql.toString());
|
log.finer(m_info.Column_ID + ", " + m_info.KeyColumn + ": " + sql.toString());
|
||||||
if (CLogMgt.isLevelFinest())
|
if (CLogMgt.isLevelFinest())
|
||||||
log.finest(m_info.KeyColumn + ": " + sql);
|
if (log.isLoggable(Level.FINEST)) log.finest(m_info.KeyColumn + ": " + sql);
|
||||||
|
|
||||||
// Reset
|
// Reset
|
||||||
m_lookup.clear();
|
m_lookup.clear();
|
||||||
|
|
|
@ -1982,7 +1982,7 @@ public final class MRole extends X_AD_Role
|
||||||
if (recordWhere.length() > 0)
|
if (recordWhere.length() > 0)
|
||||||
{
|
{
|
||||||
retSQL.append(" AND ").append(recordWhere);
|
retSQL.append(" AND ").append(recordWhere);
|
||||||
log.finest("Record access - " + recordWhere);
|
if (log.isLoggable(Level.FINEST)) log.finest("Record access - " + recordWhere);
|
||||||
}
|
}
|
||||||
} // for all table info
|
} // for all table info
|
||||||
|
|
||||||
|
@ -2042,7 +2042,7 @@ public final class MRole extends X_AD_Role
|
||||||
retSQL.append(getDependentAccess(whereColumnName, includes, excludes));
|
retSQL.append(getDependentAccess(whereColumnName, includes, excludes));
|
||||||
//
|
//
|
||||||
retSQL.append(orderBy);
|
retSQL.append(orderBy);
|
||||||
log.finest(retSQL.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(retSQL.toString());
|
||||||
return retSQL.toString();
|
return retSQL.toString();
|
||||||
} // addAccessSQL
|
} // addAccessSQL
|
||||||
|
|
||||||
|
@ -2092,7 +2092,7 @@ public final class MRole extends X_AD_Role
|
||||||
}
|
}
|
||||||
where.append("))");
|
where.append("))");
|
||||||
}
|
}
|
||||||
log.finest(where.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(where.toString());
|
||||||
return where.toString();
|
return where.toString();
|
||||||
} // getDependentAccess
|
} // getDependentAccess
|
||||||
|
|
||||||
|
|
|
@ -293,7 +293,7 @@ public class MSession extends X_AD_Session
|
||||||
else
|
else
|
||||||
return null;
|
return null;
|
||||||
//
|
//
|
||||||
log.finest("AD_ChangeLog_ID=" + AD_ChangeLog_ID
|
if (log.isLoggable(Level.FINEST)) log.finest("AD_ChangeLog_ID=" + AD_ChangeLog_ID
|
||||||
+ ", AD_Session_ID=" + getAD_Session_ID()
|
+ ", AD_Session_ID=" + getAD_Session_ID()
|
||||||
+ ", AD_Table_ID=" + AD_Table_ID + ", AD_Column_ID=" + AD_Column_ID
|
+ ", AD_Table_ID=" + AD_Table_ID + ", AD_Column_ID=" + AD_Column_ID
|
||||||
+ ": " + OldValue + " -> " + NewValue);
|
+ ": " + OldValue + " -> " + NewValue);
|
||||||
|
|
|
@ -229,7 +229,7 @@ public class MTree extends MTree_Base
|
||||||
sql.append(" ORDER BY COALESCE(tn.Parent_ID, -1), tn.SeqNo");
|
sql.append(" ORDER BY COALESCE(tn.Parent_ID, -1), tn.SeqNo");
|
||||||
sql = new StringBuffer(MRole.getDefault().addAccessSQL(sql.toString(), "st", MRole.SQL_FULLYQUALIFIED, MRole.SQL_RO)); // SQL_RO for Org_ID = 0
|
sql = new StringBuffer(MRole.getDefault().addAccessSQL(sql.toString(), "st", MRole.SQL_FULLYQUALIFIED, MRole.SQL_RO)); // SQL_RO for Org_ID = 0
|
||||||
}
|
}
|
||||||
log.finest(sql.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(sql.toString());
|
||||||
// The Node Loop
|
// The Node Loop
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
|
@ -280,7 +280,7 @@ public class MTree extends MTree_Base
|
||||||
// Done with loading - add remainder from buffer
|
// Done with loading - add remainder from buffer
|
||||||
if (m_buffer.size() != 0)
|
if (m_buffer.size() != 0)
|
||||||
{
|
{
|
||||||
log.finest("clearing buffer - Adding to: " + m_root);
|
if (log.isLoggable(Level.FINEST)) log.finest("clearing buffer - Adding to: " + m_root);
|
||||||
for (int i = 0; i < m_buffer.size(); i++)
|
for (int i = 0; i < m_buffer.size(); i++)
|
||||||
{
|
{
|
||||||
MTreeNode node = (MTreeNode)m_buffer.get(i);
|
MTreeNode node = (MTreeNode)m_buffer.get(i);
|
||||||
|
|
|
@ -22,6 +22,7 @@ import java.util.Collection;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
|
|
||||||
|
@ -262,7 +263,7 @@ public final class MultiMap<K,V> implements Map<K,V>, Serializable
|
||||||
{
|
{
|
||||||
Object k = m_keys.get(i);
|
Object k = m_keys.get(i);
|
||||||
Object v = m_values.get(i);
|
Object v = m_values.get(i);
|
||||||
log.finest(k==null ? "null" : k.toString() + "=" + v==null ? "null" : v.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(k==null ? "null" : k.toString() + "=" + v==null ? "null" : v.toString());
|
||||||
}
|
}
|
||||||
} // printToLog
|
} // printToLog
|
||||||
|
|
||||||
|
|
|
@ -835,8 +835,7 @@ public abstract class PO
|
||||||
+ value + " - Reference_ID=" + p_info.getColumn(index).AD_Reference_Value_ID + validValues.toString());
|
+ value + " - Reference_ID=" + p_info.getColumn(index).AD_Reference_Value_ID + validValues.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest(ColumnName + " = " + m_newValues[index] + " (OldValue="+m_oldValues[index]+")");
|
||||||
log.finest(ColumnName + " = " + m_newValues[index] + " (OldValue="+m_oldValues[index]+")");
|
|
||||||
}
|
}
|
||||||
set_Keys (ColumnName, m_newValues[index]);
|
set_Keys (ColumnName, m_newValues[index]);
|
||||||
|
|
||||||
|
@ -940,7 +939,7 @@ public abstract class PO
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.finest(ColumnName + " = " + m_newValues[index]
|
if (log.isLoggable(Level.FINEST)) log.finest(ColumnName + " = " + m_newValues[index]
|
||||||
+ " (" + (m_newValues[index]==null ? "-" : m_newValues[index].getClass().getName()) + ")");
|
+ " (" + (m_newValues[index]==null ? "-" : m_newValues[index].getClass().getName()) + ")");
|
||||||
set_Keys (ColumnName, m_newValues[index]);
|
set_Keys (ColumnName, m_newValues[index]);
|
||||||
|
|
||||||
|
@ -1276,7 +1275,7 @@ public abstract class PO
|
||||||
*/
|
*/
|
||||||
protected void load (int ID, String trxName)
|
protected void load (int ID, String trxName)
|
||||||
{
|
{
|
||||||
log.finest("ID=" + ID);
|
if (log.isLoggable(Level.FINEST)) log.finest("ID=" + ID);
|
||||||
if (ID > 0)
|
if (ID > 0)
|
||||||
{
|
{
|
||||||
setKeyInfo();
|
setKeyInfo();
|
||||||
|
@ -1317,8 +1316,7 @@ public abstract class PO
|
||||||
|
|
||||||
//
|
//
|
||||||
// int index = -1;
|
// int index = -1;
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest(get_WhereClause(true));
|
||||||
log.finest(get_WhereClause(true));
|
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
|
@ -1571,7 +1569,7 @@ public abstract class PO
|
||||||
*/
|
*/
|
||||||
protected Object loadSpecial (ResultSet rs, int index) throws SQLException
|
protected Object loadSpecial (ResultSet rs, int index) throws SQLException
|
||||||
{
|
{
|
||||||
log.finest("(NOP) - " + p_info.getColumnName(index));
|
if (log.isLoggable(Level.FINEST)) log.finest("(NOP) - " + p_info.getColumnName(index));
|
||||||
return null;
|
return null;
|
||||||
} // loadSpecial
|
} // loadSpecial
|
||||||
|
|
||||||
|
@ -1649,7 +1647,7 @@ public abstract class PO
|
||||||
m_IDs = new Object[] {I_ZERO};
|
m_IDs = new Object[] {I_ZERO};
|
||||||
else
|
else
|
||||||
m_IDs = new Object[] {ii};
|
m_IDs = new Object[] {ii};
|
||||||
log.finest("(PK) " + ColumnName + "=" + ii);
|
if (log.isLoggable(Level.FINEST)) log.finest("(PK) " + ColumnName + "=" + ii);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1658,7 +1656,7 @@ public abstract class PO
|
||||||
m_IDs = new Object[] {null};
|
m_IDs = new Object[] {null};
|
||||||
else
|
else
|
||||||
m_IDs = new Object[] {oo};
|
m_IDs = new Object[] {oo};
|
||||||
log.finest("(PK) " + ColumnName + "=" + oo);
|
if (log.isLoggable(Level.FINEST)) log.finest("(PK) " + ColumnName + "=" + oo);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1696,7 +1694,7 @@ public abstract class PO
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
m_IDs[i] = get_Value(m_KeyColumns[i]);
|
m_IDs[i] = get_Value(m_KeyColumns[i]);
|
||||||
log.finest("(FK) " + m_KeyColumns[i] + "=" + m_IDs[i]);
|
if (log.isLoggable(Level.FINEST)) log.finest("(FK) " + m_KeyColumns[i] + "=" + m_IDs[i]);
|
||||||
}
|
}
|
||||||
} // setKeyInfo
|
} // setKeyInfo
|
||||||
|
|
||||||
|
@ -2602,7 +2600,7 @@ public abstract class PO
|
||||||
sql.append(" WHERE ").append(where);
|
sql.append(" WHERE ").append(where);
|
||||||
/** @todo status locking goes here */
|
/** @todo status locking goes here */
|
||||||
|
|
||||||
log.finest(sql.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(sql.toString());
|
||||||
int no = 0;
|
int no = 0;
|
||||||
if (isUseTimeoutForUpdate())
|
if (isUseTimeoutForUpdate())
|
||||||
no = withValues ? DB.executeUpdateEx(sql.toString(), m_trxName, QUERY_TIME_OUT)
|
no = withValues ? DB.executeUpdateEx(sql.toString(), m_trxName, QUERY_TIME_OUT)
|
||||||
|
@ -3895,13 +3893,13 @@ public abstract class PO
|
||||||
StringBuilder sb = new StringBuilder(" ").append(index);
|
StringBuilder sb = new StringBuilder(" ").append(index);
|
||||||
if (index < 0 || index >= get_ColumnCount())
|
if (index < 0 || index >= get_ColumnCount())
|
||||||
{
|
{
|
||||||
log.finest(sb.append(": invalid").toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(sb.append(": invalid").toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sb.append(": ").append(get_ColumnName(index))
|
sb.append(": ").append(get_ColumnName(index))
|
||||||
.append(" = ").append(m_oldValues[index])
|
.append(" = ").append(m_oldValues[index])
|
||||||
.append(" (").append(m_newValues[index]).append(")");
|
.append(" (").append(m_newValues[index]).append(")");
|
||||||
log.finest(sb.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(sb.toString());
|
||||||
} // dump
|
} // dump
|
||||||
|
|
||||||
|
|
||||||
|
@ -4037,7 +4035,7 @@ public abstract class PO
|
||||||
*/
|
*/
|
||||||
private void lobAdd (Object value, int index, int displayType)
|
private void lobAdd (Object value, int index, int displayType)
|
||||||
{
|
{
|
||||||
log.finest("Value=" + value);
|
if (log.isLoggable(Level.FINEST)) log.finest("Value=" + value);
|
||||||
PO_LOB lob = new PO_LOB (p_info.getTableName(), get_ColumnName(index),
|
PO_LOB lob = new PO_LOB (p_info.getTableName(), get_ColumnName(index),
|
||||||
get_WhereClause(true), displayType, value);
|
get_WhereClause(true), displayType, value);
|
||||||
if (m_lobInfo == null)
|
if (m_lobInfo == null)
|
||||||
|
|
|
@ -31,7 +31,6 @@ import java.util.Properties;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.adempiere.exceptions.DBException;
|
import org.adempiere.exceptions.DBException;
|
||||||
import org.compiere.util.CLogMgt;
|
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
@ -694,7 +693,7 @@ public class Query
|
||||||
MRole role = MRole.getDefault(this.ctx, false);
|
MRole role = MRole.getDefault(this.ctx, false);
|
||||||
sql = role.addAccessSQL(sql, table.getTableName(), applyAccessFilterFullyQualified, applyAccessFilterRW);
|
sql = role.addAccessSQL(sql, table.getTableName(), applyAccessFilterFullyQualified, applyAccessFilterRW);
|
||||||
}
|
}
|
||||||
if (CLogMgt.isLevelFinest()) log.finest("TableName = "+table.getTableName()+"... SQL = " +sql); //red1 - to assist in debugging SQL
|
if (log.isLoggable(Level.FINEST)) log.finest("TableName = "+table.getTableName()+"... SQL = " +sql); //red1 - to assist in debugging SQL
|
||||||
return sql;
|
return sql;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -706,21 +705,18 @@ public class Query
|
||||||
if (this.onlyActiveRecords)
|
if (this.onlyActiveRecords)
|
||||||
{
|
{
|
||||||
DB.setParameter(pstmt, i++, true);
|
DB.setParameter(pstmt, i++, true);
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Parameter IsActive = Y");
|
||||||
log.finest("Parameter IsActive = Y");
|
|
||||||
}
|
}
|
||||||
if (this.onlyClient_ID)
|
if (this.onlyClient_ID)
|
||||||
{
|
{
|
||||||
int AD_Client_ID = Env.getAD_Client_ID(ctx);
|
int AD_Client_ID = Env.getAD_Client_ID(ctx);
|
||||||
DB.setParameter(pstmt, i++, AD_Client_ID);
|
DB.setParameter(pstmt, i++, AD_Client_ID);
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Parameter AD_Client_ID = "+AD_Client_ID);
|
||||||
log.finest("Parameter AD_Client_ID = "+AD_Client_ID);
|
|
||||||
}
|
}
|
||||||
if (this.onlySelection_ID > 0)
|
if (this.onlySelection_ID > 0)
|
||||||
{
|
{
|
||||||
DB.setParameter(pstmt, i++, this.onlySelection_ID);
|
DB.setParameter(pstmt, i++, this.onlySelection_ID);
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Parameter Selection AD_PInstance_ID = "+this.onlySelection_ID);
|
||||||
log.finest("Parameter Selection AD_PInstance_ID = "+this.onlySelection_ID);
|
|
||||||
}
|
}
|
||||||
return pstmt.executeQuery();
|
return pstmt.executeQuery();
|
||||||
}
|
}
|
||||||
|
|
|
@ -496,7 +496,7 @@ public class Tax
|
||||||
for (int i = 0; i < taxes.length; i++)
|
for (int i = 0; i < taxes.length; i++)
|
||||||
{
|
{
|
||||||
MTax tax = taxes[i];
|
MTax tax = taxes[i];
|
||||||
log.finest(tax.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(tax.toString());
|
||||||
//
|
//
|
||||||
if (tax.getC_TaxCategory_ID() != C_TaxCategory_ID
|
if (tax.getC_TaxCategory_ID() != C_TaxCategory_ID
|
||||||
|| !tax.isActive()
|
|| !tax.isActive()
|
||||||
|
@ -507,15 +507,15 @@ public class Tax
|
||||||
if (!IsSOTrx && MTax.SOPOTYPE_SalesTax.equals(tax.getSOPOType()))
|
if (!IsSOTrx && MTax.SOPOTYPE_SalesTax.equals(tax.getSOPOType()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
log.finest("From Country - " + (tax.getC_Country_ID() == lFrom.getC_Country_ID()
|
if (log.isLoggable(Level.FINEST)) log.finest("From Country - " + (tax.getC_Country_ID() == lFrom.getC_Country_ID()
|
||||||
|| tax.getC_Country_ID() == 0));
|
|| tax.getC_Country_ID() == 0));
|
||||||
log.finest("From Region - " + (tax.getC_Region_ID() == lFrom.getC_Region_ID()
|
if (log.isLoggable(Level.FINEST)) log.finest("From Region - " + (tax.getC_Region_ID() == lFrom.getC_Region_ID()
|
||||||
|| tax.getC_Region_ID() == 0));
|
|| tax.getC_Region_ID() == 0));
|
||||||
log.finest("To Country - " + (tax.getTo_Country_ID() == lTo.getC_Country_ID()
|
if (log.isLoggable(Level.FINEST)) log.finest("To Country - " + (tax.getTo_Country_ID() == lTo.getC_Country_ID()
|
||||||
|| tax.getTo_Country_ID() == 0));
|
|| tax.getTo_Country_ID() == 0));
|
||||||
log.finest("To Region - " + (tax.getTo_Region_ID() == lTo.getC_Region_ID()
|
if (log.isLoggable(Level.FINEST)) log.finest("To Region - " + (tax.getTo_Region_ID() == lTo.getC_Region_ID()
|
||||||
|| tax.getTo_Region_ID() == 0));
|
|| tax.getTo_Region_ID() == 0));
|
||||||
log.finest("Date valid - " + (!tax.getValidFrom().after(billDate)));
|
if (log.isLoggable(Level.FINEST)) log.finest("Date valid - " + (!tax.getValidFrom().after(billDate)));
|
||||||
|
|
||||||
// From Country
|
// From Country
|
||||||
if ((tax.getC_Country_ID() == lFrom.getC_Country_ID()
|
if ((tax.getC_Country_ID() == lFrom.getC_Country_ID()
|
||||||
|
|
|
@ -229,8 +229,7 @@ public class DataEngine
|
||||||
ArrayList<String> orderColumns = new ArrayList<String>(orderAD_Column_IDs.length);
|
ArrayList<String> orderColumns = new ArrayList<String>(orderAD_Column_IDs.length);
|
||||||
for (int i = 0; i < orderAD_Column_IDs.length; i++)
|
for (int i = 0; i < orderAD_Column_IDs.length; i++)
|
||||||
{
|
{
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Order AD_Column_ID=" + orderAD_Column_IDs[i]);
|
||||||
log.finest("Order AD_Column_ID=" + orderAD_Column_IDs[i]);
|
|
||||||
orderColumns.add(""); // initial value overwritten with fully qualified name
|
orderColumns.add(""); // initial value overwritten with fully qualified name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -627,8 +626,7 @@ public class DataEngine
|
||||||
if (columns.size() == 0)
|
if (columns.size() == 0)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "No Colums - Delete Report Format " + reportName + " and start again");
|
log.log(Level.SEVERE, "No Colums - Delete Report Format " + reportName + " and start again");
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("No Colums - SQL=" + sql + " - ID=" + format.get_ID());
|
||||||
log.finest("No Colums - SQL=" + sql + " - ID=" + format.get_ID());
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -629,16 +629,14 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
if (isYspaceFor(m_maxHeightSinceNewLine[m_area]))
|
if (isYspaceFor(m_maxHeightSinceNewLine[m_area]))
|
||||||
{
|
{
|
||||||
m_position[m_area].setLocation(xPos, m_position[m_area].y + m_maxHeightSinceNewLine[m_area]);
|
m_position[m_area].setLocation(xPos, m_position[m_area].y + m_maxHeightSinceNewLine[m_area]);
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
||||||
log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
|
||||||
}
|
}
|
||||||
else if (m_area == AREA_CONTENT)
|
else if (m_area == AREA_CONTENT)
|
||||||
{
|
{
|
||||||
log.finest("Not enough Y space "
|
if (log.isLoggable(Level.FINEST)) log.finest("Not enough Y space "
|
||||||
+ m_lastHeight[m_area] + " - remaining " + getYspace() + " - Area=" + m_area);
|
+ m_lastHeight[m_area] + " - remaining " + getYspace() + " - Area=" + m_area);
|
||||||
newPage(true, false);
|
newPage(true, false);
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
||||||
log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
|
||||||
}
|
}
|
||||||
else // footer/header
|
else // footer/header
|
||||||
{
|
{
|
||||||
|
@ -777,8 +775,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
else if (m_area == AREA_FOOTER)
|
else if (m_area == AREA_FOOTER)
|
||||||
part = m_footer;
|
part = m_footer;
|
||||||
m_position[m_area].setLocation(part.x + p.getX(), part.y + p.getY());
|
m_position[m_area].setLocation(part.x + p.getX(), part.y + p.getY());
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
||||||
log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
|
||||||
} // setPosition
|
} // setPosition
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -807,8 +804,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
protected void setX (float x)
|
protected void setX (float x)
|
||||||
{
|
{
|
||||||
m_position[m_area].x = x;
|
m_position[m_area].x = x;
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
||||||
log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
|
||||||
} // setX
|
} // setX
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -820,8 +816,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
if (xOffset == 0f)
|
if (xOffset == 0f)
|
||||||
return;
|
return;
|
||||||
m_position[m_area].x += xOffset;
|
m_position[m_area].x += xOffset;
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
||||||
log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
|
||||||
} // addX
|
} // addX
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -840,8 +835,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
protected void setY (int y)
|
protected void setY (int y)
|
||||||
{
|
{
|
||||||
m_position[m_area].y = y;
|
m_position[m_area].y = y;
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
||||||
log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
|
||||||
} // setY
|
} // setY
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -855,16 +849,14 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
if (isYspaceFor(yOffset))
|
if (isYspaceFor(yOffset))
|
||||||
{
|
{
|
||||||
m_position[m_area].y += yOffset;
|
m_position[m_area].y += yOffset;
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
||||||
log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
|
||||||
}
|
}
|
||||||
else if (m_area == AREA_CONTENT)
|
else if (m_area == AREA_CONTENT)
|
||||||
{
|
{
|
||||||
log.finest("Not enough Y space "
|
if (log.isLoggable(Level.FINEST)) log.finest("Not enough Y space "
|
||||||
+ m_lastHeight[m_area] + " - remaining " + getYspace() + " - Area=" + m_area);
|
+ m_lastHeight[m_area] + " - remaining " + getYspace() + " - Area=" + m_area);
|
||||||
newPage(true, true);
|
newPage(true, true);
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
||||||
log.finest("Page=" + m_pageNo + " [" + m_area + "] " + m_position[m_area].x + "/" + m_position[m_area].y);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1164,15 +1156,13 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
{
|
{
|
||||||
if (!isXspaceFor(m_lastWidth[m_area]))
|
if (!isXspaceFor(m_lastWidth[m_area]))
|
||||||
{
|
{
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Not enough X space for "
|
||||||
log.finest("Not enough X space for "
|
|
||||||
+ m_lastWidth[m_area] + " - remaining " + getXspace() + " - Area=" + m_area);
|
+ m_lastWidth[m_area] + " - remaining " + getXspace() + " - Area=" + m_area);
|
||||||
newLine ();
|
newLine ();
|
||||||
}
|
}
|
||||||
if (m_area == AREA_CONTENT && !isYspaceFor(m_lastHeight[m_area]))
|
if (m_area == AREA_CONTENT && !isYspaceFor(m_lastHeight[m_area]))
|
||||||
{
|
{
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Not enough Y space "
|
||||||
log.finest("Not enough Y space "
|
|
||||||
+ m_lastHeight[m_area] + " - remaining " + getYspace() + " - Area=" + m_area);
|
+ m_lastHeight[m_area] + " - remaining " + getYspace() + " - Area=" + m_area);
|
||||||
newPage (true, true);
|
newPage (true, true);
|
||||||
}
|
}
|
||||||
|
@ -1284,15 +1274,13 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
|
|
||||||
if (!isXspaceFor(m_lastWidth[m_area]))
|
if (!isXspaceFor(m_lastWidth[m_area]))
|
||||||
{
|
{
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Not enough X space for "
|
||||||
log.finest("Not enough X space for "
|
|
||||||
+ m_lastWidth[m_area] + " - remaining " + getXspace() + " - Area=" + m_area);
|
+ m_lastWidth[m_area] + " - remaining " + getXspace() + " - Area=" + m_area);
|
||||||
newLine ();
|
newLine ();
|
||||||
}
|
}
|
||||||
if (m_area == AREA_CONTENT && !isYspaceFor(m_lastHeight[m_area]))
|
if (m_area == AREA_CONTENT && !isYspaceFor(m_lastHeight[m_area]))
|
||||||
{
|
{
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest("Not enough Y space "
|
||||||
log.finest("Not enough Y space "
|
|
||||||
+ m_lastHeight[m_area] + " - remaining " + getYspace() + " - Area=" + m_area);
|
+ m_lastHeight[m_area] + " - remaining " + getYspace() + " - Area=" + m_area);
|
||||||
newPage (true, false);
|
newPage (true, false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,6 @@ import java.util.logging.Level;
|
||||||
|
|
||||||
import org.compiere.model.MQuery;
|
import org.compiere.model.MQuery;
|
||||||
import org.compiere.print.MPrintFormatItem;
|
import org.compiere.print.MPrintFormatItem;
|
||||||
import org.compiere.util.CLogMgt;
|
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -277,8 +276,7 @@ public abstract class PrintElement implements ImageObserver, Serializable
|
||||||
{
|
{
|
||||||
// copied from java.awt.component
|
// copied from java.awt.component
|
||||||
m_imageNotLoaded = (infoflags & (ALLBITS|ABORT)) == 0;
|
m_imageNotLoaded = (infoflags & (ALLBITS|ABORT)) == 0;
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest("Flags=" + infoflags
|
||||||
log.finest("Flags=" + infoflags
|
|
||||||
+ ", x=" + x + ", y=" + y + ", width=" + width + ", height=" + height
|
+ ", x=" + x + ", y=" + y + ", width=" + width + ", height=" + height
|
||||||
+ " - NotLoaded=" + m_imageNotLoaded);
|
+ " - NotLoaded=" + m_imageNotLoaded);
|
||||||
return m_imageNotLoaded;
|
return m_imageNotLoaded;
|
||||||
|
|
|
@ -29,6 +29,7 @@ import java.text.AttributedCharacterIterator;
|
||||||
import java.text.AttributedString;
|
import java.text.AttributedString;
|
||||||
import java.text.CharacterIterator;
|
import java.text.CharacterIterator;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
import java.util.logging.Level;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import org.compiere.model.MQuery;
|
import org.compiere.model.MQuery;
|
||||||
|
@ -65,7 +66,7 @@ public class StringElement extends PrintElement
|
||||||
public StringElement (String inText, Font font, Paint paint, NamePair ID, boolean translateText)
|
public StringElement (String inText, Font font, Paint paint, NamePair ID, boolean translateText)
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
log.finest("Text=" + inText + ", ID=" + ID + ", Translate=" + translateText);
|
if (log.isLoggable(Level.FINEST)) log.finest("Text=" + inText + ", ID=" + ID + ", Translate=" + translateText);
|
||||||
m_font = font;
|
m_font = font;
|
||||||
m_paint = paint;
|
m_paint = paint;
|
||||||
if (translateText)
|
if (translateText)
|
||||||
|
@ -88,7 +89,7 @@ public class StringElement extends PrintElement
|
||||||
m_string_paper[i] = new AttributedString(line);
|
m_string_paper[i] = new AttributedString(line);
|
||||||
if (line.length() == 0)
|
if (line.length() == 0)
|
||||||
continue;
|
continue;
|
||||||
log.finest(" - line=" + i + " - " + line);
|
if (log.isLoggable(Level.FINEST)) log.finest(" - line=" + i + " - " + line);
|
||||||
m_string_paper[i].addAttribute(TextAttribute.FONT, font);
|
m_string_paper[i].addAttribute(TextAttribute.FONT, font);
|
||||||
m_string_paper[i].addAttribute(TextAttribute.FOREGROUND, paint);
|
m_string_paper[i].addAttribute(TextAttribute.FOREGROUND, paint);
|
||||||
if (m_ID != null && i == 0) // first line only - create special Attributed String
|
if (m_ID != null && i == 0) // first line only - create special Attributed String
|
||||||
|
@ -131,7 +132,7 @@ public class StringElement extends PrintElement
|
||||||
public StringElement (Object content, Font font, Paint paint, NamePair ID, String label, String labelSuffix)
|
public StringElement (Object content, Font font, Paint paint, NamePair ID, String label, String labelSuffix)
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
log.finest("Label=" + label + "|" + labelSuffix
|
if (log.isLoggable(Level.FINEST)) log.finest("Label=" + label + "|" + labelSuffix
|
||||||
+ ", Content=" + content + ", ID=" + ID);
|
+ ", Content=" + content + ", ID=" + ID);
|
||||||
m_font = font;
|
m_font = font;
|
||||||
m_paint = paint;
|
m_paint = paint;
|
||||||
|
@ -163,7 +164,7 @@ public class StringElement extends PrintElement
|
||||||
m_string_paper[i] = new AttributedString(line);
|
m_string_paper[i] = new AttributedString(line);
|
||||||
if (line.length() == 0)
|
if (line.length() == 0)
|
||||||
continue;
|
continue;
|
||||||
log.finest(" - line=" + i + " - " + line);
|
if (log.isLoggable(Level.FINEST)) log.finest(" - line=" + i + " - " + line);
|
||||||
m_string_paper[i].addAttribute(TextAttribute.FONT, font);
|
m_string_paper[i].addAttribute(TextAttribute.FONT, font);
|
||||||
m_string_paper[i].addAttribute(TextAttribute.FOREGROUND, paint);
|
m_string_paper[i].addAttribute(TextAttribute.FOREGROUND, paint);
|
||||||
if (m_ID != null && i == 0) // first line only - create special Attributed String
|
if (m_ID != null && i == 0) // first line only - create special Attributed String
|
||||||
|
|
|
@ -308,7 +308,7 @@ public class TableElement extends PrintElement
|
||||||
if (m_additionalLines.containsKey(new Integer(dataCol)))
|
if (m_additionalLines.containsKey(new Integer(dataCol)))
|
||||||
{
|
{
|
||||||
col = ((Integer)m_additionalLines.get(new Integer(dataCol))).intValue();
|
col = ((Integer)m_additionalLines.get(new Integer(dataCol))).intValue();
|
||||||
log.finest("DataColumn=" + dataCol + ", BelowColumn=" + col);
|
if (log.isLoggable(Level.FINEST)) log.finest("DataColumn=" + dataCol + ", BelowColumn=" + col);
|
||||||
}
|
}
|
||||||
float colWidth = 0;
|
float colWidth = 0;
|
||||||
for (int row = 0; row < rows; row++)
|
for (int row = 0; row < rows; row++)
|
||||||
|
@ -538,14 +538,14 @@ public class TableElement extends PrintElement
|
||||||
{
|
{
|
||||||
if (origWidth.compareTo(new Float(colWidth)) >= 0)
|
if (origWidth.compareTo(new Float(colWidth)) >= 0)
|
||||||
{
|
{
|
||||||
log.finest("Same Width - Col=" + col
|
if (log.isLoggable(Level.FINEST)) log.finest("Same Width - Col=" + col
|
||||||
+ " - OrigWidth=" + origWidth + " - Width=" + colWidth + " - Total=" + p_width);
|
+ " - OrigWidth=" + origWidth + " - Width=" + colWidth + " - Total=" + p_width);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_columnWidths.set(col, new Float(colWidth));
|
m_columnWidths.set(col, new Float(colWidth));
|
||||||
p_width += (colWidth - origWidth.floatValue());
|
p_width += (colWidth - origWidth.floatValue());
|
||||||
log.finest("New Width - Col=" + col
|
if (log.isLoggable(Level.FINEST)) log.finest("New Width - Col=" + col
|
||||||
+ " - OrigWidth=" + origWidth + " - Width=" + colWidth + " - Total=" + p_width);
|
+ " - OrigWidth=" + origWidth + " - Width=" + colWidth + " - Total=" + p_width);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -555,7 +555,7 @@ public class TableElement extends PrintElement
|
||||||
{
|
{
|
||||||
m_columnWidths.add(new Float(colWidth));
|
m_columnWidths.add(new Float(colWidth));
|
||||||
p_width += colWidth;
|
p_width += colWidth;
|
||||||
log.finest("Width - Col=" + dataCol
|
if (log.isLoggable(Level.FINEST)) log.finest("Width - Col=" + dataCol
|
||||||
+ " - Width=" + colWidth + " - Total=" + p_width);
|
+ " - Width=" + colWidth + " - Total=" + p_width);
|
||||||
}
|
}
|
||||||
} // for all columns
|
} // for all columns
|
||||||
|
@ -595,7 +595,7 @@ public class TableElement extends PrintElement
|
||||||
// One Page on Y | Axis
|
// One Page on Y | Axis
|
||||||
if (m_firstPage.height >= p_height && m_pageBreak.size() == 0)
|
if (m_firstPage.height >= p_height && m_pageBreak.size() == 0)
|
||||||
{
|
{
|
||||||
log.finest("Page Y=1 - PageHeight=" + m_firstPage.height + " - TableHeight=" + p_height);
|
if (log.isLoggable(Level.FINEST)) log.finest("Page Y=1 - PageHeight=" + m_firstPage.height + " - TableHeight=" + p_height);
|
||||||
m_firstRowOnPage.add(new Integer(0)); // Y
|
m_firstRowOnPage.add(new Integer(0)); // Y
|
||||||
m_pageHeight.add(new Float(p_height)); // Y index only
|
m_pageHeight.add(new Float(p_height)); // Y index only
|
||||||
}
|
}
|
||||||
|
@ -623,7 +623,7 @@ public class TableElement extends PrintElement
|
||||||
{
|
{
|
||||||
if (availableHeight > 40 && rowHeight > 40)
|
if (availableHeight > 40 && rowHeight > 40)
|
||||||
{
|
{
|
||||||
log.finest("- Split (leave on current) Row=" + dataRow
|
if (log.isLoggable(Level.FINEST)) log.finest("- Split (leave on current) Row=" + dataRow
|
||||||
+ " - Available=" + availableHeight + ", RowHeight=" + rowHeight);
|
+ " - Available=" + availableHeight + ", RowHeight=" + rowHeight);
|
||||||
// if (splitRow (dataRow))
|
// if (splitRow (dataRow))
|
||||||
// addlRows += 1;
|
// addlRows += 1;
|
||||||
|
@ -638,10 +638,10 @@ public class TableElement extends PrintElement
|
||||||
if (!firstPage)
|
if (!firstPage)
|
||||||
{
|
{
|
||||||
m_pageHeight.add(new Float(usedHeight)); // Y index only
|
m_pageHeight.add(new Float(usedHeight)); // Y index only
|
||||||
log.finest("Page Y=" + m_pageHeight.size()
|
if (log.isLoggable(Level.FINEST)) log.finest("Page Y=" + m_pageHeight.size()
|
||||||
+ " - PageHeight=" + usedHeight);
|
+ " - PageHeight=" + usedHeight);
|
||||||
}
|
}
|
||||||
log.finest("Page Y=" + m_firstRowOnPage.size()
|
if (log.isLoggable(Level.FINEST)) log.finest("Page Y=" + m_firstRowOnPage.size()
|
||||||
+ " - Row=" + dataRow + " - force=" + isPageBreak(dataRow));
|
+ " - Row=" + dataRow + " - force=" + isPageBreak(dataRow));
|
||||||
firstPage = false;
|
firstPage = false;
|
||||||
//
|
//
|
||||||
|
@ -652,23 +652,23 @@ public class TableElement extends PrintElement
|
||||||
usedHeight += rowHeight;
|
usedHeight += rowHeight;
|
||||||
if (availableHeight < 0)
|
if (availableHeight < 0)
|
||||||
{
|
{
|
||||||
log.finest("- Split (move to next) Row=" + dataRow
|
if (log.isLoggable(Level.FINEST)) log.finest("- Split (move to next) Row=" + dataRow
|
||||||
+ " - Available=" + availableHeight + ", RowHeight=" + rowHeight);
|
+ " - Available=" + availableHeight + ", RowHeight=" + rowHeight);
|
||||||
|
|
||||||
}
|
}
|
||||||
log.finest("Page Y=" + m_pageHeight.size()
|
if (log.isLoggable(Level.FINEST)) log.finest("Page Y=" + m_pageHeight.size()
|
||||||
+ ", Row=" + dataRow + ",AddlRows=" + addlRows + ", Height=" + rowHeight
|
+ ", Row=" + dataRow + ",AddlRows=" + addlRows + ", Height=" + rowHeight
|
||||||
+ " - Available=" + availableHeight + ", Used=" + usedHeight);
|
+ " - Available=" + availableHeight + ", Used=" + usedHeight);
|
||||||
} // for all rows
|
} // for all rows
|
||||||
m_pageHeight.add(new Float(usedHeight)); // Y index only
|
m_pageHeight.add(new Float(usedHeight)); // Y index only
|
||||||
log.finest("Page Y=" + m_pageHeight.size()
|
if (log.isLoggable(Level.FINEST)) log.finest("Page Y=" + m_pageHeight.size()
|
||||||
+ " - PageHeight=" + usedHeight);
|
+ " - PageHeight=" + usedHeight);
|
||||||
} // multiple Y | pages
|
} // multiple Y | pages
|
||||||
|
|
||||||
// One page on - X Axis
|
// One page on - X Axis
|
||||||
if (m_firstPage.width >= p_width)
|
if (m_firstPage.width >= p_width)
|
||||||
{
|
{
|
||||||
log.finest("Page X=1 - PageWidth=" + m_firstPage.width
|
if (log.isLoggable(Level.FINEST)) log.finest("Page X=1 - PageWidth=" + m_firstPage.width
|
||||||
+ " - TableWidth=" + p_width);
|
+ " - TableWidth=" + p_width);
|
||||||
m_firstColumnOnPage.add(new Integer(0)); // X
|
m_firstColumnOnPage.add(new Integer(0)); // X
|
||||||
//
|
//
|
||||||
|
@ -689,7 +689,7 @@ public class TableElement extends PrintElement
|
||||||
distributeColumns (availableWidth, lastStart, col);
|
distributeColumns (availableWidth, lastStart, col);
|
||||||
//
|
//
|
||||||
m_firstColumnOnPage.add(new Integer(col)); // X
|
m_firstColumnOnPage.add(new Integer(col)); // X
|
||||||
log.finest("Page X=" + m_firstColumnOnPage.size()
|
if (log.isLoggable(Level.FINEST)) log.finest("Page X=" + m_firstColumnOnPage.size()
|
||||||
+ " - Col=" + col);
|
+ " - Col=" + col);
|
||||||
lastStart = col;
|
lastStart = col;
|
||||||
availableWidth = m_firstPage.width; // Width is the same on all pages
|
availableWidth = m_firstPage.width; // Width is the same on all pages
|
||||||
|
@ -722,7 +722,7 @@ public class TableElement extends PrintElement
|
||||||
*/
|
*/
|
||||||
private void distributeColumns (int availableWidth, int fromCol, int toCol)
|
private void distributeColumns (int availableWidth, int fromCol, int toCol)
|
||||||
{
|
{
|
||||||
log.finest("Available=" + availableWidth + ", Columns " + fromCol + "->" + toCol);
|
if (log.isLoggable(Level.FINEST)) log.finest("Available=" + availableWidth + ", Columns " + fromCol + "->" + toCol);
|
||||||
int start = fromCol;
|
int start = fromCol;
|
||||||
if (fromCol == 0 && m_repeatedColumns > 0)
|
if (fromCol == 0 && m_repeatedColumns > 0)
|
||||||
start = m_repeatedColumns;
|
start = m_repeatedColumns;
|
||||||
|
@ -734,7 +734,7 @@ public class TableElement extends PrintElement
|
||||||
// distribute proportionally (does not increase zero width columns)
|
// distribute proportionally (does not increase zero width columns)
|
||||||
for (int x = 0; remainingWidth > 0 && x < 5; x++) // max 4 iterations
|
for (int x = 0; remainingWidth > 0 && x < 5; x++) // max 4 iterations
|
||||||
{
|
{
|
||||||
log.finest("TotalWidth=" + totalWidth + ", Remaining=" + remainingWidth);
|
if (log.isLoggable(Level.FINEST)) log.finest("TotalWidth=" + totalWidth + ", Remaining=" + remainingWidth);
|
||||||
for (int col = start; col < toCol && remainingWidth != 0; col++)
|
for (int col = start; col < toCol && remainingWidth != 0; col++)
|
||||||
{
|
{
|
||||||
int columnWidth = ((Float)m_columnWidths.get(col)).intValue();
|
int columnWidth = ((Float)m_columnWidths.get(col)).intValue();
|
||||||
|
@ -751,7 +751,7 @@ public class TableElement extends PrintElement
|
||||||
m_columnWidths.set(col, new Float(columnWidth+additionalPart));
|
m_columnWidths.set(col, new Float(columnWidth+additionalPart));
|
||||||
remainingWidth -= additionalPart;
|
remainingWidth -= additionalPart;
|
||||||
}
|
}
|
||||||
log.finest(" col=" + col + " - From " + columnWidth + " to " + m_columnWidths.get(col));
|
if (log.isLoggable(Level.FINEST)) log.finest(" col=" + col + " - From " + columnWidth + " to " + m_columnWidths.get(col));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -762,7 +762,7 @@ public class TableElement extends PrintElement
|
||||||
if (columnWidth > 0)
|
if (columnWidth > 0)
|
||||||
{
|
{
|
||||||
m_columnWidths.set(c, new Float(columnWidth+remainingWidth));
|
m_columnWidths.set(c, new Float(columnWidth+remainingWidth));
|
||||||
log.finest("Final col=" + c + " - From " + columnWidth + " to " + m_columnWidths.get(c));
|
if (log.isLoggable(Level.FINEST)) log.finest("Final col=" + c + " - From " + columnWidth + " to " + m_columnWidths.get(c));
|
||||||
remainingWidth = 0;
|
remainingWidth = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1201,7 +1201,7 @@ public class TableElement extends PrintElement
|
||||||
if (pageYindex+1 < m_firstRowOnPage.size())
|
if (pageYindex+1 < m_firstRowOnPage.size())
|
||||||
nextPageRow = ((Integer)m_firstRowOnPage.get(pageYindex+1)).intValue();
|
nextPageRow = ((Integer)m_firstRowOnPage.get(pageYindex+1)).intValue();
|
||||||
if (DEBUG_PRINT)
|
if (DEBUG_PRINT)
|
||||||
log.finest("Col=" + firstColumn + "-" + (nextPageColumn-1)
|
if (log.isLoggable(Level.FINEST)) log.finest("Col=" + firstColumn + "-" + (nextPageColumn-1)
|
||||||
+ ", Row=" + firstRow + "-" + (nextPageRow-1));
|
+ ", Row=" + firstRow + "-" + (nextPageRow-1));
|
||||||
|
|
||||||
// Top Left
|
// Top Left
|
||||||
|
@ -1211,7 +1211,7 @@ public class TableElement extends PrintElement
|
||||||
startX += pageXindex == 0 ? m_firstPage.x : m_nextPages.x;
|
startX += pageXindex == 0 ? m_firstPage.x : m_nextPages.x;
|
||||||
startY += pageYindex == 0 ? m_firstPage.y : m_nextPages.y;
|
startY += pageYindex == 0 ? m_firstPage.y : m_nextPages.y;
|
||||||
if (DEBUG_PRINT)
|
if (DEBUG_PRINT)
|
||||||
log.finest("PageStart=" + pageStart + ", StartTable x=" + startX + ", y=" + startY);
|
if (log.isLoggable(Level.FINEST)) log.finest("PageStart=" + pageStart + ", StartTable x=" + startX + ", y=" + startY);
|
||||||
|
|
||||||
// paint first fixed volumns
|
// paint first fixed volumns
|
||||||
boolean firstColumnPrint = true;
|
boolean firstColumnPrint = true;
|
||||||
|
|
|
@ -306,7 +306,7 @@ public class ServerProcessCtl implements Runnable {
|
||||||
if (server != null)
|
if (server != null)
|
||||||
{ // See ServerBean
|
{ // See ServerBean
|
||||||
m_pi = server.workflow (Env.getRemoteCallCtx(Env.getCtx()), m_pi, AD_Workflow_ID);
|
m_pi = server.workflow (Env.getRemoteCallCtx(Env.getCtx()), m_pi, AD_Workflow_ID);
|
||||||
log.finest("server => " + m_pi);
|
if (log.isLoggable(Level.FINEST)) log.finest("server => " + m_pi);
|
||||||
started = true;
|
started = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -360,7 +360,7 @@ public class ServerProcessCtl implements Runnable {
|
||||||
{
|
{
|
||||||
// See ServerBean
|
// See ServerBean
|
||||||
m_pi = server.process (Env.getRemoteCallCtx(Env.getCtx()), m_pi);
|
m_pi = server.process (Env.getRemoteCallCtx(Env.getCtx()), m_pi);
|
||||||
log.finest("server => " + m_pi);
|
if (log.isLoggable(Level.FINEST)) log.finest("server => " + m_pi);
|
||||||
started = true;
|
started = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -421,7 +421,7 @@ public class ServerProcessCtl implements Runnable {
|
||||||
if (server != null)
|
if (server != null)
|
||||||
{ // See ServerBean
|
{ // See ServerBean
|
||||||
m_pi = server.dbProcess(Env.getRemoteCallCtx(Env.getCtx()), m_pi, ProcedureName);
|
m_pi = server.dbProcess(Env.getRemoteCallCtx(Env.getCtx()), m_pi, ProcedureName);
|
||||||
log.finest("server => " + m_pi);
|
if (log.isLoggable(Level.FINEST)) log.finest("server => " + m_pi);
|
||||||
started = true;
|
started = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -470,7 +470,7 @@ public class FinReport extends SvrProcess
|
||||||
|
|
||||||
// Parameter Where
|
// Parameter Where
|
||||||
select.append(m_parameterWhere);
|
select.append(m_parameterWhere);
|
||||||
log.finest("Line=" + line + ",Col=" + line + ": " + select);
|
if (log.isLoggable(Level.FINEST)) log.finest("Line=" + line + ",Col=" + line + ": " + select);
|
||||||
|
|
||||||
// Update SET portion
|
// Update SET portion
|
||||||
if (update.length() > 0)
|
if (update.length() > 0)
|
||||||
|
@ -478,7 +478,7 @@ public class FinReport extends SvrProcess
|
||||||
update.append("Col_").append(col)
|
update.append("Col_").append(col)
|
||||||
.append(" = (").append(select).append(")");
|
.append(" = (").append(select).append(")");
|
||||||
//
|
//
|
||||||
log.finest(info.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(info.toString());
|
||||||
}
|
}
|
||||||
// Update Line Values
|
// Update Line Values
|
||||||
if (update.length() > 0)
|
if (update.length() > 0)
|
||||||
|
@ -490,7 +490,7 @@ public class FinReport extends SvrProcess
|
||||||
int no = DB.executeUpdate(update.toString(), get_TrxName());
|
int no = DB.executeUpdate(update.toString(), get_TrxName());
|
||||||
if (no != 1)
|
if (no != 1)
|
||||||
log.log(Level.SEVERE, "#=" + no + " for " + update);
|
log.log(Level.SEVERE, "#=" + no + " for " + update);
|
||||||
log.finest(update.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(update.toString());
|
||||||
}
|
}
|
||||||
} // insertLine
|
} // insertLine
|
||||||
|
|
||||||
|
@ -553,7 +553,7 @@ public class FinReport extends SvrProcess
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
log.fine("(+) Line=" + line + " - " + m_lines[line]);
|
log.fine("(+) Line=" + line + " - " + m_lines[line]);
|
||||||
log.finest ("(+) " + sb.toString ());
|
if (log.isLoggable(Level.FINEST)) log.finest ("(+) " + sb.toString ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else // No Add (subtract, percent)
|
else // No Add (subtract, percent)
|
||||||
|
@ -629,7 +629,7 @@ public class FinReport extends SvrProcess
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
log.fine("(x) Line=" + line + " - " + m_lines[line]);
|
log.fine("(x) Line=" + line + " - " + m_lines[line]);
|
||||||
log.finest (sb.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest (sb.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // for all lines
|
} // for all lines
|
||||||
|
@ -705,7 +705,7 @@ public class FinReport extends SvrProcess
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
log.fine("Col=" + col + " - " + m_columns[col]);
|
log.fine("Col=" + col + " - " + m_columns[col]);
|
||||||
log.finest (sb.toString ());
|
if (log.isLoggable(Level.FINEST)) log.finest (sb.toString ());
|
||||||
}
|
}
|
||||||
} // for all columns
|
} // for all columns
|
||||||
|
|
||||||
|
@ -719,7 +719,7 @@ public class FinReport extends SvrProcess
|
||||||
*/
|
*/
|
||||||
private String getLineIDs (int fromID, int toID)
|
private String getLineIDs (int fromID, int toID)
|
||||||
{
|
{
|
||||||
log.finest("From=" + fromID + " To=" + toID);
|
if (log.isLoggable(Level.FINEST)) log.finest("From=" + fromID + " To=" + toID);
|
||||||
int firstPA_ReportLine_ID = 0;
|
int firstPA_ReportLine_ID = 0;
|
||||||
int lastPA_ReportLine_ID = 0;
|
int lastPA_ReportLine_ID = 0;
|
||||||
|
|
||||||
|
@ -745,7 +745,7 @@ public class FinReport extends SvrProcess
|
||||||
for (int line = 0; line < m_lines.length; line++)
|
for (int line = 0; line < m_lines.length; line++)
|
||||||
{
|
{
|
||||||
int PA_ReportLine_ID = m_lines[line].getPA_ReportLine_ID();
|
int PA_ReportLine_ID = m_lines[line].getPA_ReportLine_ID();
|
||||||
log.finest("Add=" + addToList
|
if (log.isLoggable(Level.FINEST)) log.finest("Add=" + addToList
|
||||||
+ " ID=" + PA_ReportLine_ID + " - " + m_lines[line]);
|
+ " ID=" + PA_ReportLine_ID + " - " + m_lines[line]);
|
||||||
if (addToList)
|
if (addToList)
|
||||||
{
|
{
|
||||||
|
@ -1114,7 +1114,7 @@ public class FinReport extends SvrProcess
|
||||||
// }
|
// }
|
||||||
|
|
||||||
int no = DB.executeUpdate(insert.toString(), get_TrxName());
|
int no = DB.executeUpdate(insert.toString(), get_TrxName());
|
||||||
log.finest("Trx #=" + no + " - " + insert);
|
if (log.isLoggable(Level.FINEST)) log.finest("Trx #=" + no + " - " + insert);
|
||||||
if (no == 0)
|
if (no == 0)
|
||||||
return;
|
return;
|
||||||
} // insertLineTrx
|
} // insertLineTrx
|
||||||
|
|
|
@ -317,7 +317,7 @@ public class FinStatement extends SvrProcess
|
||||||
//
|
//
|
||||||
int no = DB.executeUpdate(sb.toString(), get_TrxName());
|
int no = DB.executeUpdate(sb.toString(), get_TrxName());
|
||||||
log.fine("#" + no + " (Account_ID=" + p_Account_ID + ")");
|
log.fine("#" + no + " (Account_ID=" + p_Account_ID + ")");
|
||||||
log.finest(sb.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(sb.toString());
|
||||||
} // createBalanceLine
|
} // createBalanceLine
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -339,7 +339,7 @@ public class FinStatement extends SvrProcess
|
||||||
//
|
//
|
||||||
int no = DB.executeUpdate(sb.toString(), get_TrxName());
|
int no = DB.executeUpdate(sb.toString(), get_TrxName());
|
||||||
log.fine("#" + no);
|
log.fine("#" + no);
|
||||||
log.finest(sb.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(sb.toString());
|
||||||
|
|
||||||
// Set Name,Description
|
// Set Name,Description
|
||||||
String sql_select;
|
String sql_select;
|
||||||
|
@ -365,7 +365,7 @@ public class FinStatement extends SvrProcess
|
||||||
//
|
//
|
||||||
no = DB.executeUpdate(sb.toString(), get_TrxName());
|
no = DB.executeUpdate(sb.toString(), get_TrxName());
|
||||||
log.fine("Name #" + no);
|
log.fine("Name #" + no);
|
||||||
log.finest("Name - " + sb);
|
if (log.isLoggable(Level.FINEST)) log.finest("Name - " + sb);
|
||||||
|
|
||||||
} // createDetailLines
|
} // createDetailLines
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ public class MReportColumnSet extends X_PA_ReportColumnSet
|
||||||
//
|
//
|
||||||
m_columns = new MReportColumn[list.size()];
|
m_columns = new MReportColumn[list.size()];
|
||||||
list.toArray(m_columns);
|
list.toArray(m_columns);
|
||||||
log.finest("ID=" + getPA_ReportColumnSet_ID()
|
if (log.isLoggable(Level.FINEST)) log.finest("ID=" + getPA_ReportColumnSet_ID()
|
||||||
+ " - Size=" + list.size());
|
+ " - Size=" + list.size());
|
||||||
} // loadColumns
|
} // loadColumns
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ public class MReportLine extends X_PA_ReportLine
|
||||||
//
|
//
|
||||||
m_sources = new MReportSource[list.size()];
|
m_sources = new MReportSource[list.size()];
|
||||||
list.toArray(m_sources);
|
list.toArray(m_sources);
|
||||||
log.finest("ID=" + getPA_ReportLine_ID()
|
if (log.isLoggable(Level.FINEST)) log.finest("ID=" + getPA_ReportLine_ID()
|
||||||
+ " - Size=" + list.size());
|
+ " - Size=" + list.size());
|
||||||
} // loadSources
|
} // loadSources
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ public class MReportLineSet extends X_PA_ReportLineSet
|
||||||
//
|
//
|
||||||
m_lines = new MReportLine[list.size()];
|
m_lines = new MReportLine[list.size()];
|
||||||
list.toArray(m_lines);
|
list.toArray(m_lines);
|
||||||
log.finest("ID=" + getPA_ReportLineSet_ID()
|
if (log.isLoggable(Level.FINEST)) log.finest("ID=" + getPA_ReportLineSet_ID()
|
||||||
+ " - Size=" + list.size());
|
+ " - Size=" + list.size());
|
||||||
} // loadColumns
|
} // loadColumns
|
||||||
|
|
||||||
|
|
|
@ -233,7 +233,7 @@ public class MReportTree
|
||||||
String ColumnName = MAcctSchemaElement.getColumnName(m_ElementType);
|
String ColumnName = MAcctSchemaElement.getColumnName(m_ElementType);
|
||||||
//
|
//
|
||||||
MTreeNode node = m_tree.getRoot().findNode(ID);
|
MTreeNode node = m_tree.getRoot().findNode(ID);
|
||||||
log.finest("Root=" + node);
|
if (log.isLoggable(Level.FINEST)) log.finest("Root=" + node);
|
||||||
//
|
//
|
||||||
StringBuffer result = null;
|
StringBuffer result = null;
|
||||||
if (node != null && node.isSummary ())
|
if (node != null && node.isSummary ())
|
||||||
|
@ -254,10 +254,10 @@ public class MReportTree
|
||||||
sb.append (ColumnName);
|
sb.append (ColumnName);
|
||||||
sb.append ('=');
|
sb.append ('=');
|
||||||
sb.append (nn.getNode_ID ());
|
sb.append (nn.getNode_ID ());
|
||||||
log.finest ("- " + nn);
|
if (log.isLoggable(Level.FINEST)) log.finest ("- " + nn);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
log.finest ("- skipped parent (" + nn + ")");
|
if (log.isLoggable(Level.FINEST)) log.finest ("- skipped parent (" + nn + ")");
|
||||||
}
|
}
|
||||||
result = new StringBuffer (" ( ");
|
result = new StringBuffer (" ( ");
|
||||||
result.append (sb);
|
result.append (sb);
|
||||||
|
@ -266,7 +266,7 @@ public class MReportTree
|
||||||
else // not found or not summary
|
else // not found or not summary
|
||||||
result = new StringBuffer (ColumnName).append("=").append(ID);
|
result = new StringBuffer (ColumnName).append("=").append(ID);
|
||||||
//
|
//
|
||||||
log.finest(result.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(result.toString());
|
||||||
return result.toString();
|
return result.toString();
|
||||||
} // getWhereClause
|
} // getWhereClause
|
||||||
|
|
||||||
|
@ -281,7 +281,7 @@ public class MReportTree
|
||||||
ArrayList<Integer> list = new ArrayList<Integer>();
|
ArrayList<Integer> list = new ArrayList<Integer>();
|
||||||
//
|
//
|
||||||
MTreeNode node = m_tree.getRoot().findNode(ID);
|
MTreeNode node = m_tree.getRoot().findNode(ID);
|
||||||
log.finest("Root=" + node);
|
if (log.isLoggable(Level.FINEST)) log.finest("Root=" + node);
|
||||||
//
|
//
|
||||||
if (node != null && node.isSummary())
|
if (node != null && node.isSummary())
|
||||||
{
|
{
|
||||||
|
@ -292,10 +292,10 @@ public class MReportTree
|
||||||
if (!nn.isSummary())
|
if (!nn.isSummary())
|
||||||
{
|
{
|
||||||
list.add(new Integer(nn.getNode_ID()));
|
list.add(new Integer(nn.getNode_ID()));
|
||||||
log.finest("- " + nn);
|
if (log.isLoggable(Level.FINEST)) log.finest("- " + nn);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
log.finest("- skipped parent (" + nn + ")");
|
if (log.isLoggable(Level.FINEST)) log.finest("- skipped parent (" + nn + ")");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else // not found or not summary
|
else // not found or not summary
|
||||||
|
|
|
@ -117,7 +117,7 @@ public class Secure implements SecureInterface
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
log.finest(hexString + " - " + e.getLocalizedMessage());
|
if (log.isLoggable(Level.FINEST)) log.finest(hexString + " - " + e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
} // convertToHexString
|
} // convertToHexString
|
||||||
|
|
|
@ -203,7 +203,7 @@ public class Trx
|
||||||
if (conn == null)
|
if (conn == null)
|
||||||
return;
|
return;
|
||||||
m_connection = conn;
|
m_connection = conn;
|
||||||
log.finest("Connection=" + conn);
|
if (log.isLoggable(Level.FINEST)) log.finest("Connection=" + conn);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_connection.setAutoCommit(false);
|
m_connection.setAutoCommit(false);
|
||||||
|
|
|
@ -318,7 +318,7 @@ public final class WebUtil
|
||||||
}
|
}
|
||||||
log.finest(parameter + "=" + data + " -> " + retValue + " == " + debug);
|
log.finest(parameter + "=" + data + " -> " + retValue + " == " + debug);
|
||||||
**/
|
**/
|
||||||
log.finest(parameter + "=" + data + " -> " + retValue);
|
if (log.isLoggable(Level.FINEST)) log.finest(parameter + "=" + data + " -> " + retValue);
|
||||||
return retValue;
|
return retValue;
|
||||||
} // getParameter
|
} // getParameter
|
||||||
|
|
||||||
|
|
|
@ -809,7 +809,7 @@ public class ConfigurationData
|
||||||
p_properties.setProperty("ADEMPIERE_DATE_VERSION", Adempiere.DATE_VERSION);
|
p_properties.setProperty("ADEMPIERE_DATE_VERSION", Adempiere.DATE_VERSION);
|
||||||
p_properties.setProperty("ADEMPIERE_DB_VERSION", Adempiere.DB_VERSION);
|
p_properties.setProperty("ADEMPIERE_DB_VERSION", Adempiere.DB_VERSION);
|
||||||
|
|
||||||
log.finest(p_properties.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(p_properties.toString());
|
||||||
|
|
||||||
// Before we save, load Ini
|
// Before we save, load Ini
|
||||||
Ini.setClient(false);
|
Ini.setClient(false);
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
package org.adempiere.server.rpl.imp;
|
package org.adempiere.server.rpl.imp;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import javax.jms.Connection;
|
||||||
import javax.jms.JMSException;
|
import javax.jms.JMSException;
|
||||||
|
@ -190,14 +191,14 @@ public class TopicListener implements MessageListener {
|
||||||
|
|
||||||
public void run() throws JMSException {
|
public void run() throws JMSException {
|
||||||
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory( url );
|
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory( url );
|
||||||
log.finest("ActiveMQConnectionFactory = " + factory);
|
if (log.isLoggable(Level.FINEST)) log.finest("ActiveMQConnectionFactory = " + factory);
|
||||||
|
|
||||||
if (userName !=null && password !=null) {
|
if (userName !=null && password !=null) {
|
||||||
conn = factory.createConnection(userName, password);
|
conn = factory.createConnection(userName, password);
|
||||||
} else {
|
} else {
|
||||||
conn = factory.createConnection();
|
conn = factory.createConnection();
|
||||||
}
|
}
|
||||||
log.finest("conn = " + conn );
|
if (log.isLoggable(Level.FINEST)) log.finest("conn = " + conn );
|
||||||
|
|
||||||
if (conn.getClientID()==null)
|
if (conn.getClientID()==null)
|
||||||
{
|
{
|
||||||
|
@ -233,13 +234,14 @@ public class TopicListener implements MessageListener {
|
||||||
|
|
||||||
|
|
||||||
session = conn.createSession(true, Session.AUTO_ACKNOWLEDGE); // TODO - could be parameter
|
session = conn.createSession(true, Session.AUTO_ACKNOWLEDGE); // TODO - could be parameter
|
||||||
log.finest("session = " + session );
|
if (log.isLoggable(Level.FINEST)){
|
||||||
|
log.finest("session = " + session );
|
||||||
log.finest("topicName = " + topicName );
|
log.finest("topicName = " + topicName );
|
||||||
log.finest("subscriptionName = " + subscriptionName);
|
log.finest("subscriptionName = " + subscriptionName);
|
||||||
|
}
|
||||||
|
|
||||||
topic = session.createTopic( topicName );
|
topic = session.createTopic( topicName );
|
||||||
log.finest("topic = " + topic );
|
if (log.isLoggable(Level.FINEST)) log.finest("topic = " + topic );
|
||||||
|
|
||||||
MessageConsumer consumer = null;
|
MessageConsumer consumer = null;
|
||||||
if (isDurableSubscription) {
|
if (isDurableSubscription) {
|
||||||
|
@ -250,7 +252,7 @@ public class TopicListener implements MessageListener {
|
||||||
consumer = session.createConsumer( topic );
|
consumer = session.createConsumer( topic );
|
||||||
}
|
}
|
||||||
|
|
||||||
log.finest("consumer = " + consumer );
|
if (log.isLoggable(Level.FINEST)) log.finest("consumer = " + consumer );
|
||||||
|
|
||||||
consumer.setMessageListener( this );
|
consumer.setMessageListener( this );
|
||||||
|
|
||||||
|
@ -264,7 +266,7 @@ public class TopicListener implements MessageListener {
|
||||||
;
|
;
|
||||||
pLog.setReference( logReference.toString() );
|
pLog.setReference( logReference.toString() );
|
||||||
boolean resultSave = pLog.save();
|
boolean resultSave = pLog.save();
|
||||||
log.finest("Result Save = " + resultSave);
|
if (log.isLoggable(Level.FINEST)) log.finest("Result Save = " + resultSave);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -279,7 +281,7 @@ public class TopicListener implements MessageListener {
|
||||||
TextMessage txtMessage = (TextMessage) message;
|
TextMessage txtMessage = (TextMessage) message;
|
||||||
|
|
||||||
String text = txtMessage.getText();
|
String text = txtMessage.getText();
|
||||||
log.finest("Received message: \n" + text );
|
if (log.isLoggable(Level.FINEST)) log.finest("Received message: \n" + text );
|
||||||
|
|
||||||
Document documentToBeImported = XMLHelper.createDocumentFromString( text );
|
Document documentToBeImported = XMLHelper.createDocumentFromString( text );
|
||||||
StringBuffer result = new StringBuffer();
|
StringBuffer result = new StringBuffer();
|
||||||
|
@ -308,7 +310,7 @@ public class TopicListener implements MessageListener {
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
log.finest("Rollback = " + e.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest("Rollback = " + e.toString());
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
session.rollback();
|
session.rollback();
|
||||||
|
|
|
@ -35,6 +35,7 @@ import java.text.SimpleDateFormat;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.parsers.DocumentBuilder;
|
import javax.xml.parsers.DocumentBuilder;
|
||||||
import javax.xml.parsers.DocumentBuilderFactory;
|
import javax.xml.parsers.DocumentBuilderFactory;
|
||||||
|
@ -200,8 +201,10 @@ public class ExportHelper {
|
||||||
for (PO po : records)
|
for (PO po : records)
|
||||||
{
|
{
|
||||||
log.info("Client = " + client.toString());
|
log.info("Client = " + client.toString());
|
||||||
log.finest("po.getAD_Org_ID() = " + po.getAD_Org_ID());
|
if (log.isLoggable(Level.FINEST)){
|
||||||
log.finest("po.get_TrxName() = " + po.get_TrxName());
|
log.finest("po.getAD_Org_ID() = " + po.getAD_Org_ID());
|
||||||
|
log.finest("po.get_TrxName() = " + po.get_TrxName());
|
||||||
|
}
|
||||||
if (po.get_TrxName() == null || po.get_TrxName().equals("")) {
|
if (po.get_TrxName() == null || po.get_TrxName().equals("")) {
|
||||||
po.set_TrxName("exportRecord");
|
po.set_TrxName("exportRecord");
|
||||||
}
|
}
|
||||||
|
|
|
@ -376,10 +376,10 @@ public final class AdempierePLAF
|
||||||
if (lfInfo[i].getName().equals(org.adempiere.plaf.AdempiereLookAndFeel.NAME))
|
if (lfInfo[i].getName().equals(org.adempiere.plaf.AdempiereLookAndFeel.NAME))
|
||||||
{
|
{
|
||||||
s_defaultPLAF = vp;
|
s_defaultPLAF = vp;
|
||||||
log.finest(vp.getName() + " (default)");
|
if (log.isLoggable(Level.FINEST)) log.finest(vp.getName() + " (default)");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
log.finest(vp.getName());
|
if (log.isLoggable(Level.FINEST)) log.finest(vp.getName());
|
||||||
}
|
}
|
||||||
s_looks = new ValueNamePair[plafList.size()];
|
s_looks = new ValueNamePair[plafList.size()];
|
||||||
plafList.toArray(s_looks);
|
plafList.toArray(s_looks);
|
||||||
|
|
|
@ -281,7 +281,7 @@ public class InfoGeneral extends Info
|
||||||
log.log(Level.SEVERE, "No query columns found");
|
log.log(Level.SEVERE, "No query columns found");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
log.finest("Table " + tableName + ", ID=" + AD_Table_ID
|
if (log.isLoggable(Level.FINEST)) log.finest("Table " + tableName + ", ID=" + AD_Table_ID
|
||||||
+ ", QueryColumns #" + m_queryColumns.size());
|
+ ", QueryColumns #" + m_queryColumns.size());
|
||||||
// Only 4 Query Columns
|
// Only 4 Query Columns
|
||||||
while (m_queryColumns.size() > 4) {
|
while (m_queryColumns.size() > 4) {
|
||||||
|
@ -368,10 +368,10 @@ public class InfoGeneral extends Info
|
||||||
if (colClass != null)
|
if (colClass != null)
|
||||||
{
|
{
|
||||||
list.add(new Info_Column(Msg.translate(Env.getCtx(), columnName), colSql.toString(), colClass));
|
list.add(new Info_Column(Msg.translate(Env.getCtx(), columnName), colSql.toString(), colClass));
|
||||||
log.finest("Added Column=" + columnName);
|
if (log.isLoggable(Level.FINEST)) log.finest("Added Column=" + columnName);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
log.finest("Not Added Column=" + columnName);
|
if (log.isLoggable(Level.FINEST)) log.finest("Not Added Column=" + columnName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (SQLException e)
|
catch (SQLException e)
|
||||||
|
@ -389,7 +389,7 @@ public class InfoGeneral extends Info
|
||||||
log.log(Level.SEVERE, "No Info for AD_Table_ID=" + AD_Table_ID + " - " + sql);
|
log.log(Level.SEVERE, "No Info for AD_Table_ID=" + AD_Table_ID + " - " + sql);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
log.finest("InfoColumns #" + list.size());
|
if (log.isLoggable(Level.FINEST)) log.finest("InfoColumns #" + list.size());
|
||||||
|
|
||||||
// Convert ArrayList to Array
|
// Convert ArrayList to Array
|
||||||
m_generalLayout = new Info_Column[list.size()];
|
m_generalLayout = new Info_Column[list.size()];
|
||||||
|
|
|
@ -1390,7 +1390,7 @@ public class GridController extends CPanel
|
||||||
public void mouseClicked(MouseEvent e)
|
public void mouseClicked(MouseEvent e)
|
||||||
{
|
{
|
||||||
if (CLogMgt.isLevelFinest())
|
if (CLogMgt.isLevelFinest())
|
||||||
log.finest("" + this + " - " + e);
|
if (log.isLoggable(Level.FINEST)) log.finest("" + this + " - " + e);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Mouse Pressed
|
* Mouse Pressed
|
||||||
|
@ -1398,8 +1398,7 @@ public class GridController extends CPanel
|
||||||
*/
|
*/
|
||||||
public void mousePressed(MouseEvent e)
|
public void mousePressed(MouseEvent e)
|
||||||
{
|
{
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest("" + this + " - " + e);
|
||||||
log.finest("" + this + " - " + e);
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Mouse Released
|
* Mouse Released
|
||||||
|
@ -1407,8 +1406,7 @@ public class GridController extends CPanel
|
||||||
*/
|
*/
|
||||||
public void mouseReleased(MouseEvent e)
|
public void mouseReleased(MouseEvent e)
|
||||||
{
|
{
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest("" + this + " - " + e);
|
||||||
log.finest("" + this + " - " + e);
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Mouse Entered
|
* Mouse Entered
|
||||||
|
@ -1416,8 +1414,7 @@ public class GridController extends CPanel
|
||||||
*/
|
*/
|
||||||
public void mouseEntered(MouseEvent e)
|
public void mouseEntered(MouseEvent e)
|
||||||
{
|
{
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest("" + this + " - " + e);
|
||||||
log.finest("" + this + " - " + e);
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Mouse Exited
|
* Mouse Exited
|
||||||
|
@ -1425,8 +1422,7 @@ public class GridController extends CPanel
|
||||||
*/
|
*/
|
||||||
public void mouseExited(MouseEvent e)
|
public void mouseExited(MouseEvent e)
|
||||||
{
|
{
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest("" + this + " - " + e);
|
||||||
log.finest("" + this + " - " + e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,6 +22,7 @@ import java.awt.Component;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
import javax.swing.Box;
|
import javax.swing.Box;
|
||||||
|
@ -461,7 +462,7 @@ public final class VPanel extends CTabbedPane
|
||||||
label.setText(text);
|
label.setText(text);
|
||||||
label.setSavedMnemonic(predefinedMnemonic);
|
label.setSavedMnemonic(predefinedMnemonic);
|
||||||
m_fields.add(label);
|
m_fields.add(label);
|
||||||
log.finest(predefinedMnemonic + " - " + label.getName());
|
if (log.isLoggable(Level.FINEST)) log.finest(predefinedMnemonic + " - " + label.getName());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -491,7 +492,7 @@ public final class VPanel extends CTabbedPane
|
||||||
cb.setText(text);
|
cb.setText(text);
|
||||||
cb.setSavedMnemonic(predefinedMnemonic);
|
cb.setSavedMnemonic(predefinedMnemonic);
|
||||||
m_fields.add(cb);
|
m_fields.add(cb);
|
||||||
log.finest(predefinedMnemonic + " - " + cb.getName());
|
if (log.isLoggable(Level.FINEST)) log.finest(predefinedMnemonic + " - " + cb.getName());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -513,7 +514,7 @@ public final class VPanel extends CTabbedPane
|
||||||
b.setText(text);
|
b.setText(text);
|
||||||
b.setSavedMnemonic(predefinedMnemonic);
|
b.setSavedMnemonic(predefinedMnemonic);
|
||||||
m_fields.add(b);
|
m_fields.add(b);
|
||||||
log.finest(predefinedMnemonic + " - " + b.getName());
|
if (log.isLoggable(Level.FINEST)) log.finest(predefinedMnemonic + " - " + b.getName());
|
||||||
}
|
}
|
||||||
else if (b.getColumnName().equals("DocAction"))
|
else if (b.getColumnName().equals("DocAction"))
|
||||||
{
|
{
|
||||||
|
@ -585,13 +586,13 @@ public final class VPanel extends CTabbedPane
|
||||||
// Nothing found
|
// Nothing found
|
||||||
if (mnemonic == 0)
|
if (mnemonic == 0)
|
||||||
{
|
{
|
||||||
log.finest("None for: " + oText);
|
if (log.isLoggable(Level.FINEST)) log.finest("None for: " + oText);
|
||||||
return 0; // if first char would be returned, the first occurrence is invalid.
|
return 0; // if first char would be returned, the first occurrence is invalid.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_mnemonics.add(mnemonic);
|
m_mnemonics.add(mnemonic);
|
||||||
m_fields.add(source);
|
m_fields.add(source);
|
||||||
log.finest(mnemonic + " - " + source.getName());
|
if (log.isLoggable(Level.FINEST)) log.finest(mnemonic + " - " + source.getName());
|
||||||
return mnemonic;
|
return mnemonic;
|
||||||
} // getMnemonic
|
} // getMnemonic
|
||||||
|
|
||||||
|
|
|
@ -187,7 +187,7 @@ public class VTableExcelAdapter
|
||||||
}
|
}
|
||||||
value = fixString(value);
|
value = fixString(value);
|
||||||
sb.append(value).append("\t");
|
sb.append(value).append("\t");
|
||||||
if(CLogMgt.isLevelFinest()) log.finest("col=" + col + ", row=" + row + ": key=" + key + " => value=" + value + ", " + field + ", " + lookup);
|
if (log.isLoggable(Level.FINEST)) log.finest("col=" + col + ", row=" + row + ": key=" + key + " => value=" + value + ", " + field + ", " + lookup);
|
||||||
}
|
}
|
||||||
sb.append(Env.NL);
|
sb.append(Env.NL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.text.JTextComponent;
|
import javax.swing.text.JTextComponent;
|
||||||
|
|
||||||
|
@ -173,7 +174,7 @@ public class CityAutoCompleter extends AutoCompleter
|
||||||
private void setCity(CityVO vo)
|
private void setCity(CityVO vo)
|
||||||
{
|
{
|
||||||
m_city = vo;
|
m_city = vo;
|
||||||
log.finest("C_City_ID="+m_city);
|
if (log.isLoggable(Level.FINEST)) log.finest("C_City_ID="+m_city);
|
||||||
if (m_city == null) {
|
if (m_city == null) {
|
||||||
textBox.setBackground(new Color(230, 230, 255));
|
textBox.setBackground(new Color(230, 230, 255));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -103,7 +103,7 @@ public final class MDocDate extends PlainDocument implements CaretListener
|
||||||
public void insertString (int offset, String string, AttributeSet attr)
|
public void insertString (int offset, String string, AttributeSet attr)
|
||||||
throws BadLocationException
|
throws BadLocationException
|
||||||
{
|
{
|
||||||
log.finest("Offset=" + offset + ",String=" + string + ",Attr=" + attr
|
if (log.isLoggable(Level.FINEST)) log.finest("Offset=" + offset + ",String=" + string + ",Attr=" + attr
|
||||||
+ ",OldText=" + getText() + ",OldLength=" + getText().length());
|
+ ",OldText=" + getText() + ",OldLength=" + getText().length());
|
||||||
|
|
||||||
// manual entry
|
// manual entry
|
||||||
|
@ -181,7 +181,7 @@ public final class MDocDate extends PlainDocument implements CaretListener
|
||||||
public void remove (int offset, int length)
|
public void remove (int offset, int length)
|
||||||
throws BadLocationException
|
throws BadLocationException
|
||||||
{
|
{
|
||||||
log.finest("Offset=" + offset + ",Length=" + length);
|
if (log.isLoggable(Level.FINEST)) log.finest("Offset=" + offset + ",Length=" + length);
|
||||||
|
|
||||||
// begin of string
|
// begin of string
|
||||||
if (offset == 0 || length == 0)
|
if (offset == 0 || length == 0)
|
||||||
|
@ -212,7 +212,7 @@ public final class MDocDate extends PlainDocument implements CaretListener
|
||||||
*/
|
*/
|
||||||
public void caretUpdate(CaretEvent e)
|
public void caretUpdate(CaretEvent e)
|
||||||
{
|
{
|
||||||
log.finest("Dot=" + e.getDot() + ",Last=" + m_lastDot
|
if (log.isLoggable(Level.FINEST)) log.finest("Dot=" + e.getDot() + ",Last=" + m_lastDot
|
||||||
+ ", Mark=" + e.getMark());
|
+ ", Mark=" + e.getMark());
|
||||||
// Selection
|
// Selection
|
||||||
if (e.getDot() != e.getMark())
|
if (e.getDot() != e.getMark())
|
||||||
|
|
|
@ -20,6 +20,7 @@ import java.math.BigDecimal;
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
import java.text.DecimalFormatSymbols;
|
import java.text.DecimalFormatSymbols;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.text.AttributeSet;
|
import javax.swing.text.AttributeSet;
|
||||||
import javax.swing.text.BadLocationException;
|
import javax.swing.text.BadLocationException;
|
||||||
|
@ -105,7 +106,7 @@ public final class MDocNumber extends PlainDocument
|
||||||
public void insertString(int origOffset, String string, AttributeSet attr)
|
public void insertString(int origOffset, String string, AttributeSet attr)
|
||||||
throws BadLocationException
|
throws BadLocationException
|
||||||
{
|
{
|
||||||
log.finest("Offset=" + origOffset + " String=" + string + " Length=" + string.length());
|
if (log.isLoggable(Level.FINEST)) log.finest("Offset=" + origOffset + " String=" + string + " Length=" + string.length());
|
||||||
if (origOffset < 0 || string == null)
|
if (origOffset < 0 || string == null)
|
||||||
throw new IllegalArgumentException("Invalid argument");
|
throw new IllegalArgumentException("Invalid argument");
|
||||||
|
|
||||||
|
@ -264,7 +265,7 @@ public final class MDocNumber extends PlainDocument
|
||||||
public void remove (int origOffset, int length)
|
public void remove (int origOffset, int length)
|
||||||
throws BadLocationException
|
throws BadLocationException
|
||||||
{
|
{
|
||||||
log.finest("Offset=" + origOffset + " Length=" + length);
|
if (log.isLoggable(Level.FINEST)) log.finest("Offset=" + origOffset + " Length=" + length);
|
||||||
if (origOffset < 0 || length < 0)
|
if (origOffset < 0 || length < 0)
|
||||||
throw new IllegalArgumentException("MDocNumber.remove - invalid argument");
|
throw new IllegalArgumentException("MDocNumber.remove - invalid argument");
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.compiere.grid.ed;
|
package org.compiere.grid.ed;
|
||||||
|
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.event.CaretEvent;
|
import javax.swing.event.CaretEvent;
|
||||||
import javax.swing.event.CaretListener;
|
import javax.swing.event.CaretListener;
|
||||||
import javax.swing.text.AttributeSet;
|
import javax.swing.text.AttributeSet;
|
||||||
|
@ -156,13 +158,13 @@ public final class MDocString extends PlainDocument implements CaretListener
|
||||||
// We have no Format or inserted not manually (assuming correct Format)
|
// We have no Format or inserted not manually (assuming correct Format)
|
||||||
if (m_VFormat.length() == 0 || string.length() != 1)
|
if (m_VFormat.length() == 0 || string.length() != 1)
|
||||||
{
|
{
|
||||||
log.finest("Offset=" + offset + " String=" + string);
|
if (log.isLoggable(Level.FINEST)) log.finest("Offset=" + offset + " String=" + string);
|
||||||
super.insertString(offset, string, attr);
|
super.insertString(offset, string, attr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Formating required **/
|
/** Formating required **/
|
||||||
log.finest("Offset=" + offset
|
if (log.isLoggable(Level.FINEST)) log.finest("Offset=" + offset
|
||||||
+ ", String=" + string + ", MaxLength=" + m_maxLength
|
+ ", String=" + string + ", MaxLength=" + m_maxLength
|
||||||
+ ", Format=" + m_VFormat + ", Mask=" + m_mask
|
+ ", Format=" + m_VFormat + ", Mask=" + m_mask
|
||||||
+ ", Text=" + getText() + ", Length=" + getText().length());
|
+ ", Text=" + getText() + ", Length=" + getText().length());
|
||||||
|
@ -304,7 +306,7 @@ public final class MDocString extends PlainDocument implements CaretListener
|
||||||
// No format or non manual entry
|
// No format or non manual entry
|
||||||
if (m_VFormat.length() == 0 || length != 1)
|
if (m_VFormat.length() == 0 || length != 1)
|
||||||
{
|
{
|
||||||
log.finest("Offset=" + offset + " Length=" + length);
|
if (log.isLoggable(Level.FINEST)) log.finest("Offset=" + offset + " Length=" + length);
|
||||||
super.remove(offset, length);
|
super.remove(offset, length);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ import java.awt.event.MouseEvent;
|
||||||
import java.beans.PropertyChangeEvent;
|
import java.beans.PropertyChangeEvent;
|
||||||
import java.beans.VetoableChangeListener;
|
import java.beans.VetoableChangeListener;
|
||||||
import java.util.EventObject;
|
import java.util.EventObject;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.AbstractCellEditor;
|
import javax.swing.AbstractCellEditor;
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
|
@ -134,7 +135,7 @@ public final class VCellEditor extends AbstractCellEditor
|
||||||
*/
|
*/
|
||||||
public Component getTableCellEditorComponent (JTable table, Object value, boolean isSelected, int row, int col)
|
public Component getTableCellEditorComponent (JTable table, Object value, boolean isSelected, int row, int col)
|
||||||
{
|
{
|
||||||
log.finest(m_mField.getColumnName() + ": Value=" + value + ", row=" + row + ", col=" + col);
|
if (log.isLoggable(Level.FINEST)) log.finest(m_mField.getColumnName() + ": Value=" + value + ", row=" + row + ", col=" + col);
|
||||||
if (row >= 0)
|
if (row >= 0)
|
||||||
table.setRowSelectionInterval(row,row); // force moving to new row
|
table.setRowSelectionInterval(row,row); // force moving to new row
|
||||||
if (m_editor == null )
|
if (m_editor == null )
|
||||||
|
@ -179,7 +180,7 @@ public final class VCellEditor extends AbstractCellEditor
|
||||||
*/
|
*/
|
||||||
public boolean shouldSelectCell(EventObject e)
|
public boolean shouldSelectCell(EventObject e)
|
||||||
{
|
{
|
||||||
log.finest(m_mField.getColumnName());
|
if (log.isLoggable(Level.FINEST)) log.finest(m_mField.getColumnName());
|
||||||
return true;
|
return true;
|
||||||
} // shouldSelectCell
|
} // shouldSelectCell
|
||||||
|
|
||||||
|
@ -189,7 +190,7 @@ public final class VCellEditor extends AbstractCellEditor
|
||||||
*/
|
*/
|
||||||
public Object getCellEditorValue()
|
public Object getCellEditorValue()
|
||||||
{
|
{
|
||||||
log.finest(m_mField.getColumnName() + ": " + m_editor.getValue());
|
if (log.isLoggable(Level.FINEST)) log.finest(m_mField.getColumnName() + ": " + m_editor.getValue());
|
||||||
return m_editor.getValue();
|
return m_editor.getValue();
|
||||||
} // getCellEditorValue
|
} // getCellEditorValue
|
||||||
|
|
||||||
|
|
|
@ -329,7 +329,7 @@ public class VDate extends JComponent
|
||||||
*/
|
*/
|
||||||
public void setValue (Object value)
|
public void setValue (Object value)
|
||||||
{
|
{
|
||||||
log.finest("Value=" + value);
|
if (log.isLoggable(Level.FINEST)) log.finest("Value=" + value);
|
||||||
m_oldText = "";
|
m_oldText = "";
|
||||||
if (value == null)
|
if (value == null)
|
||||||
;
|
;
|
||||||
|
@ -471,7 +471,7 @@ public class VDate extends JComponent
|
||||||
*/
|
*/
|
||||||
public void keyReleased(KeyEvent e)
|
public void keyReleased(KeyEvent e)
|
||||||
{
|
{
|
||||||
log.finest("Key=" + e.getKeyCode() + " - " + e.getKeyChar()
|
if (log.isLoggable(Level.FINEST)) log.finest("Key=" + e.getKeyCode() + " - " + e.getKeyChar()
|
||||||
+ " -> " + m_text.getText());
|
+ " -> " + m_text.getText());
|
||||||
// ESC
|
// ESC
|
||||||
if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
|
if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
|
||||||
|
|
|
@ -30,6 +30,7 @@ import java.awt.event.MouseEvent;
|
||||||
import java.beans.PropertyChangeEvent;
|
import java.beans.PropertyChangeEvent;
|
||||||
import java.beans.PropertyVetoException;
|
import java.beans.PropertyVetoException;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.JComponent;
|
import javax.swing.JComponent;
|
||||||
import javax.swing.JFileChooser;
|
import javax.swing.JFileChooser;
|
||||||
|
@ -39,7 +40,6 @@ import org.adempiere.plaf.AdempierePLAF;
|
||||||
import org.compiere.model.GridField;
|
import org.compiere.model.GridField;
|
||||||
import org.compiere.swing.CButton;
|
import org.compiere.swing.CButton;
|
||||||
import org.compiere.swing.CTextField;
|
import org.compiere.swing.CTextField;
|
||||||
import org.compiere.util.CLogMgt;
|
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.Msg;
|
import org.compiere.util.Msg;
|
||||||
|
@ -390,8 +390,7 @@ public class VFile extends JComponent
|
||||||
* @see java.awt.event.KeyListener#keyReleased(java.awt.event.KeyEvent)
|
* @see java.awt.event.KeyListener#keyReleased(java.awt.event.KeyEvent)
|
||||||
*/
|
*/
|
||||||
public void keyReleased(KeyEvent e) {
|
public void keyReleased(KeyEvent e) {
|
||||||
if (CLogMgt.isLevelFinest())
|
if (log.isLoggable(Level.FINEST)) log.finest("Key=" + e.getKeyCode() + " - " + e.getKeyChar() + " -> " + m_text.getText());
|
||||||
log.finest("Key=" + e.getKeyCode() + " - " + e.getKeyChar() + " -> " + m_text.getText());
|
|
||||||
// ESC
|
// ESC
|
||||||
if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
|
if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
|
||||||
m_text.setText(m_initialText);
|
m_text.setText(m_initialText);
|
||||||
|
|
|
@ -639,7 +639,7 @@ public class VLookup extends JComponent
|
||||||
// lookup found nothing too
|
// lookup found nothing too
|
||||||
if (notFound)
|
if (notFound)
|
||||||
{
|
{
|
||||||
log.finest(m_columnName + "=" + value + ": Not found - " + m_lastDisplay);
|
if (log.isLoggable(Level.FINEST)) log.finest(m_columnName + "=" + value + ": Not found - " + m_lastDisplay);
|
||||||
// we may have a new value
|
// we may have a new value
|
||||||
m_lookup.refresh();
|
m_lookup.refresh();
|
||||||
m_combo.setValue (value);
|
m_combo.setValue (value);
|
||||||
|
@ -1019,7 +1019,7 @@ public class VLookup extends JComponent
|
||||||
sql.append(" AND ").append(wc);
|
sql.append(" AND ").append(wc);
|
||||||
sql.append(" AND IsActive='Y'");
|
sql.append(" AND IsActive='Y'");
|
||||||
// ***
|
// ***
|
||||||
log.finest(m_columnName + " (predefined) " + sql.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(m_columnName + " (predefined) " + sql.toString());
|
||||||
return MRole.getDefault().addAccessSQL(sql.toString(),
|
return MRole.getDefault().addAccessSQL(sql.toString(),
|
||||||
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
||||||
}
|
}
|
||||||
|
@ -1199,7 +1199,7 @@ public class VLookup extends JComponent
|
||||||
sql.append(" AND ").append(wc);
|
sql.append(" AND ").append(wc);
|
||||||
sql.append(" AND IsActive='Y'");
|
sql.append(" AND IsActive='Y'");
|
||||||
// ***
|
// ***
|
||||||
log.finest(m_columnName + " (predefined) " + sql.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(m_columnName + " (predefined) " + sql.toString());
|
||||||
return MRole.getDefault().addAccessSQL(sql.toString(),
|
return MRole.getDefault().addAccessSQL(sql.toString(),
|
||||||
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
||||||
}
|
}
|
||||||
|
@ -1252,7 +1252,7 @@ public class VLookup extends JComponent
|
||||||
if (wc != null && wc.length() > 0)
|
if (wc != null && wc.length() > 0)
|
||||||
sql.append(" AND ").append(wc);
|
sql.append(" AND ").append(wc);
|
||||||
// ***
|
// ***
|
||||||
log.finest(m_columnName + " (Table) " + sql.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(m_columnName + " (Table) " + sql.toString());
|
||||||
return MRole.getDefault().addAccessSQL(sql.toString(),
|
return MRole.getDefault().addAccessSQL(sql.toString(),
|
||||||
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
||||||
}
|
}
|
||||||
|
@ -1307,7 +1307,7 @@ public class VLookup extends JComponent
|
||||||
if (wc != null && wc.length() > 0)
|
if (wc != null && wc.length() > 0)
|
||||||
retValue.append(" AND ").append(wc);
|
retValue.append(" AND ").append(wc);
|
||||||
// ***
|
// ***
|
||||||
log.finest(m_columnName + " (TableDir) " + sql.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(m_columnName + " (TableDir) " + sql.toString());
|
||||||
return MRole.getDefault().addAccessSQL(retValue.toString(),
|
return MRole.getDefault().addAccessSQL(retValue.toString(),
|
||||||
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
||||||
} // getDirectAccessSQL
|
} // getDirectAccessSQL
|
||||||
|
|
|
@ -378,7 +378,7 @@ public final class VNumber extends JComponent
|
||||||
*/
|
*/
|
||||||
public void setValue(Object value)
|
public void setValue(Object value)
|
||||||
{
|
{
|
||||||
log.finest("Value=" + value);
|
if (log.isLoggable(Level.FINEST)) log.finest("Value=" + value);
|
||||||
if (value == null)
|
if (value == null)
|
||||||
m_oldText = "";
|
m_oldText = "";
|
||||||
else
|
else
|
||||||
|
@ -589,7 +589,7 @@ public final class VNumber extends JComponent
|
||||||
*/
|
*/
|
||||||
public void keyReleased(KeyEvent e)
|
public void keyReleased(KeyEvent e)
|
||||||
{
|
{
|
||||||
log.finest("Key=" + e.getKeyCode() + " - " + e.getKeyChar()
|
if (log.isLoggable(Level.FINEST)) log.finest("Key=" + e.getKeyCode() + " - " + e.getKeyChar()
|
||||||
+ " -> " + m_text.getText());
|
+ " -> " + m_text.getText());
|
||||||
|
|
||||||
// ESC
|
// ESC
|
||||||
|
|
|
@ -447,7 +447,7 @@ public class VPAttribute extends JComponent
|
||||||
// Set Value
|
// Set Value
|
||||||
if (changed)
|
if (changed)
|
||||||
{
|
{
|
||||||
log.finest("Changed M_AttributeSetInstance_ID=" + M_AttributeSetInstance_ID);
|
if (log.isLoggable(Level.FINEST)) log.finest("Changed M_AttributeSetInstance_ID=" + M_AttributeSetInstance_ID);
|
||||||
m_value = new Object(); // force re-query display
|
m_value = new Object(); // force re-query display
|
||||||
if (M_AttributeSetInstance_ID == 0)
|
if (M_AttributeSetInstance_ID == 0)
|
||||||
setValue(null);
|
setValue(null);
|
||||||
|
@ -456,7 +456,7 @@ public class VPAttribute extends JComponent
|
||||||
// Change Locator
|
// Change Locator
|
||||||
if (m_GridTab != null && M_Locator_ID > 0)
|
if (m_GridTab != null && M_Locator_ID > 0)
|
||||||
{
|
{
|
||||||
log.finest("Change M_Locator_ID="+M_Locator_ID);
|
if (log.isLoggable(Level.FINEST)) log.finest("Change M_Locator_ID="+M_Locator_ID);
|
||||||
m_GridTab.setValue("M_Locator_ID", M_Locator_ID);
|
m_GridTab.setValue("M_Locator_ID", M_Locator_ID);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|
|
@ -273,7 +273,7 @@ public class VPaymentEditor extends JComponent implements VEditor, ActionListene
|
||||||
// lookup found nothing too
|
// lookup found nothing too
|
||||||
if (notFound)
|
if (notFound)
|
||||||
{
|
{
|
||||||
log.finest(m_columnName + "=" + value + ": Not found - " + m_lastDisplay);
|
if (log.isLoggable(Level.FINEST)) log.finest(m_columnName + "=" + value + ": Not found - " + m_lastDisplay);
|
||||||
// we may have a new value
|
// we may have a new value
|
||||||
m_lookup.refresh();
|
m_lookup.refresh();
|
||||||
m_combo.setValue (value);
|
m_combo.setValue (value);
|
||||||
|
|
|
@ -28,6 +28,7 @@ import java.awt.event.MouseAdapter;
|
||||||
import java.awt.event.MouseEvent;
|
import java.awt.event.MouseEvent;
|
||||||
import java.beans.PropertyChangeEvent;
|
import java.beans.PropertyChangeEvent;
|
||||||
import java.beans.PropertyVetoException;
|
import java.beans.PropertyVetoException;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.JPopupMenu;
|
import javax.swing.JPopupMenu;
|
||||||
import javax.swing.SwingUtilities;
|
import javax.swing.SwingUtilities;
|
||||||
|
@ -248,7 +249,7 @@ public final class VString extends CTextField
|
||||||
*/
|
*/
|
||||||
public void keyReleased(KeyEvent e)
|
public void keyReleased(KeyEvent e)
|
||||||
{
|
{
|
||||||
log.finest("Key=" + e.getKeyCode() + " - " + e.getKeyChar()
|
if (log.isLoggable(Level.FINEST)) log.finest("Key=" + e.getKeyCode() + " - " + e.getKeyChar()
|
||||||
+ " -> " + getText());
|
+ " -> " + getText());
|
||||||
// ESC
|
// ESC
|
||||||
if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
|
if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
|
||||||
|
|
|
@ -29,6 +29,7 @@ import java.awt.event.MouseAdapter;
|
||||||
import java.awt.event.MouseEvent;
|
import java.awt.event.MouseEvent;
|
||||||
import java.beans.PropertyChangeEvent;
|
import java.beans.PropertyChangeEvent;
|
||||||
import java.beans.PropertyVetoException;
|
import java.beans.PropertyVetoException;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
import javax.swing.JPopupMenu;
|
import javax.swing.JPopupMenu;
|
||||||
|
@ -197,7 +198,7 @@ public class VTextLong extends CTextPane
|
||||||
*/
|
*/
|
||||||
public void actionPerformed(ActionEvent e)
|
public void actionPerformed(ActionEvent e)
|
||||||
{
|
{
|
||||||
log.finest( "VTestLong.actionPerformed - " + e.getActionCommand());
|
if (log.isLoggable(Level.FINEST)) log.finest( "VTestLong.actionPerformed - " + e.getActionCommand());
|
||||||
if (e.getSource() == menuEditor)
|
if (e.getSource() == menuEditor)
|
||||||
{
|
{
|
||||||
menuEditor.setEnabled(false);
|
menuEditor.setEnabled(false);
|
||||||
|
|
|
@ -32,6 +32,7 @@ import java.awt.event.MouseEvent;
|
||||||
import java.beans.PropertyChangeEvent;
|
import java.beans.PropertyChangeEvent;
|
||||||
import java.beans.PropertyVetoException;
|
import java.beans.PropertyVetoException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.JComponent;
|
import javax.swing.JComponent;
|
||||||
import javax.swing.JPopupMenu;
|
import javax.swing.JPopupMenu;
|
||||||
|
@ -334,7 +335,7 @@ public class VURL extends JComponent
|
||||||
*/
|
*/
|
||||||
public void keyReleased(KeyEvent e)
|
public void keyReleased(KeyEvent e)
|
||||||
{
|
{
|
||||||
log.finest("Key=" + e.getKeyCode() + " - " + e.getKeyChar()
|
if (log.isLoggable(Level.FINEST)) log.finest("Key=" + e.getKeyCode() + " - " + e.getKeyChar()
|
||||||
+ " -> " + getText());
|
+ " -> " + getText());
|
||||||
// ESC
|
// ESC
|
||||||
if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
|
if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
|
||||||
|
|
|
@ -266,7 +266,7 @@ public class WPAttributeEditor extends WEditor implements ContextMenuListener
|
||||||
} // cmd_file
|
} // cmd_file
|
||||||
|
|
||||||
private void processChanges(int oldValueInt, int M_AttributeSetInstance_ID) {
|
private void processChanges(int oldValueInt, int M_AttributeSetInstance_ID) {
|
||||||
log.finest("Changed M_AttributeSetInstance_ID=" + M_AttributeSetInstance_ID);
|
if (log.isLoggable(Level.FINEST)) log.finest("Changed M_AttributeSetInstance_ID=" + M_AttributeSetInstance_ID);
|
||||||
m_value = new Object(); // force re-query display
|
m_value = new Object(); // force re-query display
|
||||||
if (M_AttributeSetInstance_ID == 0)
|
if (M_AttributeSetInstance_ID == 0)
|
||||||
setValue(null);
|
setValue(null);
|
||||||
|
|
|
@ -649,8 +649,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
|
||||||
sql.append(" AND IsActive='Y'");
|
sql.append(" AND IsActive='Y'");
|
||||||
// ***
|
// ***
|
||||||
|
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest(m_columnName + " (predefined) " + sql.toString());
|
||||||
log.finest(m_columnName + " (predefined) " + sql.toString());
|
|
||||||
|
|
||||||
return MRole.getDefault().addAccessSQL(sql.toString(),
|
return MRole.getDefault().addAccessSQL(sql.toString(),
|
||||||
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
||||||
|
@ -723,8 +722,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
|
||||||
|
|
||||||
// ***
|
// ***
|
||||||
|
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest(m_columnName + " (Table) " + sql.toString());
|
||||||
log.finest(m_columnName + " (Table) " + sql.toString());
|
|
||||||
|
|
||||||
return MRole.getDefault().addAccessSQL(sql.toString(),
|
return MRole.getDefault().addAccessSQL(sql.toString(),
|
||||||
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
||||||
|
@ -788,8 +786,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
|
||||||
if (wc != null && wc.length() > 0)
|
if (wc != null && wc.length() > 0)
|
||||||
retValue.append(" AND ").append(wc);
|
retValue.append(" AND ").append(wc);
|
||||||
// ***
|
// ***
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest(m_columnName + " (TableDir) " + sql.toString());
|
||||||
log.finest(m_columnName + " (TableDir) " + sql.toString());
|
|
||||||
return MRole.getDefault().addAccessSQL(retValue.toString(),
|
return MRole.getDefault().addAccessSQL(retValue.toString(),
|
||||||
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
||||||
}
|
}
|
||||||
|
|
|
@ -519,8 +519,7 @@ public class InfoProductWindow extends InfoWindow {
|
||||||
{
|
{
|
||||||
//int M_Product_ID = 0;
|
//int M_Product_ID = 0;
|
||||||
String sql = m_sqlWarehouse;
|
String sql = m_sqlWarehouse;
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest(sql);
|
||||||
log.finest(sql);
|
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
|
@ -545,8 +544,7 @@ public class InfoProductWindow extends InfoWindow {
|
||||||
fieldDescription.setText(DB.getSQLValueString(null, sql, m_M_Product_ID));
|
fieldDescription.setText(DB.getSQLValueString(null, sql, m_M_Product_ID));
|
||||||
|
|
||||||
sql = m_sqlSubstitute;
|
sql = m_sqlSubstitute;
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest(sql);
|
||||||
log.finest(sql);
|
|
||||||
try {
|
try {
|
||||||
pstmt = DB.prepareStatement(sql, null);
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
pstmt.setInt(1, m_M_Product_ID);
|
pstmt.setInt(1, m_M_Product_ID);
|
||||||
|
@ -563,8 +561,7 @@ public class InfoProductWindow extends InfoWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
sql = m_sqlRelated;
|
sql = m_sqlRelated;
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest(sql);
|
||||||
log.finest(sql);
|
|
||||||
try {
|
try {
|
||||||
pstmt = DB.prepareStatement(sql, null);
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
pstmt.setInt(1, m_M_Product_ID);
|
pstmt.setInt(1, m_M_Product_ID);
|
||||||
|
@ -583,8 +580,7 @@ public class InfoProductWindow extends InfoWindow {
|
||||||
|
|
||||||
//IDEMPIERE-337
|
//IDEMPIERE-337
|
||||||
sql = m_sqlProductprice;
|
sql = m_sqlProductprice;
|
||||||
if (log.isLoggable(Level.FINEST))
|
if (log.isLoggable(Level.FINEST)) log.finest(sql);
|
||||||
log.finest(sql);
|
|
||||||
try {
|
try {
|
||||||
pstmt = DB.prepareStatement(sql, null);
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
pstmt.setInt(1, m_M_Product_ID);
|
pstmt.setInt(1, m_M_Product_ID);
|
||||||
|
|
|
@ -313,7 +313,7 @@ public class InfoGeneralPanel extends InfoPanel implements EventListener<Event>
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
log.finest("Table " + tableName + ", ID=" + AD_Table_ID
|
if (log.isLoggable(Level.FINEST)) log.finest("Table " + tableName + ", ID=" + AD_Table_ID
|
||||||
+ ", QueryColumns #" + m_queryColumns.size());
|
+ ", QueryColumns #" + m_queryColumns.size());
|
||||||
|
|
||||||
// Only 4 Query Columns
|
// Only 4 Query Columns
|
||||||
|
@ -400,10 +400,10 @@ public class InfoGeneralPanel extends InfoPanel implements EventListener<Event>
|
||||||
if (colClass != null)
|
if (colClass != null)
|
||||||
{
|
{
|
||||||
list.add(new ColumnInfo(Msg.translate(Env.getCtx(), columnName), colSql.toString(), colClass));
|
list.add(new ColumnInfo(Msg.translate(Env.getCtx(), columnName), colSql.toString(), colClass));
|
||||||
log.finest("Added Column=" + columnName);
|
if (log.isLoggable(Level.FINEST)) log.finest("Added Column=" + columnName);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
log.finest("Not Added Column=" + columnName);
|
if (log.isLoggable(Level.FINEST)) log.finest("Not Added Column=" + columnName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (SQLException e)
|
catch (SQLException e)
|
||||||
|
@ -425,7 +425,7 @@ public class InfoGeneralPanel extends InfoPanel implements EventListener<Event>
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
log.finest("InfoColumns #" + list.size());
|
if (log.isLoggable(Level.FINEST)) log.finest("InfoColumns #" + list.size());
|
||||||
|
|
||||||
// Convert ArrayList to Array
|
// Convert ArrayList to Array
|
||||||
m_generalLayout = new ColumnInfo[list.size()];
|
m_generalLayout = new ColumnInfo[list.size()];
|
||||||
|
|
|
@ -355,7 +355,7 @@ public abstract class AbstractProcessCtl implements Runnable
|
||||||
if (server != null)
|
if (server != null)
|
||||||
{ // See ServerBean
|
{ // See ServerBean
|
||||||
m_pi = server.workflow (Env.getRemoteCallCtx(Env.getCtx()), m_pi, AD_Workflow_ID);
|
m_pi = server.workflow (Env.getRemoteCallCtx(Env.getCtx()), m_pi, AD_Workflow_ID);
|
||||||
log.finest("server => " + m_pi);
|
if (log.isLoggable(Level.FINEST)) log.finest("server => " + m_pi);
|
||||||
started = true;
|
started = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -409,7 +409,7 @@ public abstract class AbstractProcessCtl implements Runnable
|
||||||
{
|
{
|
||||||
// See ServerBean
|
// See ServerBean
|
||||||
m_pi = server.process (Env.getRemoteCallCtx(Env.getCtx()), m_pi);
|
m_pi = server.process (Env.getRemoteCallCtx(Env.getCtx()), m_pi);
|
||||||
log.finest("server => " + m_pi);
|
if (log.isLoggable(Level.FINEST)) log.finest("server => " + m_pi);
|
||||||
started = true;
|
started = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -470,7 +470,7 @@ public abstract class AbstractProcessCtl implements Runnable
|
||||||
if (server != null)
|
if (server != null)
|
||||||
{ // See ServerBean
|
{ // See ServerBean
|
||||||
m_pi = server.dbProcess(Env.getRemoteCallCtx(Env.getCtx()), m_pi, ProcedureName);
|
m_pi = server.dbProcess(Env.getRemoteCallCtx(Env.getCtx()), m_pi, ProcedureName);
|
||||||
log.finest("server => " + m_pi);
|
if (log.isLoggable(Level.FINEST)) log.finest("server => " + m_pi);
|
||||||
started = true;
|
started = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
package org.compiere.apps.form;
|
package org.compiere.apps.form;
|
||||||
|
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.compiere.model.MArchive;
|
import org.compiere.model.MArchive;
|
||||||
import org.compiere.model.MBPartner;
|
import org.compiere.model.MBPartner;
|
||||||
|
@ -210,7 +211,7 @@ public class Archive {
|
||||||
+ "WHERE wa.AD_Role_ID=").append(role.getAD_Role_ID())
|
+ "WHERE wa.AD_Role_ID=").append(role.getAD_Role_ID())
|
||||||
.append(" OR ").append(role.getIncludedRolesWhereClause("wa.AD_Role_ID", null))
|
.append(" OR ").append(role.getIncludedRolesWhereClause("wa.AD_Role_ID", null))
|
||||||
.append("))");
|
.append("))");
|
||||||
log.finest(sql.toString());
|
if (log.isLoggable(Level.FINEST)) log.finest(sql.toString());
|
||||||
//metas: Bugfix zu included_Role ende
|
//metas: Bugfix zu included_Role ende
|
||||||
//
|
//
|
||||||
m_archives = MArchive.get(Env.getCtx(), sql.toString());
|
m_archives = MArchive.get(Env.getCtx(), sql.toString());
|
||||||
|
|
|
@ -334,7 +334,7 @@ public class PaySelect
|
||||||
sql += " AND i.c_doctype_id =?";
|
sql += " AND i.c_doctype_id =?";
|
||||||
sql += " ORDER BY 2,3";
|
sql += " ORDER BY 2,3";
|
||||||
|
|
||||||
log.finest(sql + " - C_Currency_ID=" + bi.C_Currency_ID + ", C_BPartner_ID=" + C_BPartner_ID + ", C_doctype_id=" + c_doctype_id );
|
if (log.isLoggable(Level.FINEST)) log.finest(sql + " - C_Currency_ID=" + bi.C_Currency_ID + ", C_BPartner_ID=" + C_BPartner_ID + ", C_doctype_id=" + c_doctype_id );
|
||||||
// Get Open Invoices
|
// Get Open Invoices
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
package org.compiere.wstore;
|
package org.compiere.wstore;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.jsp.JspException;
|
import javax.servlet.jsp.JspException;
|
||||||
|
@ -115,13 +116,13 @@ public class LoginLinkTag extends TagSupport
|
||||||
WebUser wu = (WebUser)pageContext.getSession().getAttribute (WebUser.NAME);
|
WebUser wu = (WebUser)pageContext.getSession().getAttribute (WebUser.NAME);
|
||||||
if (wu != null)
|
if (wu != null)
|
||||||
{
|
{
|
||||||
log.finest("(" + address + ") - SessionContext: " + wu);
|
if (log.isLoggable(Level.FINEST)) log.finest("(" + address + ") - SessionContext: " + wu);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wu = (WebUser)pageContext.getAttribute(WebUser.NAME);
|
wu = (WebUser)pageContext.getAttribute(WebUser.NAME);
|
||||||
if (wu != null)
|
if (wu != null)
|
||||||
log.finest ("(" + address + ") - Context: " + wu);
|
if (log.isLoggable(Level.FINEST)) log.finest ("(" + address + ") - Context: " + wu);
|
||||||
}
|
}
|
||||||
if (wu != null)
|
if (wu != null)
|
||||||
return wu;
|
return wu;
|
||||||
|
|
|
@ -24,6 +24,7 @@ import java.net.InetAddress;
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.DriverManager;
|
import java.sql.DriverManager;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.logging.Level;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import org.adempiere.install.DBConfigStatus;
|
import org.adempiere.install.DBConfigStatus;
|
||||||
|
@ -251,7 +252,7 @@ public class ConfigOracle implements IDatabaseConfig
|
||||||
for (int i = 0; i < lines.length; i++)
|
for (int i = 0; i < lines.length; i++)
|
||||||
{
|
{
|
||||||
String line = lines[i].trim();
|
String line = lines[i].trim();
|
||||||
log.finest(i + ": " + line);
|
if (log.isLoggable(Level.FINEST)) log.finest(i + ": " + line);
|
||||||
if (tns) // get TNS Name
|
if (tns) // get TNS Name
|
||||||
{
|
{
|
||||||
if (line.length() > 0
|
if (line.length() > 0
|
||||||
|
|
|
@ -30,6 +30,7 @@ import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import net.sf.jasperreports.engine.JRException;
|
import net.sf.jasperreports.engine.JRException;
|
||||||
import net.sf.jasperreports.engine.JasperCompileManager;
|
import net.sf.jasperreports.engine.JasperCompileManager;
|
||||||
|
@ -80,7 +81,7 @@ public class ReportInfo
|
||||||
|
|
||||||
protected File processReport(String reportFile)
|
protected File processReport(String reportFile)
|
||||||
{
|
{
|
||||||
log.finest("ReportInfo.processReport - " + reportFile);
|
if (log.isLoggable(Level.FINEST)) log.finest("ReportInfo.processReport - " + reportFile);
|
||||||
File JasperDesignFile = new File(reportFile);
|
File JasperDesignFile = new File(reportFile);
|
||||||
String JasperReportFile = reportFile.replaceAll(".jrxml", ".jasper").replaceAll(".xml", ".jasper");
|
String JasperReportFile = reportFile.replaceAll(".jrxml", ".jasper").replaceAll(".xml", ".jasper");
|
||||||
File jasperFile = new File(JasperReportFile);
|
File jasperFile = new File(JasperReportFile);
|
||||||
|
@ -126,7 +127,7 @@ public class ReportInfo
|
||||||
File[] subreports = JasperDesignFile.getParentFile().listFiles( new FileFilter( JasperReportFile.replaceAll(".jasper","")+"Subreport", JasperDesignFile.getParentFile(), extension));
|
File[] subreports = JasperDesignFile.getParentFile().listFiles( new FileFilter( JasperReportFile.replaceAll(".jasper","")+"Subreport", JasperDesignFile.getParentFile(), extension));
|
||||||
for( int i=0; i<subreports.length; i++)
|
for( int i=0; i<subreports.length; i++)
|
||||||
{
|
{
|
||||||
log.finest("The subreport file @ " + subreports[i].getAbsolutePath());
|
if (log.isLoggable(Level.FINEST)) log.finest("The subreport file @ " + subreports[i].getAbsolutePath());
|
||||||
File sub = processReport(subreports[i].getAbsolutePath());
|
File sub = processReport(subreports[i].getAbsolutePath());
|
||||||
String subName = sub.getName();
|
String subName = sub.getName();
|
||||||
int pos = sub.getName().indexOf('.');
|
int pos = sub.getName().indexOf('.');
|
||||||
|
@ -250,7 +251,7 @@ public class ReportInfo
|
||||||
File[] subreports = reportDesighFile.getParentFile().listFiles( new FileFilter( reportFile.replaceAll(".jasper","")+"Subreport", reportDesighFile.getParentFile(), extension));
|
File[] subreports = reportDesighFile.getParentFile().listFiles( new FileFilter( reportFile.replaceAll(".jasper","")+"Subreport", reportDesighFile.getParentFile(), extension));
|
||||||
for( int i=0; i<subreports.length; i++)
|
for( int i=0; i<subreports.length; i++)
|
||||||
{
|
{
|
||||||
log.finest("The subreport file @ " + subreports[i].getAbsolutePath());
|
if (log.isLoggable(Level.FINEST)) log.finest("The subreport file @ " + subreports[i].getAbsolutePath());
|
||||||
if(isDirty(subreports[i].getAbsolutePath()))
|
if(isDirty(subreports[i].getAbsolutePath()))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue