-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
5,888 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
jasperreports/src/net/sf/jasperreports/engine/fill/VirtualizationContextIdHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* JasperReports - Free Java Reporting Library. | ||
* Copyright (C) 2001 - 2019 TIBCO Software Inc. All rights reserved. | ||
* http://www.jaspersoft.com | ||
* | ||
* Unless you have purchased a commercial license agreement from Jaspersoft, | ||
* the following license terms apply: | ||
* | ||
* This program is part of JasperReports. | ||
* | ||
* JasperReports is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* JasperReports is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with JasperReports. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package net.sf.jasperreports.engine.fill; | ||
|
||
import java.io.Serializable; | ||
import java.util.UUID; | ||
|
||
import net.sf.jasperreports.engine.JRConstants; | ||
|
||
/** | ||
* | ||
* @author Lucian Chirita (lucianc@users.sourceforge.net) | ||
*/ | ||
public class VirtualizationContextIdHolder implements Serializable { | ||
|
||
private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; | ||
|
||
private UUID id; | ||
|
||
public VirtualizationContextIdHolder() { | ||
} | ||
|
||
public VirtualizationContextIdHolder(UUID id) { | ||
this.id = id; | ||
} | ||
|
||
public UUID getId() { | ||
return id; | ||
} | ||
|
||
public void setId(UUID id) { | ||
this.id = id; | ||
} | ||
|
||
} |
52 changes: 52 additions & 0 deletions
52
jasperreports/tests/net/sf/jasperreports/NoVirtualizerContainer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* JasperReports - Free Java Reporting Library. | ||
* Copyright (C) 2001 - 2019 TIBCO Software Inc. All rights reserved. | ||
* http://www.jaspersoft.com | ||
* | ||
* Unless you have purchased a commercial license agreement from Jaspersoft, | ||
* the following license terms apply: | ||
* | ||
* This program is part of JasperReports. | ||
* | ||
* JasperReports is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* JasperReports is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with JasperReports. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package net.sf.jasperreports; | ||
|
||
import net.sf.jasperreports.engine.JRVirtualizer; | ||
|
||
/** | ||
* @author Lucian Chirita (lucianc@users.sourceforge.net) | ||
*/ | ||
public class NoVirtualizerContainer implements VirtualizerContainer | ||
{ | ||
|
||
@Override | ||
public JRVirtualizer getVirtualizer() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public void setReadOnly() | ||
{ | ||
//NOOP | ||
} | ||
|
||
@Override | ||
public void dispose() | ||
{ | ||
//NOOP | ||
} | ||
|
||
} |
60 changes: 60 additions & 0 deletions
60
jasperreports/tests/net/sf/jasperreports/OwnVirtualizerContainer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* JasperReports - Free Java Reporting Library. | ||
* Copyright (C) 2001 - 2019 TIBCO Software Inc. All rights reserved. | ||
* http://www.jaspersoft.com | ||
* | ||
* Unless you have purchased a commercial license agreement from Jaspersoft, | ||
* the following license terms apply: | ||
* | ||
* This program is part of JasperReports. | ||
* | ||
* JasperReports is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* JasperReports is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with JasperReports. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package net.sf.jasperreports; | ||
|
||
import net.sf.jasperreports.engine.JRVirtualizer; | ||
import net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer; | ||
|
||
/** | ||
* @author Lucian Chirita (lucianc@users.sourceforge.net) | ||
*/ | ||
public class OwnVirtualizerContainer implements VirtualizerContainer | ||
{ | ||
|
||
private final JRAbstractLRUVirtualizer virtualizer; | ||
|
||
public OwnVirtualizerContainer(JRAbstractLRUVirtualizer virtualizer) | ||
{ | ||
this.virtualizer = virtualizer; | ||
} | ||
|
||
@Override | ||
public JRVirtualizer getVirtualizer() | ||
{ | ||
return virtualizer; | ||
} | ||
|
||
@Override | ||
public void setReadOnly() | ||
{ | ||
virtualizer.setReadOnly(true); | ||
} | ||
|
||
@Override | ||
public void dispose() | ||
{ | ||
virtualizer.cleanup(); | ||
} | ||
|
||
} |
Oops, something went wrong.