MCPcopy Create free account
hub / github.com/jOOQ/jOOQ / AbstractQuery

Class AbstractQuery

jOOQ/src/main/java/org/jooq/impl/AbstractQuery.java:100–578  ·  view source on GitHub ↗

@author Lukas Eder

Source from the content-addressed store, hash-verified

98 * @author Lukas Eder
99 */
100abstract class AbstractQuery<R extends Record> extends AbstractAttachableQueryPart implements CloseableQuery {
101
102 private static final JooqLogger log = JooqLogger.getLogger(AbstractQuery.class);
103 private static final Set<SQLDialect> SET_AUTOCOMMIT_ON_START_TRANSACTION = SQLDialect.supportedBy(FIREBIRD, HSQLDB);
104
105 private int timeout;
106 private QueryPoolable poolable = QueryPoolable.DEFAULT;
107 private boolean keepStatement;
108 transient PreparedStatement statement;
109 transient int statementExecutionCount;
110 transient Rendered rendered;
111
112 AbstractQuery(Configuration configuration) {
113 super(configuration);
114 }
115
116 // -------------------------------------------------------------------------
117 // The QueryPart API
118 // -------------------------------------------------------------------------
119
120 final void toSQLSemiColon(RenderContext ctx) {
121
122
123
124
125
126 }
127
128 // -------------------------------------------------------------------------
129 // The Query API
130 // -------------------------------------------------------------------------
131
132 /**
133 * Subclasses may override this for covariant result types
134 * <p>
135 * {@inheritDoc}
136 */
137 @Override
138 public CloseableQuery bind(String param, Object value) {
139 Integer index = Ints.tryParse(param);
140 if (index != null)
141 return bind(index, value);
142
143 ParamCollector collector = new ParamCollector(configuration(), true);
144 collector.visit(this);
145 List<Param<?>> params = collector.result.get(param);
146
147 if (params == null || params.size() == 0)
148 throw new IllegalArgumentException("No such parameter : " + param);
149
150 for (Param<?> p : params) {
151 ((AbstractParamX<?>) p).setConverted0(value);
152 closeIfNecessary(p);
153 }
154
155 return this;
156 }
157

Callers

nothing calls this directly

Calls 2

getLoggerMethod · 0.95
supportedByMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…