/******************************************************************************* * Copyright (c) 2004, 2007 IBM Corporation and Cambridge Semantics Incorporated. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * File: $Source: /cvsroot/slrp/boca/com.ibm.adtech.boca.common/src/com/ibm/adtech/boca/rdb/glitter/Attic/ExtraSQL.java,v $ * Created by: Matthew Roy ( <a href="mailto:mroy@us.ibm.com">mroy@us.ibm.com </a>) * Created on: Apr 28, 2007 * Revision: $Id: ExtraSQL.java 178 2007-07-31 14:22:33Z mroy $ * * Contributors: * IBM Corporation - initial API and implementation * Cambridge Semantics Incorporated - Fork to Anzo *******************************************************************************/ package org.openanzo.jdbc.container.query; import org.openanzo.exceptions.ExceptionConstants; import org.openanzo.jdbc.utils.PreparedStatementProvider; /** * Generated SQL wrappers for find operations. Had to hand code some cases, since they could share result processing. * * @author Matthew Roy ( <a href="mailto:mroy@cambridgesemantics.com">mroy@cambridgesemantics.com </a>) * */ class ExtraSQL { static final String select0 = "Glitter.select0"; static final String select0META = "Glitter.select0META"; static final String select1 = "Glitter.select1"; static final String select1M = "Glitter.select1M"; static final String select1MMETA = "Glitter.select1MMETA"; static final String select2 = "Glitter.select2"; static final String select2META = "Glitter.select2META"; static final String select3 = "Glitter.select3"; static final String select3M = "Glitter.select3M"; static final String select3MMETA = "Glitter.select3MMETA"; static final String select4 = "Glitter.select4"; static final String select4META = "Glitter.select4META"; static final String select5 = "Glitter.select5"; static final String select5M = "Glitter.select5M"; static final String select5MMETA = "Glitter.select5MMETA"; static final String select6 = "Glitter.select6"; static final String select6META = "Glitter.select6META"; static final String select7 = "Glitter.select7"; static final String select7M = "Glitter.select7M"; static final String select7MMETA = "Glitter.select7MMETA"; static final String select8 = "Glitter.select8"; static final String select8META = "Glitter.select8META"; static final String select9 = "Glitter.select9"; static final String select9M = "Glitter.select9M"; static final String select9MMETA = "Glitter.select9MMETA"; static final String select10 = "Glitter.select10"; static final String select10META = "Glitter.select10META"; static final String select11 = "Glitter.select11"; static final String select11M = "Glitter.select11M"; static final String select11MMETA = "Glitter.select11MMETA"; static final String select12 = "Glitter.select12"; static final String select12META = "Glitter.select12META"; static final String select13 = "Glitter.select13"; static final String select13M = "Glitter.select13M"; static final String select13MMETA = "Glitter.select13MMETA"; static final String select14 = "Glitter.select14"; static final String select14META = "Glitter.select14META"; static final String select15 = "Glitter.select15"; static final String select15M = "Glitter.select15M"; static final String select15MMETA = "Glitter.select15MMETA"; interface Select2METAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select2METAParamsImpl implements Select2METAParams { int meta; long subjId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } } interface Select3Params { /** * Get the id of the namedgraph * * @return the id of the namedgraph * @throws org.openanzo.jdbc.utils.RdbException */ long getNamedgraphId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select3ParamsImpl implements Select3Params { long namedgraphId; long subjId; /** * Get the id of the namedgraph * * @return the id of the namedgraph */ public long getNamedgraphId() { return this.namedgraphId; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } } interface Select3MMETAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select3MMETAParamsImpl implements Select3MMETAParams { int meta; long subjId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } } interface Select4METAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; } static class Select4METAParamsImpl implements Select4METAParams { int meta; long propId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } } interface Select5Params { /** * Get the id of the namedgraph * * @return the id of the namedgraph * @throws org.openanzo.jdbc.utils.RdbException */ long getNamedgraphId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; } static class Select5ParamsImpl implements Select5Params { long namedgraphId; long propId; /** * Get the id of the namedgraph * * @return the id of the namedgraph */ public long getNamedgraphId() { return this.namedgraphId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } } interface Select5MMETAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; } static class Select5MMETAParamsImpl implements Select5MMETAParams { int meta; long propId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } } interface Select6Params { /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; } static class Select6ParamsImpl implements Select6Params { long subjId; long propId; /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } } interface Select6METAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; } static class Select6METAParamsImpl implements Select6METAParams { int meta; long subjId; long propId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } } interface Select7Params { /** * Get the id of the namedgraph * * @return the id of the namedgraph * @throws org.openanzo.jdbc.utils.RdbException */ long getNamedgraphId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; } static class Select7ParamsImpl implements Select7Params { long namedgraphId; long subjId; long propId; /** * Get the id of the namedgraph * * @return the id of the namedgraph */ public long getNamedgraphId() { return this.namedgraphId; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } } interface Select7MParams { /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; } static class Select7MParamsImpl implements Select7MParams { long subjId; long propId; /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } } interface Select7MMETAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; } static class Select7MMETAParamsImpl implements Select7MMETAParams { int meta; long subjId; long propId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } } interface Select8METAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select8METAParamsImpl implements Select8METAParams { int meta; long objId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } public long getObjId() { return this.objId; } } interface Select9Params { /** * Get the id of the namedgraph * * @return the id of the namedgraph * @throws org.openanzo.jdbc.utils.RdbException */ long getNamedgraphId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select9ParamsImpl implements Select9Params { long namedgraphId; long objId; /** * Get the id of the namedgraph * * @return the id of the namedgraph */ public long getNamedgraphId() { return this.namedgraphId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select9MMETAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select9MMETAParamsImpl implements Select9MMETAParams { int meta; long objId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select10Params { /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select10ParamsImpl implements Select10Params { long subjId; long objId; /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select10METAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select10METAParamsImpl implements Select10METAParams { int meta; long subjId; long objId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select11Params { /** * Get the id of the namedgraph * * @return the id of the namedgraph * @throws org.openanzo.jdbc.utils.RdbException */ long getNamedgraphId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select11ParamsImpl implements Select11Params { long namedgraphId; long subjId; long objId; /** * Get the id of the namedgraph * * @return the id of the namedgraph */ public long getNamedgraphId() { return this.namedgraphId; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select11MParams { /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select11MParamsImpl implements Select11MParams { long subjId; long objId; /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select11MMETAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select11MMETAParamsImpl implements Select11MMETAParams { int meta; long subjId; long objId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select12Params { /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select12ParamsImpl implements Select12Params { long propId; long objId; /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select12METAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select12METAParamsImpl implements Select12METAParams { int meta; long propId; long objId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } public long getObjId() { return this.objId; } } interface Select13Params { /** * Get the id of the namedgraph * * @return the id of the namedgraph * @throws org.openanzo.jdbc.utils.RdbException */ long getNamedgraphId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select13ParamsImpl implements Select13Params { long namedgraphId; long propId; long objId; /** * Get the id of the namedgraph * * @return the id of the namedgraph */ public long getNamedgraphId() { return this.namedgraphId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select13MParams { /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select13MParamsImpl implements Select13MParams { long propId; long objId; /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select13MMETAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select13MMETAParamsImpl implements Select13MMETAParams { int meta; long propId; long objId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select14Params { /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select14ParamsImpl implements Select14Params { long subjId; long propId; long objId; /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select14METAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select14METAParamsImpl implements Select14METAParams { int meta; long subjId; long propId; long objId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select15Params { /** * Get the id of the namedgraph * * @return the id of the namedgraph * @throws org.openanzo.jdbc.utils.RdbException */ long getNamedgraphId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select15ParamsImpl implements Select15Params { long namedgraphId; long subjId; long propId; long objId; /** * Get the id of the namedgraph * * @return the id of the namedgraph */ public long getNamedgraphId() { return this.namedgraphId; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select15MParams { /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select15MParamsImpl implements Select15MParams { long subjId; long propId; long objId; /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } /** * Get the id of the object * * @return the id of the object */ public long getObjId() { return this.objId; } } interface Select15MMETAParams { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMeta() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubjId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getPropId() throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObjId() throws org.openanzo.jdbc.utils.RdbException; } static class Select15MMETAParamsImpl implements Select15MMETAParams { int meta; long subjId; long propId; long objId; /** * Get the metadata id value * * @return the metadata id value */ public int getMeta() { return this.meta; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubjId() { return this.subjId; } /** * Get the id of the property * * @return the id of the property */ public long getPropId() { return this.propId; } public long getObjId() { return this.objId; } } interface SelectQuadResult { /** * Get the metadata id value * * @return the metadata id value * @throws org.openanzo.jdbc.utils.RdbException */ int getMetadata() throws org.openanzo.jdbc.utils.RdbException; /** * Set the metadata id value * * @param metadata * value of the metadata * @throws org.openanzo.jdbc.utils.RdbException */ void setMetadata(int metadata) throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the namedgraph * * @return the id of the namedgraph * @throws org.openanzo.jdbc.utils.RdbException */ long getNamedGraphId() throws org.openanzo.jdbc.utils.RdbException; /** * Set the id of the named graph * * @param namedGraphId * the id of the namedGraph * @throws org.openanzo.jdbc.utils.RdbException */ void setNamedGraphId(long namedGraphId) throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the subject * * @return the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ long getSubj() throws org.openanzo.jdbc.utils.RdbException; /** * Set the id of the subject * * @param subj * the id of the subject * @throws org.openanzo.jdbc.utils.RdbException */ void setSubj(long subj) throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the property * * @return the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ long getProp() throws org.openanzo.jdbc.utils.RdbException; /** * Set the id of the property * * @param prop * the id of the property * @throws org.openanzo.jdbc.utils.RdbException */ void setProp(long prop) throws org.openanzo.jdbc.utils.RdbException; /** * Get the id of the object * * @return the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ long getObj() throws org.openanzo.jdbc.utils.RdbException; /** * Set the id of the object * * @param obj * the id of the object * @throws org.openanzo.jdbc.utils.RdbException */ void setObj(long obj) throws org.openanzo.jdbc.utils.RdbException; } static class SelectQuadResultImpl implements SelectQuadResult { int metadata; long namedGraphId; long subj; long prop; long obj; /** * Get the metadata id value * * @return the metadata id value */ public int getMetadata() { return this.metadata; } public void setMetadata(int metadata) { this.metadata = metadata; } /** * Get the id of the namedgraph * * @return the id of the namedgraph */ public long getNamedGraphId() { return this.namedGraphId; } public void setNamedGraphId(long namedGraphId) { this.namedGraphId = namedGraphId; } /** * Get the id of the subject * * @return the id of the subject */ public long getSubj() { return this.subj; } public void setSubj(long subj) { this.subj = subj; } /** * Get the id of the property * * @return the id of the property */ public long getProp() { return this.prop; } public void setProp(long prop) { this.prop = prop; } /** * Get the id of the object * * @return the id of the object */ public long getObj() { return this.obj; } public void setObj(long obj) { this.obj = obj; } } /** * Runs the select0 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select0(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select0(stmtProvider, connection, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select0 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select0(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select0, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect0(ps); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select0"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select0]"+endtimer); } } /** * Runs the select0META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select0META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select0META(stmtProvider, connection, meta, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select0META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select0META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select0META, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect0META(ps, meta); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select0META"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[SelectQuad]"+endtimer); } } /** * Runs the select1 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select1(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select1(stmtProvider, connection, namedgraphId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select1 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select1(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select1, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect1(ps, namedgraphId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select1"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select1]"+endtimer); } } /** * Runs the select10 prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.SUBJ=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select10(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select10Params params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select10(stmtProvider, connection, params.getSubjId(), params.getObjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select10 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select10(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select10(stmtProvider, connection, subjId, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select10 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select10(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select10, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect10(ps, subjId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select10"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select10]"+endtimer); } } /** * Runs the select10META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select10META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select10META(stmtProvider, connection, meta, subjId, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select10META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select10META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select10META, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect10META(ps, meta, subjId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select10META"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select10META]"+endtimer); } } /** * Runs the select10META prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.METADATA=? AND S.SUBJ=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select10META(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select10METAParams params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select10META(stmtProvider, connection, params.getMeta(), params.getSubjId(), params.getObjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select11 prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.NAMEDGRAPHID=? AND S.SUBJ=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select11(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select11Params params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select11(stmtProvider, connection, params.getNamedgraphId(), params.getSubjId(), params.getObjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select11 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select11(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long subjId, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select11(stmtProvider, connection, namedgraphId, subjId, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select11 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select11(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long subjId, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select11, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect11(ps, namedgraphId, subjId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select11"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select11]"+endtimer); } } /** * Runs the select11M prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S,${a}${d} G WHERE S.NAMEDGRAPHID=G.ID AND S.SUBJ=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select11M(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select11MParams params, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select11M(stmtProvider, connection, params.getSubjId(), params.getObjId(), sessionPrefix, tempTable, containerName, graphTableName); } /** * Runs the select11M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select11M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select11M(stmtProvider, connection, subjId, objId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select11M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select11M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select11M, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect11M(ps, subjId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select11M"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select11M]"+endtimer); } } /** * Runs the select11MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select11MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select11MMETA(stmtProvider, connection, meta, subjId, objId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select11MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select11MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select11MMETA, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect11MMETA(ps, meta, subjId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select11MMETA"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select11MMETA]"+endtimer); } } /** * Runs the select11MMETA prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S,${a}${d} G WHERE S.NAMEDGRAPHID=G.ID AND S.METADATA=? AND S.SUBJ=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select11MMETA(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select11MMETAParams params, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select11MMETA(stmtProvider, connection, params.getMeta(), params.getSubjId(), params.getObjId(), sessionPrefix, tempTable, containerName, graphTableName); } /** * Runs the select12 prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.PROP=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select12(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select12Params params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select12(stmtProvider, connection, params.getPropId(), params.getObjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select12 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select12(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long propId, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select12(stmtProvider, connection, propId, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select12 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select12(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long propId, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select12, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect12(ps, propId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select12"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select12]"+endtimer); } } /** * Runs the select12META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select12META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long propId, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select12META(stmtProvider, connection, meta, propId, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select12META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select12META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long propId, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select12META, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect12META(ps, meta, propId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select12META"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select12META]"+endtimer); } } /** * Runs the select12META prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.METADATA=? AND S.PROP=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select12META(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select12METAParams params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select12META(stmtProvider, connection, params.getMeta(), params.getPropId(), params.getObjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select13 prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.NAMEDGRAPHID=? AND S.PROP=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select13(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select13Params params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select13(stmtProvider, connection, params.getNamedgraphId(), params.getPropId(), params.getObjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select13 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select13(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long propId, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select13(stmtProvider, connection, namedgraphId, propId, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select13 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select13(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long propId, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select13, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect13(ps, namedgraphId, propId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select13"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select13]"+endtimer); } } /** * Runs the select13M prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S,${a}${d} G WHERE S.NAMEDGRAPHID=G.ID AND S.PROP=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select13M(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select13MParams params, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select13M(stmtProvider, connection, params.getPropId(), params.getObjId(), sessionPrefix, tempTable, containerName, graphTableName); } /** * Runs the select13M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select13M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long propId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select13M(stmtProvider, connection, propId, objId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select13M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select13M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long propId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select13M, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect13M(ps, propId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select13M"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select13M]"+endtimer); } } /** * Runs the select13MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select13MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long propId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select13MMETA(stmtProvider, connection, meta, propId, objId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select13MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select13MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long propId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select13MMETA, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect13MMETA(ps, meta, propId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select13MMETA"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select13MMETA]"+endtimer); } } /** * Runs the select13MMETA prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S,${a}${d} G WHERE S.NAMEDGRAPHID=G.ID AND S.METADATA=? AND S.PROP=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select13MMETA(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select13MMETAParams params, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select13MMETA(stmtProvider, connection, params.getMeta(), params.getPropId(), params.getObjId(), sessionPrefix, tempTable, containerName, graphTableName); } /** * Runs the select14 prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.SUBJ=? AND S.PROP=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select14(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select14Params params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select14(stmtProvider, connection, params.getSubjId(), params.getPropId(), params.getObjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select14 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select14(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long propId, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select14(stmtProvider, connection, subjId, propId, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select14 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select14(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long propId, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select14, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect14(ps, subjId, propId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select13MMETA"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select14]"+endtimer); } } /** * Runs the select14META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select14META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long propId, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select14META(stmtProvider, connection, meta, subjId, propId, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select14META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select14META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long propId, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select14META, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect14META(ps, meta, subjId, propId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select14META"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select14META]"+endtimer); } } /** * Runs the select14META prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.METADATA=? AND S.SUBJ=? AND S.PROP=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select14META(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select14METAParams params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select14META(stmtProvider, connection, params.getMeta(), params.getSubjId(), params.getPropId(), params.getObjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select15 prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.NAMEDGRAPHID=? AND S.SUBJ=? AND S.PROP=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select15(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select15Params params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select15(stmtProvider, connection, params.getNamedgraphId(), params.getSubjId(), params.getPropId(), params.getObjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select15 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select15(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long subjId, long propId, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select15(stmtProvider, connection, namedgraphId, subjId, propId, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select15 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select15(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long subjId, long propId, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select15, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect15(ps, namedgraphId, subjId, propId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select15"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select15]"+endtimer); } } /** * Runs the select15M prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S,${a}${d} G WHERE S.NAMEDGRAPHID=G.ID AND S.SUBJ=? AND S.PROP=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select15M(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select15MParams params, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select15M(stmtProvider, connection, params.getSubjId(), params.getPropId(), params.getObjId(), sessionPrefix, tempTable, containerName, graphTableName); } /** * Runs the select15M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select15M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long propId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select15M(stmtProvider, connection, subjId, propId, objId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select15M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select15M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long propId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select15M, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect15M(ps, subjId, propId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select15M"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select15M]"+endtimer); } } /** * Runs the select15MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select15MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long propId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select15MMETA(stmtProvider, connection, meta, subjId, propId, objId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select15MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select15MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long propId, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select15MMETA, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect15MMETA(ps, meta, subjId, propId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select15MMETA"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select15MMETA]"+endtimer); } } /** * Runs the select15MMETA prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S,${a}${d} G WHERE S.NAMEDGRAPHID=G.ID AND S.METADATA=? AND S.SUBJ=? AND S.PROP=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select15MMETA(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select15MMETAParams params, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select15MMETA(stmtProvider, connection, params.getMeta(), params.getSubjId(), params.getPropId(), params.getObjId(), sessionPrefix, tempTable, containerName, graphTableName); } /** * Runs the select1M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select1M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select1M(stmtProvider, connection, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select1M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select1M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select1M, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect1M(ps); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select1M"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select1M]"+endtimer); } } /** * Runs the select1MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select1MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select1MMETA(stmtProvider, connection, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select1MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select1MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select1MMETA, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect1MMETA(ps); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select1MMETA"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select1MMETA]"+endtimer); } } /** * Runs the select2 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select2(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select2(stmtProvider, connection, subjId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select2 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select2(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select2, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect2(ps, subjId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select2"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select2]"+endtimer); } } /** * Runs the select2META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select2META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select2META(stmtProvider, connection, meta, subjId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select2META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select2META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select2META, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect2META(ps, meta, subjId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select2META"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select2META]"+endtimer); } } /** * Runs the select2META prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.METADATA=? AND S.SUBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select2META(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select2METAParams params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select2META(stmtProvider, connection, params.getMeta(), params.getSubjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select3 prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.NAMEDGRAPHID=? AND S.SUBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select3(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select3Params params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select3(stmtProvider, connection, params.getNamedgraphId(), params.getSubjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select3 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select3(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long subjId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select3(stmtProvider, connection, namedgraphId, subjId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select3 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select3(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long subjId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select3, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect3(ps, namedgraphId, subjId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select3"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select3]"+endtimer); } } /** * Runs the select3M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select3M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select3M(stmtProvider, connection, subjId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select3M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select3M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select3M, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect3M(ps, subjId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select3M"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select3M]"+endtimer); } } /** * Runs the select3MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select3MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select3MMETA(stmtProvider, connection, meta, subjId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select3MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select3MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select3MMETA, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect3MMETA(ps, meta, subjId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select3MMETA"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select3MMETA]"+endtimer); } } /** * Runs the select3MMETA prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S,${a}${d} G WHERE S.METADATA=? AND S.NAMEDGRAPHID=G.ID AND S.SUBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select3MMETA(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select3MMETAParams params, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select3MMETA(stmtProvider, connection, params.getMeta(), params.getSubjId(), sessionPrefix, tempTable, containerName, graphTableName); } /** * Runs the select4 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select4(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long propId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select4(stmtProvider, connection, propId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select4 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select4(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long propId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select4, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect4(ps, propId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select4"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select4]"+endtimer); } } /** * Runs the select4META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select4META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long propId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select4META(stmtProvider, connection, meta, propId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select4META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select4META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long propId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select4META, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect4META(ps, meta, propId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select4META"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select4META]"+endtimer); } } /** * Runs the select4META prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.METADATA=? AND S.PROP=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select4META(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select4METAParams params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select4META(stmtProvider, connection, params.getMeta(), params.getPropId(), sessionPrefix, tempTable, containerName); } /** * Runs the select5 prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.NAMEDGRAPHID=? AND S.PROP=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select5(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select5Params params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select5(stmtProvider, connection, params.getNamedgraphId(), params.getPropId(), sessionPrefix, tempTable, containerName); } /** * Runs the select5 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select5(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long propId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select5(stmtProvider, connection, namedgraphId, propId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select5 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select5(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long propId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select5, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect5(ps, namedgraphId, propId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select5"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select5]"+endtimer); } } /** * Runs the select5M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select5M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long propId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select5M(stmtProvider, connection, propId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select5M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select5M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long propId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select5M, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect5M(ps, propId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select5M"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select5M]"+endtimer); } } /** * Runs the select5MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select5MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long propId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select5MMETA(stmtProvider, connection, meta, propId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select5MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select5MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long propId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select5MMETA, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect5MMETA(ps, meta, propId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select5MMETA"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select5MMETA]"+endtimer); } } /** * Runs the select5MMETA prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S,${a}${d} G WHERE S.NAMEDGRAPHID=G.ID AND S.METADATA=? AND S.PROP=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select5MMETA(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select5MMETAParams params, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select5MMETA(stmtProvider, connection, params.getMeta(), params.getPropId(), sessionPrefix, tempTable, containerName, graphTableName); } /** * Runs the select6 prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.SUBJ=? AND S.PROP=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select6(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select6Params params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select6(stmtProvider, connection, params.getSubjId(), params.getPropId(), sessionPrefix, tempTable, containerName); } /** * Runs the select6 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select6(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long propId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select6(stmtProvider, connection, subjId, propId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select6 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select6(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long propId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select6, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect6(ps, subjId, propId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select6"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select6]"+endtimer); } } /** * Runs the select6META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select6META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long propId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select6META(stmtProvider, connection, meta, subjId, propId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select6META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select6META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long propId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select6META, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect6META(ps, meta, subjId, propId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select6META"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select6META]"+endtimer); } } /** * Runs the select6META prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.METADATA=? AND S.SUBJ=? AND S.PROP=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select6META(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select6METAParams params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select6META(stmtProvider, connection, params.getMeta(), params.getSubjId(), params.getPropId(), sessionPrefix, tempTable, containerName); } /** * Runs the select7 prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.NAMEDGRAPHID=? AND S.SUBJ=? AND S.PROP=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select7(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select7Params params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select7(stmtProvider, connection, params.getNamedgraphId(), params.getSubjId(), params.getPropId(), sessionPrefix, tempTable, containerName); } /** * Runs the select7 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select7(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long subjId, long propId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select7(stmtProvider, connection, namedgraphId, subjId, propId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select7 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select7(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long subjId, long propId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select7, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect7(ps, namedgraphId, subjId, propId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select7"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select7]"+endtimer); } } /** * Runs the select7M prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S,${a}${d} G WHERE S.NAMEDGRAPHID=G.ID AND S.SUBJ=? AND S.PROP=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select7M(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select7MParams params, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select7M(stmtProvider, connection, params.getSubjId(), params.getPropId(), sessionPrefix, tempTable, containerName, graphTableName); } /** * Runs the select7M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select7M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long propId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select7M(stmtProvider, connection, subjId, propId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select7M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select7M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long subjId, long propId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select7M, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect7M(ps, subjId, propId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select7M"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select7M]"+endtimer); } } /** * Runs the select7MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select7MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long propId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select7MMETA(stmtProvider, connection, meta, subjId, propId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select7MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select7MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long subjId, long propId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select7MMETA, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect7MMETA(ps, meta, subjId, propId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select7MMETA"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select7MMETA]"+endtimer); } } /** * Runs the select7MMETA prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S,${a}${d} G WHERE S.NAMEDGRAPHID=G.ID AND S.METADATA=? AND S.SUBJ=? AND S.PROP=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select7MMETA(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select7MMETAParams params, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select7MMETA(stmtProvider, connection, params.getMeta(), params.getSubjId(), params.getPropId(), sessionPrefix, tempTable, containerName, graphTableName); } /** * Runs the select8 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select8(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select8(stmtProvider, connection, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select8 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select8(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select8, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect8(ps, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select8"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select8]"+endtimer); } } /** * Runs the select8META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select8META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select8META(stmtProvider, connection, meta, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select8META prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select8META(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select8META, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect8META(ps, meta, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select8META"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select8META]"+endtimer); } } /** * Runs the select8META prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.METADATA=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select8META(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select8METAParams params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select8META(stmtProvider, connection, params.getMeta(), params.getObjId(), sessionPrefix, tempTable, containerName); } /** * Runs the select9 prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S WHERE S.NAMEDGRAPHID=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select9(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select9Params params, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select9(stmtProvider, connection, params.getNamedgraphId(), params.getObjId(), sessionPrefix, tempTable, containerName); } /** * * /** Runs the select9 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select9(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long objId, String sessionPrefix, String tempTable, String containerName) throws org.openanzo.jdbc.utils.RdbException { return select9(stmtProvider, connection, namedgraphId, objId, sessionPrefix, tempTable, containerName, transformSelectQuad); } /** * Runs the select9 prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select9(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long namedgraphId, long objId, String sessionPrefix, String tempTable, String containerName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select9, new String[] { sessionPrefix, tempTable, containerName }, connection); prepareSelect9(ps, namedgraphId, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select9"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select9]"+endtimer); } } /** * Runs the select9M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select9M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select9M(stmtProvider, connection, objId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select9M prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select9M(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select9M, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect9M(ps, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select9M"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select9M]"+endtimer); } } /** * Runs the select9MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select9MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select9MMETA(stmtProvider, connection, meta, objId, sessionPrefix, tempTable, containerName, graphTableName, transformSelectQuad); } /** * Runs the select9MMETA prepared statement. */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select9MMETA(final PreparedStatementProvider stmtProvider, java.sql.Connection connection, int meta, long objId, String sessionPrefix, String tempTable, String containerName, String graphTableName, final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transform) throws org.openanzo.jdbc.utils.RdbException { java.sql.PreparedStatement ps = null; //long startTimer=System.currentTimeMillis(); try { ps = stmtProvider.getPreparedSQLStatement(select9MMETA, new String[] { sessionPrefix, tempTable, containerName, graphTableName }, connection); prepareSelect9MMETA(ps, meta, objId); final java.sql.ResultSet rs = ps.executeQuery(); org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> iter = new org.openanzo.jdbc.utils.ResultSetIterator<SelectQuadResult>(rs, ps, stmtProvider, transform); return iter; } catch (java.sql.SQLException e) { throw new org.openanzo.jdbc.utils.RdbException(ExceptionConstants.RDB.FAILED_EXECUTING_SQL, e, "select9MMETA"); } finally { //long endtimer=(System.currentTimeMillis()-startTimer); //if(endtimer>CUTOFF)System.out.println("[select9MMETA]"+endtimer); } } /** * Runs the select9MMETA prepared statement. <code> * SELECT S.METADATA,S.NAMEDGRAPHID,S.SUBJ,S.PROP,S.OBJ FROM ${c}_S S,${a}${d} G WHERE S.NAMEDGRAPHID=G.ID AND S.METADATA=? AND S.OBJ=? * </code> */ static org.openanzo.jdbc.utils.ClosableIterator<SelectQuadResult> select9MMETA(PreparedStatementProvider stmtProvider, java.sql.Connection connection, ExtraSQL.Select9MMETAParams params, String sessionPrefix, String tempTable, String containerName, String graphTableName) throws org.openanzo.jdbc.utils.RdbException { return select9MMETA(stmtProvider, connection, params.getMeta(), params.getObjId(), sessionPrefix, tempTable, containerName, graphTableName); } /** * Prepares the input params for the select0 prepared statement. */ static void prepareSelect0(java.sql.PreparedStatement ps) throws java.sql.SQLException { } /** * Prepares the input params for the SelectQuad prepared statement. */ static void prepareSelect0META(java.sql.PreparedStatement ps, int meta) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); } /** * Prepares the input params for the select1 prepared statement. */ static void prepareSelect1(java.sql.PreparedStatement ps, long namedgraphId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, namedgraphId); } /** * Prepares the input params for the select10 prepared statement. */ static void prepareSelect10(java.sql.PreparedStatement ps, long subjId, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, subjId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select10META prepared statement. */ static void prepareSelect10META(java.sql.PreparedStatement ps, int meta, long subjId, long objId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, subjId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select11 prepared statement. */ static void prepareSelect11(java.sql.PreparedStatement ps, long namedgraphId, long subjId, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, namedgraphId); ps.setLong(argc++, subjId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select11M prepared statement. */ static void prepareSelect11M(java.sql.PreparedStatement ps, long subjId, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, subjId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select11MMETA prepared statement. */ static void prepareSelect11MMETA(java.sql.PreparedStatement ps, int meta, long subjId, long objId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, subjId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select12 prepared statement. */ static void prepareSelect12(java.sql.PreparedStatement ps, long propId, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, propId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select12META prepared statement. */ static void prepareSelect12META(java.sql.PreparedStatement ps, int meta, long propId, long objId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, propId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select13 prepared statement. */ static void prepareSelect13(java.sql.PreparedStatement ps, long namedgraphId, long propId, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, namedgraphId); ps.setLong(argc++, propId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select13M prepared statement. */ static void prepareSelect13M(java.sql.PreparedStatement ps, long propId, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, propId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select13MMETA prepared statement. */ static void prepareSelect13MMETA(java.sql.PreparedStatement ps, int meta, long propId, long objId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, propId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select14 prepared statement. */ static void prepareSelect14(java.sql.PreparedStatement ps, long subjId, long propId, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, subjId); ps.setLong(argc++, propId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select14META prepared statement. */ static void prepareSelect14META(java.sql.PreparedStatement ps, int meta, long subjId, long propId, long objId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, subjId); ps.setLong(argc++, propId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select15 prepared statement. */ static void prepareSelect15(java.sql.PreparedStatement ps, long namedgraphId, long subjId, long propId, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, namedgraphId); ps.setLong(argc++, subjId); ps.setLong(argc++, propId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select15M prepared statement. */ static void prepareSelect15M(java.sql.PreparedStatement ps, long subjId, long propId, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, subjId); ps.setLong(argc++, propId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select15MMETA prepared statement. */ static void prepareSelect15MMETA(java.sql.PreparedStatement ps, int meta, long subjId, long propId, long objId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, subjId); ps.setLong(argc++, propId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select1M prepared statement. */ static void prepareSelect1M(java.sql.PreparedStatement ps) throws java.sql.SQLException { } /** * Prepares the input params for the select1MMETA prepared statement. */ static void prepareSelect1MMETA(java.sql.PreparedStatement ps) throws java.sql.SQLException { } /** * Prepares the input params for the select2 prepared statement. */ static void prepareSelect2(java.sql.PreparedStatement ps, long subjId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, subjId); } /** * Prepares the input params for the select2META prepared statement. */ static void prepareSelect2META(java.sql.PreparedStatement ps, int meta, long subjId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, subjId); } /** * Prepares the input params for the select3 prepared statement. */ static void prepareSelect3(java.sql.PreparedStatement ps, long namedgraphId, long subjId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, namedgraphId); ps.setLong(argc++, subjId); } /** * Prepares the input params for the select3M prepared statement. */ static void prepareSelect3M(java.sql.PreparedStatement ps, long subjId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, subjId); } /** * Prepares the input params for the select3MMETA prepared statement. */ static void prepareSelect3MMETA(java.sql.PreparedStatement ps, int meta, long subjId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, subjId); } /** * Prepares the input params for the select4 prepared statement. */ static void prepareSelect4(java.sql.PreparedStatement ps, long propId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, propId); } /** * Prepares the input params for the select4META prepared statement. */ static void prepareSelect4META(java.sql.PreparedStatement ps, int meta, long propId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, propId); } /** * Prepares the input params for the select5 prepared statement. */ static void prepareSelect5(java.sql.PreparedStatement ps, long namedgraphId, long propId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, namedgraphId); ps.setLong(argc++, propId); } /** * Prepares the input params for the select5M prepared statement. */ static void prepareSelect5M(java.sql.PreparedStatement ps, long propId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, propId); } /** * Prepares the input params for the select5MMETA prepared statement. */ static void prepareSelect5MMETA(java.sql.PreparedStatement ps, int meta, long propId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, propId); } /** * Prepares the input params for the select6 prepared statement. */ static void prepareSelect6(java.sql.PreparedStatement ps, long subjId, long propId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, subjId); ps.setLong(argc++, propId); } /** * Prepares the input params for the select6META prepared statement. */ static void prepareSelect6META(java.sql.PreparedStatement ps, int meta, long subjId, long propId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, subjId); ps.setLong(argc++, propId); } /** * Prepares the input params for the select7 prepared statement. */ static void prepareSelect7(java.sql.PreparedStatement ps, long namedgraphId, long subjId, long propId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, namedgraphId); ps.setLong(argc++, subjId); ps.setLong(argc++, propId); } /** * Prepares the input params for the select7M prepared statement. */ static void prepareSelect7M(java.sql.PreparedStatement ps, long subjId, long propId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, subjId); ps.setLong(argc++, propId); } /** * Prepares the input params for the select7MMETA prepared statement. */ static void prepareSelect7MMETA(java.sql.PreparedStatement ps, int meta, long subjId, long propId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, subjId); ps.setLong(argc++, propId); } /** * Prepares the input params for the select8 prepared statement. */ static void prepareSelect8(java.sql.PreparedStatement ps, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, objId); } /** * Prepares the input params for the select8META prepared statement. */ static void prepareSelect8META(java.sql.PreparedStatement ps, int meta, long objId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, objId); } /** * Prepares the input params for the select9 prepared statement. */ static void prepareSelect9(java.sql.PreparedStatement ps, long namedgraphId, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, namedgraphId); ps.setLong(argc++, objId); } /** * Prepares the input params for the select9M prepared statement. */ static void prepareSelect9M(java.sql.PreparedStatement ps, long objId) throws java.sql.SQLException { int argc = 1; ps.setLong(argc++, objId); } /** * Prepares the input params for the select9MMETA prepared statement. */ static void prepareSelect9MMETA(java.sql.PreparedStatement ps, int meta, long objId) throws java.sql.SQLException { int argc = 1; ps.setInt(argc++, meta); ps.setLong(argc++, objId); } /** * Transforms the rows in the result set for the select1 prepared statement. */ static final org.openanzo.jdbc.utils.Transformer<SelectQuadResult> transformSelectQuad = new org.openanzo.jdbc.utils.Transformer<SelectQuadResult>() { public SelectQuadResult transform(java.sql.ResultSet rs) { try { SelectQuadResult result = new SelectQuadResultImpl(); result.setMetadata(rs.getInt(1)); result.setNamedGraphId(rs.getLong(2)); result.setSubj(rs.getLong(3)); result.setProp(rs.getLong(4)); result.setObj(rs.getLong(5)); return result; } catch (org.openanzo.jdbc.utils.RdbException e) { throw new org.apache.commons.collections.FunctorException(e); } catch (java.sql.SQLException e) { throw new org.apache.commons.collections.FunctorException(e); } } }; }