id
stringlengths
24
24
repo
stringlengths
7
59
path
stringlengths
11
234
func_name
stringlengths
3
140
url
stringlengths
102
339
split
stringclasses
3 values
language
stringclasses
1 value
docstring
stringlengths
1
34k
code
stringlengths
63
466k
text
stringlengths
101
467k
token_count
int32
22
125k
doc_chars
int32
1
34k
code_chars
int32
63
466k
license_basis
stringclasses
1 value
source
stringclasses
1 value
added
stringdate
2026-12-05 00:00:00
2026-12-05 00:00:00
record_sha256
stringlengths
64
64
license
stringclasses
18 values
license_class
stringclasses
4 values
license_source
stringlengths
45
101
16b90c803641d1216b02d19d
kuali/ojb-1.0.4
src/tools/org/apache/ojb/tools/mapping/reversedb/gui/DBTablePropertySheet.java
DBTablePropertySheet.cbEnabledActionPerformed
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/tools/org/apache/ojb/tools/mapping/reversedb/gui/DBTablePropertySheet.java#L322-L326
train
java
GEN-LAST:event_cbDynamicProxyActionPerformed
private void cbEnabledActionPerformed (java.awt.event.ActionEvent evt)//GEN-FIRST:event_cbEnabledActionPerformed {//GEN-HEADEREND:event_cbEnabledActionPerformed // Add your handling code here: this.aTable.setEnabled(this.cbEnabled.isSelected()); }
GEN-LAST:event_cbDynamicProxyActionPerformed private void cbEnabledActionPerformed (java.awt.event.ActionEvent evt)//GEN-FIRST:event_cbEnabledActionPerformed {//GEN-HEADEREND:event_cbEnabledActionPerformed // Add your handling code here: this.aTable.setEnabled(this.cbEnabled.isSelected()); }
58
44
263
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
dcdcfddc404bed56dffb20f86ba7d84632a6553b59c009dd0830ec74b105a0bd
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
a8437076a7079409975a5d59
kuali/ojb-1.0.4
src/tools/org/apache/ojb/tools/mapping/reversedb/gui/DBTablePropertySheet.java
DBTablePropertySheet.setModel
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/tools/org/apache/ojb/tools/mapping/reversedb/gui/DBTablePropertySheet.java#L344-L353
train
java
GEN-LAST:event_formComponentShown
public void setModel (PropertySheetModel pm) { if (pm instanceof org.apache.ojb.tools.mapping.reversedb.DBTable) { this.aTable = (org.apache.ojb.tools.mapping.reversedb.DBTable)pm; this.readValuesFromTable(); } else throw new IllegalArgumentException(); }
GEN-LAST:event_formComponentShown public void setModel (PropertySheetModel pm) { if (pm instanceof org.apache.ojb.tools.mapping.reversedb.DBTable) { this.aTable = (org.apache.ojb.tools.mapping.reversedb.DBTable)pm; this.readValuesFromTable(); } else throw new IllegalArgument...
78
33
310
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
043cf8d1d841c4c4a34c140c02616818263f358bbd2a5957a0e2aad1f8cdede7
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
d437bfc295ef8cdedcdc774f
gsi-upm/BeastTool
beast-tool/src/main/java/es/upm/dit/gsi/beast/mock/jade/common/AgentRegistration.java
AgentRegistration.registerAgent
https://github.com/gsi-upm/BeastTool/blob/cc7fdc75cb818c5d60802aaf32c27829e0ca144c/beast-tool/src/main/java/es/upm/dit/gsi/beast/mock/jade/common/AgentRegistration.java#L34-L56
train
java
Register the agent in the platform @param agent_name The name of the agent to be registered @param agent The agent to register. @throws FIPAException
public static void registerAgent(Agent agent, String serviceName, String serviceType) throws FIPAException{ DFAgentDescription dfd = new DFAgentDescription(); ServiceDescription sd = new ServiceDescription(); sd.setType(serviceType); sd.setName(serviceName); //N...
Register the agent in the platform @param agent_name The name of the agent to be registered @param agent The agent to register. @throws FIPAException public static void registerAgent(Agent agent, String serviceName, String serviceType) throws FIPAException{ DFAgentDescription dfd = new DFAgentDescription(); ...
248
150
1,029
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
576523339a12e986e1e1397ac19840c7bbced8246ee9891d9bc85a31c254dc51
GPL-2.0
strong-copyleft
https://github.com/gsi-upm/BeastTool/blob/master/LICENSE
fb4038014aca04bc8ae50717
isisaddons-legacy/isis-module-excel
dom/src/main/java/org/isisaddons/module/excel/dom/util/ExcelConverter.java
ExcelConverter.appendSheet
https://github.com/isisaddons-legacy/isis-module-excel/blob/a3b92b1797ab2ed609667933d4164e9fb54b9f25/dom/src/main/java/org/isisaddons/module/excel/dom/util/ExcelConverter.java#L115-L145
train
java
//////////////////////////////////////
File appendSheet(final List<WorksheetContent> worksheetContents) throws IOException { final ImmutableSet<String> worksheetNames = FluentIterable.from(worksheetContents) .transform(new Function<WorksheetContent, String>() { @Nullable @Override public String apply(@Nullable fin...
////////////////////////////////////// File appendSheet(final List<WorksheetContent> worksheetContents) throws IOException { final ImmutableSet<String> worksheetNames = FluentIterable.from(worksheetContents) .transform(new Function<WorksheetContent, String>() { @Nullable @Ov...
275
38
1,588
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
6dffb80c2299fe6c532372cce9e58e8b0b20858ee3ce8bd45d8efcc44c9b339b
Apache-2.0
permissive
https://github.com/isisaddons-legacy/isis-module-excel/blob/master/LICENSE
df6ed90069534bf5ccefdeb2
isisaddons-legacy/isis-module-excel
dom/src/main/java/org/isisaddons/module/excel/dom/util/ExcelConverter.java
ExcelConverter.newCellMarshaller
https://github.com/isisaddons-legacy/isis-module-excel/blob/a3b92b1797ab2ed609667933d4164e9fb54b9f25/dom/src/main/java/org/isisaddons/module/excel/dom/util/ExcelConverter.java#L586-L590
train
java
//////////////////////////////////////
protected CellMarshaller newCellMarshaller(final Workbook wb) { final CellStyle dateCellStyle = createDateFormatCellStyle(wb); final CellMarshaller cellMarshaller = new CellMarshaller(bookmarkService, dateCellStyle); return cellMarshaller; }
////////////////////////////////////// protected CellMarshaller newCellMarshaller(final Workbook wb) { final CellStyle dateCellStyle = createDateFormatCellStyle(wb); final CellMarshaller cellMarshaller = new CellMarshaller(bookmarkService, dateCellStyle); return cellMarshaller; }
57
38
269
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
49209f704e4e16e51e07716a61a667ebe1906b325426d578c367af8c19d2e8e5
Apache-2.0
permissive
https://github.com/isisaddons-legacy/isis-module-excel/blob/master/LICENSE
58fae79a233d46b6e15c707b
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/util/interceptor/InterceptorFactory.java
InterceptorFactory.getInstance
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/util/interceptor/InterceptorFactory.java#L52-L60
train
java
Returns the instance. @return InterceptorFactory
public static InterceptorFactory getInstance() { if (instance == null) { instance = new InterceptorFactory(); OjbConfigurator.getInstance().configure(instance); } return instance; }
Returns the instance. @return InterceptorFactory public static InterceptorFactory getInstance() { if (instance == null) { instance = new InterceptorFactory(); OjbConfigurator.getInstance().configure(instance); } return instance; }
55
48
205
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
546e280b71c00e03d81fc41510e4d0573e6e2d3a5cfea18617f24cec18d8dfa3
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
6e444f72497b2a2fd3fbea1f
isisaddons-legacy/isis-module-excel
fixture/src/main/java/org/isisaddons/module/excel/fixture/dom/ExcelModuleDemoToDoItems.java
ExcelModuleDemoToDoItems.findByDescription
https://github.com/isisaddons-legacy/isis-module-excel/blob/a3b92b1797ab2ed609667933d4164e9fb54b9f25/fixture/src/main/java/org/isisaddons/module/excel/fixture/dom/ExcelModuleDemoToDoItems.java#L100-L107
train
java
//////////////////////////////////////
@Programmatic public ExcelModuleDemoToDoItem findByDescription(final String description) { return container.firstMatch( new QueryDefault<>(ExcelModuleDemoToDoItem.class, "findByDescription", "description", description, "...
////////////////////////////////////// @Programmatic public ExcelModuleDemoToDoItem findByDescription(final String description) { return container.firstMatch( new QueryDefault<>(ExcelModuleDemoToDoItem.class, "findByDescription", "description"...
60
38
356
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9cafded0677bb5789581b8a46713141b0248c175455aad6ae3df9e3e4048459d
Apache-2.0
permissive
https://github.com/isisaddons-legacy/isis-module-excel/blob/master/LICENSE
d003c33b983796a1adfe8089
kuali/ojb-1.0.4
src/tools/org/apache/ojb/tools/mapping/reversedb2/dnd2/DropTargetHelper.java
DropTargetHelper.registerDropPasteWorker
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/tools/org/apache/ojb/tools/mapping/reversedb2/dnd2/DropTargetHelper.java#L99-L106
train
java
Register a new DropPasteWorkerInterface. @param worker The new worker
public void registerDropPasteWorker(DropPasteWorkerInterface worker) { this.dropPasteWorkerSet.add(worker); defaultDropTarget.setDefaultActions( defaultDropTarget.getDefaultActions() | worker.getAcceptableActions(defaultDropTarget.getComponent()) ...
Register a new DropPasteWorkerInterface. @param worker The new worker public void registerDropPasteWorker(DropPasteWorkerInterface worker) { this.dropPasteWorkerSet.add(worker); defaultDropTarget.setDefaultActions( defaultDropTarget.getDefaultActions() | worker.getAcc...
70
69
351
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
0c449737c9e565382714578b3cc51151a98da85887dd18c645251c1f9f9ad689
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
b7a9b8ffb7b66df776b4fe9f
kuali/ojb-1.0.4
src/tools/org/apache/ojb/tools/mapping/reversedb2/dnd2/DropTargetHelper.java
DropTargetHelper.removeDropPasteWorker
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/tools/org/apache/ojb/tools/mapping/reversedb2/dnd2/DropTargetHelper.java#L111-L119
train
java
Remove a DropPasteWorker from the helper. @param worker the worker that should be removed
public void removeDropPasteWorker(DropPasteWorkerInterface worker) { this.dropPasteWorkerSet.remove(worker); java.util.Iterator it = this.dropPasteWorkerSet.iterator(); int newDefaultActions = 0; while (it.hasNext()) newDefaultActions |= ((DropPasteWorkerInterface)i...
Remove a DropPasteWorker from the helper. @param worker the worker that should be removed public void removeDropPasteWorker(DropPasteWorkerInterface worker) { this.dropPasteWorkerSet.remove(worker); java.util.Iterator it = this.dropPasteWorkerSet.iterator(); int newDefaultActions = 0; ...
105
89
457
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8a162767eceae7ed1c195d67a57a5360056312b75d92ca18000aba6664360022
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
b4847e699602bee84256d6bd
geomajas/geomajas-project-server
impl/src/main/java/org/geomajas/spring/ThreadScope.java
ThreadScope.get
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/impl/src/main/java/org/geomajas/spring/ThreadScope.java#L38-L47
train
java
Get bean for given name in the "thread" scope. @param name name of bean @param factory factory for new instances @return bean for this scope
public Object get(String name, ObjectFactory<?> factory) { ThreadScopeContext context = ThreadScopeContextHolder.getContext(); Object result = context.getBean(name); if (null == result) { result = factory.getObject(); context.setBean(name, result); } return result; }
Get bean for given name in the "thread" scope. @param name name of bean @param factory factory for new instances @return bean for this scope public Object get(String name, ObjectFactory<?> factory) { ThreadScopeContext context = ThreadScopeContextHolder.getContext(); Object result = context.getBean(name); if (...
93
141
285
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3edbe2f0c80caa2edaaf415c5f6635e23dbabba93f25a177c643f56cca71ffdf
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
67c9e2a8ad079866625cff93
geomajas/geomajas-project-server
impl/src/main/java/org/geomajas/spring/ThreadScope.java
ThreadScope.remove
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/impl/src/main/java/org/geomajas/spring/ThreadScope.java#L55-L58
train
java
Removes bean from scope. @param name bean name @return previous value
public Object remove(String name) { ThreadScopeContext context = ThreadScopeContextHolder.getContext(); return context.remove(name); }
Removes bean from scope. @param name bean name @return previous value public Object remove(String name) { ThreadScopeContext context = ThreadScopeContextHolder.getContext(); return context.remove(name); }
41
70
139
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
60a245ef3348db2a3e65db6db5a48bd808a320512aff9faa1e380b45424fc49b
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
4c20f03b1e8bfc78b629484f
foundation-runtime/logging
logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/JobLogger.java
JobLogger.addItemsHandled
https://github.com/foundation-runtime/logging/blob/cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6/logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/JobLogger.java#L9-L16
train
java
Number of failed actions in scheduler
public static void addItemsHandled(String handledItemsType, int handledItemsNumber) { JobLogger jobLogger = (JobLogger) getInstance(); if (jobLogger == null) { return; } jobLogger.addItemsHandledInstance(handledItemsType, handledItemsNumber); }
Number of failed actions in scheduler public static void addItemsHandled(String handledItemsType, int handledItemsNumber) { JobLogger jobLogger = (JobLogger) getInstance(); if (jobLogger == null) { return; } jobLogger.addItemsHandledInstance(handledItemsType, handledItemsNumbe...
69
37
290
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
030d9b58a95e971c3c74a00459eda4cce59ea8151849285167158d1d314c566e
Apache-2.0
permissive
https://github.com/foundation-runtime/logging/blob/master/LICENSE
5c529b6fe15eb9cfa5f48e12
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
ConnectionFactoryDBCPImpl.releaseAllResources
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java#L108-L134
train
java
Closes all managed pools.
public void releaseAllResources() { super.releaseAllResources(); synchronized (poolSynch) { if (!poolMap.isEmpty()) { Collection pools = poolMap.values(); Iterator iterator = pools.iterator(); ObjectPool op = nu...
Closes all managed pools. public void releaseAllResources() { super.releaseAllResources(); synchronized (poolSynch) { if (!poolMap.isEmpty()) { Collection pools = poolMap.values(); Iterator iterator = pools.iterator(); ...
133
25
846
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e8aa92cb484f287a503fbf707bc7a52961fecc6cdde1af9f709ee99d5b180d1c
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
9be3679bb8b9f62b8c0157d0
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
ConnectionFactoryDBCPImpl.getDataSource
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java#L144-L171
train
java
Returns the DBCP DataSource for the specified connection descriptor, after creating a new DataSource if needed. @param jcd the descriptor for which to return a DataSource @return a DataSource, after creating a new pool if needed. Guaranteed to never be null. @throws LookupException if pool is not in cache and cannot be...
protected DataSource getDataSource(JdbcConnectionDescriptor jcd) throws LookupException { final PBKey key = jcd.getPBKey(); DataSource ds = (DataSource) dsMap.get(key); if (ds == null) { // Found no pool for PBKey try { ...
Returns the DBCP DataSource for the specified connection descriptor, after creating a new DataSource if needed. @param jcd the descriptor for which to return a DataSource @return a DataSource, after creating a new pool if needed. Guaranteed to never be null. @throws LookupException if pool is not in cache and cannot be...
243
328
944
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
484e8790a9481eb466ba0022af0106fa30998920c02425dad89dfcf2d62d867b
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
382ba5397bb8053fc79839f3
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
ConnectionFactoryDBCPImpl.setupPool
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java#L179-L238
train
java
Returns a new ObjectPool for the specified connection descriptor. Override this method to setup your own pool. @param jcd the connection descriptor for which to set up the pool @return a newly created object pool
protected ObjectPool setupPool(JdbcConnectionDescriptor jcd) { log.info("Create new ObjectPool for DBCP connections:" + jcd); try { ClassHelper.newInstance(jcd.getDriver()); } catch (InstantiationException e) { log.fatal("Unable to i...
Returns a new ObjectPool for the specified connection descriptor. Override this method to setup your own pool. @param jcd the connection descriptor for which to set up the pool @return a newly created object pool protected ObjectPool setupPool(JdbcConnectionDescriptor jcd) { log.info("Create new ObjectPo...
527
212
2,711
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
800089d1ec9871a49d90873f94b288c484092119c2638eb90d842ca8fd577612
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
060d8ad23f3980c77af274dd
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
ConnectionFactoryDBCPImpl.wrapAsDataSource
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java#L306-L336
train
java
Wraps the specified object pool for connections as a DataSource. @param jcd the OJB connection descriptor for the pool to be wrapped @param connectionPool the connection pool to be wrapped @return a DataSource attached to the connection pool. Connections will be wrapped using DBCP PoolGuard, that will not allow unwrap...
protected DataSource wrapAsDataSource(JdbcConnectionDescriptor jcd, ObjectPool connectionPool) { final boolean allowConnectionUnwrap; if (jcd == null) { allowConnectionUnwrap = false; } else { ...
Wraps the specified object pool for connections as a DataSource. @param jcd the OJB connection descriptor for the pool to be wrapped @param connectionPool the connection pool to be wrapped @return a DataSource attached to the connection pool. Connections will be wrapped using DBCP PoolGuard, that will not allow unwrap...
328
406
1,379
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
0f34ab2d7139b012add085e02c9aec1724ecfea8c6484188b8a16d24605bbef8
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
11bca4889b89e00f4bbe1386
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
ConnectionFactoryDBCPImpl.createConnectionFactory
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java#L356-L362
train
java
Creates a DriverManager-based ConnectionFactory for creating the Connection instances to feed into the object pool of the specified jcd-alias. <p> <b>NB!</b> If you override this method to specify your own ConnectionFactory you <em>must</em> make sure that you follow OJB's lifecycle contract defined in the {@link org.a...
protected org.apache.commons.dbcp.ConnectionFactory createConnectionFactory(JdbcConnectionDescriptor jcd) { final ConPoolFactory result; final Properties properties = getJdbcProperties(jcd); result = new ConPoolFactory(jcd, properties); return result; }
Creates a DriverManager-based ConnectionFactory for creating the Connection instances to feed into the object pool of the specified jcd-alias. <p> <b>NB!</b> If you override this method to specify your own ConnectionFactory you <em>must</em> make sure that you follow OJB's lifecycle contract defined in the {@link org.a...
268
1,007
299
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
0804ba3ddc9cedca54169614fa1fc2d830009260e7c41b2f95932357a298dd92
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
739f20c44397ca10f51c9f51
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/platforms/PlatformFactory.java
PlatformFactory.getPlatformFor
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java#L41-L69
train
java
returns the Platform matching to the JdbcConnectionDescriptor jcd. The method jcd.getDbms(...) is used to determine the Name of the platform. BRJ : cache platforms @param jcd the JdbcConnectionDescriptor defining the platform
public static Platform getPlatformFor(JdbcConnectionDescriptor jcd) { String dbms = jcd.getDbms(); Platform result = null; String platformName = null; result = (Platform) getPlatforms().get(dbms); if (result == null) { try { ...
returns the Platform matching to the JdbcConnectionDescriptor jcd. The method jcd.getDbms(...) is used to determine the Name of the platform. BRJ : cache platforms @param jcd the JdbcConnectionDescriptor defining the platform public static Platform getPlatformFor(JdbcConnectionDescriptor jcd) { String db...
233
225
1,042
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f4eb6a13da150e99f03d4b8e54006b13d18801ae449644c3d9d1e0bf86ce656d
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
bf02bac931892140f3e3f279
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/platforms/PlatformFactory.java
PlatformFactory.getClassnameFor
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/platforms/PlatformFactory.java#L76-L84
train
java
compute the name of the concrete Class representing the Platform specified by <code>platform</code> @param platform the name of the platform as specified in the repository
private static String getClassnameFor(String platform) { String pf = "Default"; if (platform != null) { pf = platform; } return "org.apache.ojb.broker.platforms.Platform" + pf.substring(0, 1).toUpperCase() + pf.substring(1) + "Impl"; }
compute the name of the concrete Class representing the Platform specified by <code>platform</code> @param platform the name of the platform as specified in the repository private static String getClassnameFor(String platform) { String pf = "Default"; if (platform != null) { ...
103
171
303
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d8190a09764431b8ea14063d70798016bb39f0d7950402523ea54de4c129c6dc
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
d4d77b32bb2425950dcee8e1
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/query/SelectionCriteria.java
SelectionCriteria.setAlias
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/SelectionCriteria.java#L215-L222
train
java
Sets the alias. By default the entire attribute path participates in the alias @param alias The name of the alias to set
public void setAlias(String alias) { m_alias = alias; String attributePath = (String)getAttribute(); boolean allPathsAliased = true; m_userAlias = new UserAlias(alias, attributePath, allPathsAliased); }
Sets the alias. By default the entire attribute path participates in the alias @param alias The name of the alias to set public void setAlias(String alias) { m_alias = alias; String attributePath = (String)getAttribute(); boolean allPathsAliased = true; m_userAlias = new UserAlias(alias, attributePath, a...
80
120
222
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b5875f284a4d022395d5ee199af2cf7753e42d69574f6baae18042cfce419bc6
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
d503b195db6aa3910d6202a7
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/query/SelectionCriteria.java
SelectionCriteria.setAlias
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/SelectionCriteria.java#L228-L232
train
java
Sets the alias. @param alias The alias to set
public void setAlias(String alias, String aliasPath) { m_alias = alias; m_userAlias = new UserAlias(alias, (String)getAttribute(), aliasPath); }
Sets the alias. @param alias The alias to set public void setAlias(String alias, String aliasPath) { m_alias = alias; m_userAlias = new UserAlias(alias, (String)getAttribute(), aliasPath); }
50
45
154
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
a5d5719b3fb5e7537dafeb85245cbd4b437621497edbbb50cc52c44e7bd54411
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
f8ac0aa2102095fbc573ff1d
foundation-runtime/logging
logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/TimeBasedRollEnforcer.java
TimeBasedRollEnforcer.begin
https://github.com/foundation-runtime/logging/blob/cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6/logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/TimeBasedRollEnforcer.java#L75-L83
train
java
Starts the enforcer.
final void begin() { if (this.properties.isDateRollEnforced()) { final Thread thread = new Thread(this, "Log4J Time-based File-roll Enforcer"); thread.setDaemon(true); thread.start(); this.threadRef = thread; } }
Starts the enforcer. final void begin() { if (this.properties.isDateRollEnforced()) { final Thread thread = new Thread(this, "Log4J Time-based File-roll Enforcer"); thread.setDaemon(true); thread.start(); this.threadRef = thread; } }
65
20
256
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
a730e6c7eeebfcaa2f40c041e0459c516298bb8c97667e8f939d3018a6bb6642
Apache-2.0
permissive
https://github.com/foundation-runtime/logging/blob/master/LICENSE
b6323acb65fd54d938e2df2f
geomajas/geomajas-project-server
command/src/main/java/org/geomajas/command/configuration/GetMapConfigurationCommand.java
GetMapConfigurationCommand.securityClone
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/command/src/main/java/org/geomajas/command/configuration/GetMapConfigurationCommand.java#L140-L149
train
java
Clone a widget info map considering what may be copied to the client. @param widgetInfo widget info map @return cloned copy including only records which are not {@link ServerSideOnlyInfo}
public Map<String, ClientWidgetInfo> securityClone(Map<String, ClientWidgetInfo> widgetInfo) { Map<String, ClientWidgetInfo> res = new HashMap<String, ClientWidgetInfo>(); for (Map.Entry<String, ClientWidgetInfo> entry : widgetInfo.entrySet()) { ClientWidgetInfo value = entry.getValue(); if (!(value instanceo...
Clone a widget info map considering what may be copied to the client. @param widgetInfo widget info map @return cloned copy including only records which are not {@link ServerSideOnlyInfo} public Map<String, ClientWidgetInfo> securityClone(Map<String, ClientWidgetInfo> widgetInfo) { Map<String, ClientWidgetInfo> res...
134
188
406
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e665a3c70e90416a358494c2759325e844c65b9b63049433277a5c33207e997f
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
e82c6b89d6759e90e00306a3
geomajas/geomajas-project-server
command/src/main/java/org/geomajas/command/configuration/GetMapConfigurationCommand.java
GetMapConfigurationCommand.securityCloneLayerExtraInfo
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/command/src/main/java/org/geomajas/command/configuration/GetMapConfigurationCommand.java#L157-L166
train
java
Clone a {@link org.geomajas.configuration.LayerInfo#extraInfo} considering what may be copied to the client. @param extraInfoMap map of extra info @return cloned copy including only records which are not {@link ServerSideOnlyInfo}
public Map<String, LayerExtraInfo> securityCloneLayerExtraInfo(Map<String, LayerExtraInfo> extraInfoMap) { Map<String, LayerExtraInfo> res = new HashMap<String, LayerExtraInfo>(); for (Map.Entry<String, LayerExtraInfo> entry : extraInfoMap.entrySet()) { LayerExtraInfo value = entry.getValue(); if (!(value ins...
Clone a {@link org.geomajas.configuration.LayerInfo#extraInfo} considering what may be copied to the client. @param extraInfoMap map of extra info @return cloned copy including only records which are not {@link ServerSideOnlyInfo} public Map<String, LayerExtraInfo> securityCloneLayerExtraInfo(Map<String, LayerExtraIn...
151
231
412
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
729d8aa583f92d18340f329ed5eeb11584076c1de126ba3a8bb104e8e1951931
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
345aac88e45478d25429a271
geomajas/geomajas-project-server
command/src/main/java/org/geomajas/command/configuration/GetMapConfigurationCommand.java
GetMapConfigurationCommand.securityClone
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/command/src/main/java/org/geomajas/command/configuration/GetMapConfigurationCommand.java#L174-L204
train
java
Clone layer information considering what may be copied to the client. @param original layer info @return cloned copy including only allowed information
public ClientLayerInfo securityClone(ClientLayerInfo original) { // the data is explicitly copied as this assures the security is considered when copying. if (null == original) { return null; } ClientLayerInfo client = null; String layerId = original.getServerLayerId(); if (securityContext.isLayerVisible...
Clone layer information considering what may be copied to the client. @param original layer info @return cloned copy including only allowed information public ClientLayerInfo securityClone(ClientLayerInfo original) { // the data is explicitly copied as this assures the security is considered when copying. if (nul...
342
152
1,416
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8aee5c4f27b79b0ff5ac6d265c10bf6bcd766a2ec7d9940d00d438e582062e09
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
fedb4773a2042fa2e5246f5e
foundation-runtime/logging
logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/LoggingKeysHandler.java
LoggingKeysHandler.getKeyValue
https://github.com/foundation-runtime/logging/blob/cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6/logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/LoggingKeysHandler.java#L43-L49
train
java
get the key name to use in log from the logging keys map
public String getKeyValue(String key){ String keyName = keysMap.get(key); if (keyName != null){ return keyName; } return ""; //key wasn't defined in keys properties file }
get the key name to use in log from the logging keys map public String getKeyValue(String key){ String keyName = keysMap.get(key); if (keyName != null){ return keyName; } return ""; //key wasn't defined in keys properties file }
61
56
219
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4d4b62575882e0a0d34da5f0a8fd53ebc7a6b1e484bcff5ee1d0ffb7058fecd6
Apache-2.0
permissive
https://github.com/foundation-runtime/logging/blob/master/LICENSE
52c4819ce9b7bfcb59336fb6
foundation-runtime/logging
logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/HttpLogger.java
HttpLogger.start
https://github.com/foundation-runtime/logging/blob/cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6/logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/HttpLogger.java#L55-L57
train
java
********* Public methods *********
public static void start(final Logger logger, final Logger auditor, final HttpServletRequest request) { start(logger, auditor, request, null); }
********* Public methods ********* public static void start(final Logger logger, final Logger auditor, final HttpServletRequest request) { start(logger, auditor, request, null); }
35
34
156
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
bd20f8c7b14652b666a1e1ec624cbc8601e953699ed832faabeb6a448b4b2c53
Apache-2.0
permissive
https://github.com/foundation-runtime/logging/blob/master/LICENSE
1544c768e5b5fe993b3b2645
foundation-runtime/logging
logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/HttpLogger.java
HttpLogger.startInstance
https://github.com/foundation-runtime/logging/blob/cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6/logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/HttpLogger.java#L117-L124
train
java
********* Private methods *********
protected void startInstance(final HttpServletRequest request, final String requestBody) { try { addPropertiesStart(request, requestBody); writePropertiesToLog(this.logger, Level.DEBUG); } catch (Exception e) { logger.error("Failed logging HTTP transaction start: " + ...
********* Private methods ********* protected void startInstance(final HttpServletRequest request, final String requestBody) { try { addPropertiesStart(request, requestBody); writePropertiesToLog(this.logger, Level.DEBUG); } catch (Exception e) { logger.error("Failed...
70
35
355
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
14cec96c6c8cf3dc253b9d389ae5106dbe67a8fce1ebc471e4a0675589a35181
Apache-2.0
permissive
https://github.com/foundation-runtime/logging/blob/master/LICENSE
9fa4cf22de631ba1c94b70e7
geomajas/geomajas-project-server
plugin/layer-geotools/geotools/src/main/java/org/geomajas/layer/geotools/GeoToolsFeatureModel.java
GeoToolsFeatureModel.getAttribute
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-geotools/geotools/src/main/java/org/geomajas/layer/geotools/GeoToolsFeatureModel.java#L68-L71
train
java
FeatureModel implementation:
@Override public Attribute getAttribute(Object feature, String name) throws LayerException { return convertAttribute(asFeature(feature).getAttribute(name), name); }
FeatureModel implementation: @Override public Attribute getAttribute(Object feature, String name) throws LayerException { return convertAttribute(asFeature(feature).getAttribute(name), name); }
35
28
168
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5777780ad0c5dd94c08be0668a1b67c0f22ed46b3b9650b655413b558fc927d1
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
3c6e6b14bc485fc9de2ae0e1
foundation-runtime/logging
logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/CompositeRoller.java
CompositeRoller.roll
https://github.com/foundation-runtime/logging/blob/cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6/logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/CompositeRoller.java#L51-L58
train
java
Delegates file rolling to composed objects. @see FileRollable#roll(org.apache.log4j.spi.LoggingEvent)
public final boolean roll(final LoggingEvent loggingEvent) { for (int i = 0; i < this.fileRollables.length; i++) { if (this.fileRollables[i].roll(loggingEvent)) { return true; } } return false; }
Delegates file rolling to composed objects. @see FileRollable#roll(org.apache.log4j.spi.LoggingEvent) public final boolean roll(final LoggingEvent loggingEvent) { for (int i = 0; i < this.fileRollables.length; i++) { if (this.fileRollables[i].roll(loggingEvent)) { return true; } } retu...
83
102
229
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
42dc8975b6d9d6dde880cc40aaf437d32937cfaa3cbf85deae504596f1fdf546
Apache-2.0
permissive
https://github.com/foundation-runtime/logging/blob/master/LICENSE
5195b3e9269171bb95ca3ecf
geomajas/geomajas-project-server
command/src/main/java/org/geomajas/command/dto/GetVectorTileRequest.java
GetVectorTileRequest.getCacheId
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/command/src/main/java/org/geomajas/command/dto/GetVectorTileRequest.java#L287-L301
train
java
String identifier which is guaranteed to include sufficient information to assure to be different for two instances which could produce different result. It is typically used as basis for calculation of hash codes (like MD5, SHA1, SHA2 etc) of (collections of) objects. @return cacheId @since 1.8.0
public String getCacheId() { return "GetVectorTileRequest{" + "code=" + code + ", layerId=" + getLayerId() + ", crs=" + getCrs() + ", scale=" + scale + ", panOrigin=" + panOrigin + ", filter='" + filter + '\'' + ", crs='" + crs + '\'' + ", renderer='" + renderer + '\'' + ", styleIn...
String identifier which is guaranteed to include sufficient information to assure to be different for two instances which could produce different result. It is typically used as basis for calculation of hash codes (like MD5, SHA1, SHA2 etc) of (collections of) objects. @return cacheId @since 1.8.0 public String getCa...
205
299
432
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e10410976dd6ea0472e1885ded06216b2e8392b81fe812a551e957dcb69d2a66
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
4c6038f66af935992923e956
geomajas/geomajas-project-server
command/src/main/java/org/geomajas/command/dto/GetVectorTileRequest.java
GetVectorTileRequest.isPartOf
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/command/src/main/java/org/geomajas/command/dto/GetVectorTileRequest.java#L343-L354
train
java
Check if this request is part of the specified request. This is the case if both requests have equal properties and the specified request is asking for the same or more paint operations than this one. @param request another request @return true if the current request is contained in the specified request @since 1.10.0
public boolean isPartOf(GetVectorTileRequest request) { if (Math.abs(request.scale - scale) > EQUALS_DELTA) { return false; } if (code != null ? !code.equals(request.code) : request.code != null) { return false; } if (crs != null ? !crs.equals(request.crs) : request.crs != null) { return false; } if (filter != ...
Check if this request is part of the specified request. This is the case if both requests have equal properties and the specified request is asking for the same or more paint operations than this one. @param request another request @return true if the current request is contained in the specified request @since 1.10.0...
296
320
875
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2a713a8b3b7b6fa75fcd655363e45dd766286fd9b54892f85b25e5d908dc03bf
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
3afb6b8f7b81f5d940371759
foundation-runtime/logging
logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/TimeBasedRoller.java
TimeBasedRoller.roll
https://github.com/foundation-runtime/logging/blob/cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6/logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/TimeBasedRoller.java#L85-L96
train
java
Not thread-safe. @see FileRollable#roll(org.apache.log4j.spi.LoggingEvent)
public final boolean roll(final LoggingEvent loggingEvent) { boolean rolled = false; this.takeTimeSample(loggingEvent); final long nextRolloverTime = this.getNextRolloverTimeMillis(); if (this.isRolloverDue(nextRolloverTime)) { super.roll(this.sampledTime()); this.updateNextRolloverTime(); ...
Not thread-safe. @see FileRollable#roll(org.apache.log4j.spi.LoggingEvent) public final boolean roll(final LoggingEvent loggingEvent) { boolean rolled = false; this.takeTimeSample(loggingEvent); final long nextRolloverTime = this.getNextRolloverTimeMillis(); if (this.isRolloverDue(nextRolloverTime)) {...
114
75
396
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4542b25551ca687fb5d673c09614c47a49fc5dfdab34391f86018bc4308de205
Apache-2.0
permissive
https://github.com/foundation-runtime/logging/blob/master/LICENSE
4e000272cc66fe70968d71e5
geomajas/geomajas-project-server
impl/src/main/java/org/geomajas/spring/DependencyCheckPostProcessor.java
DependencyCheckPostProcessor.checkPluginDependencies
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/impl/src/main/java/org/geomajas/spring/DependencyCheckPostProcessor.java#L55-L117
train
java
Finish initializing. @throws GeomajasException oops
@PostConstruct protected void checkPluginDependencies() throws GeomajasException { if ("true".equals(System.getProperty("skipPluginDependencyCheck"))) { return; } if (null == declaredPlugins) { return; } // start by going through all plug-ins to build a map of versions for plug-in keys // includes ...
Finish initializing. @throws GeomajasException oops @PostConstruct protected void checkPluginDependencies() throws GeomajasException { if ("true".equals(System.getProperty("skipPluginDependencyCheck"))) { return; } if (null == declaredPlugins) { return; } // start by going through all plug-ins to b...
542
52
2,376
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
abe374222fa423ae14acaa29ec925a35c8a47ab09744cec87ae26d23a69bf129
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
0629dbb7c63d6fee524f6681
geomajas/geomajas-project-server
impl/src/main/java/org/geomajas/spring/DependencyCheckPostProcessor.java
DependencyCheckPostProcessor.checkVersion
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/impl/src/main/java/org/geomajas/spring/DependencyCheckPostProcessor.java#L128-L148
train
java
Check the version to assure it is allowed. @param pluginName plugin name which needs the dependency @param dependency dependency which needs to be verified @param requestedVersion requested/minimum version @param availableVersion available version @return version check problem or empty string when all is fine
String checkVersion(String pluginName, String dependency, String requestedVersion, String availableVersion) { if (null == availableVersion) { return "Dependency " + dependency + " not found for " + pluginName + ", version " + requestedVersion + " or higher needed.\n"; } if (requestedVersion.startsWith(EXP...
Check the version to assure it is allowed. @param pluginName plugin name which needs the dependency @param dependency dependency which needs to be verified @param requestedVersion requested/minimum version @param availableVersion available version @return version check problem or empty string when all is fine String ...
287
311
1,017
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
cbb4b3a38f9b4a0562b8d262ea39abf5f2f39bd56ccbafa8130a99279fc74755
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
07580cca87c54be1c4e77b62
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/metadata/FieldTypeClasses.java
FieldTypeClasses.newFieldType
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/metadata/FieldTypeClasses.java#L51-L158
train
java
Returns a {@link FieldType} instance for the given sql type (see {@link java.sql.Types}) as specified in JDBC 3.0 specification (see JDBC 3.0 specification <em>Appendix B, Data Type Conversion Tables</em>). @param jdbcType Specify the type to look for. @return A new specific {@link FieldType} instance.
static FieldType newFieldType(JdbcType jdbcType) { FieldType result = null; switch (jdbcType.getType()) { case Types.ARRAY: result = new ArrayFieldType(); break; case Types.BIGINT: result = new LongFieldType(); ...
Returns a {@link FieldType} instance for the given sql type (see {@link java.sql.Types}) as specified in JDBC 3.0 specification (see JDBC 3.0 specification <em>Appendix B, Data Type Conversion Tables</em>). @param jdbcType Specify the type to look for. @return A new specific {@link FieldType} instance. static FieldTy...
705
304
3,820
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
a6bc36002b3d6bfe4b65bde9eaf5990d318f7fa9405f457b9e5998e6ec3d7271
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
fa30dd828127ca0c1c5afd4d
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java
ClassDescriptorConstraints.check
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java#L45-L58
train
java
Checks the given class descriptor. @param classDef The class descriptor @param checkLevel The amount of checks to perform @exception ConstraintException If a constraint has been violated
public void check(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { ensureNoTableInfoIfNoRepositoryInfo(classDef, checkLevel); checkModifications(classDef, checkLevel); checkExtents(classDef, checkLevel); ensureTableIfNecessary(classDef, checkLevel); ...
Checks the given class descriptor. @param classDef The class descriptor @param checkLevel The amount of checks to perform @exception ConstraintException If a constraint has been violated public void check(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { ensureNoTableInfoIfN...
177
189
693
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
7953f8c4fd8351fd672ed31ccbed77d6a9ba3a797e80b98251935f06c3645c59
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
60ed218a776690efe3367445
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java
ClassDescriptorConstraints.ensureNoTableInfoIfNoRepositoryInfo
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java#L66-L72
train
java
Ensures that generate-table-info is set to false if generate-repository-info is set to false. @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in all levels)
private void ensureNoTableInfoIfNoRepositoryInfo(ClassDescriptorDef classDef, String checkLevel) { if (!classDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_GENERATE_REPOSITORY_INFO, true)) { classDef.setProperty(PropertyHelper.OJB_PROPERTY_GENERATE_TABLE_INFO, "false"); ...
Ensures that generate-table-info is set to false if generate-repository-info is set to false. @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in all levels) private void ensureNoTableInfoIfNoRepositoryInfo(ClassDescriptorDef classDef, String checkLevel) ...
109
218
328
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
6e14e59c2cd834aefaedfd4be19607632659cbb00741900bc20f22d8c3cb47c2
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
258ab2e0164522cf40a591f0
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java
ClassDescriptorConstraints.checkModifications
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java#L81-L135
train
java
Checks that the modified features exist. @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in basic and strict) @exception ConstraintException If the constraint has been violated
private void checkModifications(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } HashMap features = new HashMap(); FeatureDescriptorDef def; for (Itera...
Checks that the modified features exist. @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in basic and strict) @exception ConstraintException If the constraint has been violated private void checkModifications(ClassDescriptorDef classDef, String checkLevel) ...
452
238
2,228
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
1f504d6d0d606bde21abd58cabdb4814f686197d464acacd175ee9a00869d1e6
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
b303b51484c6a5967f8d40ac
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java
ClassDescriptorConstraints.checkExtents
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java#L144-L197
train
java
Checks the extents specifications and removes unnecessary entries. @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in basic and strict) @exception ConstraintException If the constraint has been violated
private void checkExtents(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } HashMap processedClasses = new HashMap(); InheritanceHelper helper = new Inher...
Checks the extents specifications and removes unnecessary entries. @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in basic and strict) @exception ConstraintException If the constraint has been violated private void checkExtents(ClassDescriptorDef classDef,...
418
264
2,223
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4642735e039a1a24fc30cb5f3c8bf4a130b6e9912b1b18f806148d46a9657391
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
851beb7d74f8ca0ad63bc11b
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java
ClassDescriptorConstraints.ensureTableIfNecessary
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java#L206-L215
train
java
Makes sure that the class descriptor has a table attribute if it requires it (i.e. it is relevant for the repository descriptor). @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in all levels)
private void ensureTableIfNecessary(ClassDescriptorDef classDef, String checkLevel) { if (classDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_OJB_PERSISTENT, false)) { if (!classDef.hasProperty(PropertyHelper.OJB_PROPERTY_TABLE)) { classDef.setProper...
Makes sure that the class descriptor has a table attribute if it requires it (i.e. it is relevant for the repository descriptor). @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in all levels) private void ensureTableIfNecessary(ClassDescriptorDef classDef,...
130
254
423
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5c1b0fbca93fd86d05827f5ccc464283cd66f46688c83192badc3533bb2c9b8d
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
e756d530c4feca0c72e9834b
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java
ClassDescriptorConstraints.checkFactoryClassAndMethod
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java#L224-L312
train
java
Checks the given class descriptor for correct factory-class and factory-method. @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in basic (partly) and strict) @exception ConstraintException If the constraint has been violated
private void checkFactoryClassAndMethod(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } String factoryClassName = classDef.getProperty(PropertyHelper.OJB_PROPERTY_FACTORY_CLASS); ...
Checks the given class descriptor for correct factory-class and factory-method. @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in basic (partly) and strict) @exception ConstraintException If the constraint has been violated private void checkFactoryClassAn...
759
286
4,198
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
cfc2b541dee3780faeb217d4d0745bdb74238080b0150055896391c41c5f3457
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
dc7f161bfe7ce11db8d57a82
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java
ClassDescriptorConstraints.checkInitializationMethod
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java#L321-L381
train
java
Checks the initialization-method of given class descriptor. @param classDef The class descriptor @param checkLevel The current check level (this constraint is only checked in strict) @exception ConstraintException If the constraint has been violated
private void checkInitializationMethod(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (!CHECKLEVEL_STRICT.equals(checkLevel)) { return; } String initMethodName = classDef.getProperty(PropertyHelper.OJB_PROPERTY_INITIALIZATI...
Checks the initialization-method of given class descriptor. @param classDef The class descriptor @param checkLevel The current check level (this constraint is only checked in strict) @exception ConstraintException If the constraint has been violated private void checkInitializationMethod(ClassDescriptorDef classDef...
412
252
2,077
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
dae763eeaa7ac4b6ecae032a69c4919733aa514a924b74602f7628c5ee84d784
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
d4629b7b48b5d3345724d686
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java
ClassDescriptorConstraints.checkPrimaryKey
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java#L390-L405
train
java
Checks whether given class descriptor has a primary key. @param classDef The class descriptor @param checkLevel The current check level (this constraint is only checked in strict) @exception ConstraintException If the constraint has been violated
private void checkPrimaryKey(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } if (classDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_GENERATE_TABLE_INFO, true) && cla...
Checks whether given class descriptor has a primary key. @param classDef The class descriptor @param checkLevel The current check level (this constraint is only checked in strict) @exception ConstraintException If the constraint has been violated private void checkPrimaryKey(ClassDescriptorDef classDef, String chec...
145
249
587
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
baeab957bb664e4d5b8e8d37201f06afa0932a88309b83a1de6c763e3c1679ca
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
d58b8f5e4ae7867cd0181697
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java
ClassDescriptorConstraints.checkRowReader
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java#L414-L441
train
java
Checks the given class descriptor for correct row-reader setting. @param classDef The class descriptor @param checkLevel The current check level (this constraint is only checked in strict) @exception ConstraintException If the constraint has been violated
private void checkRowReader(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (!CHECKLEVEL_STRICT.equals(checkLevel)) { return; } String rowReaderName = classDef.getProperty(PropertyHelper.OJB_PROPERTY_ROW_READER); ...
Checks the given class descriptor for correct row-reader setting. @param classDef The class descriptor @param checkLevel The current check level (this constraint is only checked in strict) @exception ConstraintException If the constraint has been violated private void checkRowReader(ClassDescriptorDef classDef, Str...
246
258
1,059
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
75f5707968e01fb4e1b6273b6ff92a9ce0f2c8bca53a10c6b8d0bda05b54704d
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
d027bbcb24a540bb2cbeab20
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java
ClassDescriptorConstraints.checkObjectCache
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java#L450-L484
train
java
Checks the given class descriptor for correct object cache setting. @param classDef The class descriptor @param checkLevel The current check level (this constraint is only checked in strict) @exception ConstraintException If the constraint has been violated
private void checkObjectCache(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (!CHECKLEVEL_STRICT.equals(checkLevel)) { return; } ObjectCacheDef objCacheDef = classDef.getObjectCache(); if (objCacheDef == null) ...
Checks the given class descriptor for correct object cache setting. @param classDef The class descriptor @param checkLevel The current check level (this constraint is only checked in strict) @exception ConstraintException If the constraint has been violated private void checkObjectCache(ClassDescriptorDef classDef,...
293
260
1,317
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8b1da331b018c8bd0951c20fac03d37b1158d50beb43387481e0d0831cbcc158
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
e8ddd2762256174789ca87e1
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java
ClassDescriptorConstraints.checkProcedures
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ClassDescriptorConstraints.java#L493-L551
train
java
Checks the given class descriptor for correct procedure settings. @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in basic and strict) @exception ConstraintException If the constraint has been violated
private void checkProcedures(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } ProcedureDef procDef; String type; String name; String fieldN...
Checks the given class descriptor for correct procedure settings. @param classDef The class descriptor @param checkLevel The current check level (this constraint is checked in basic and strict) @exception ConstraintException If the constraint has been violated private void checkProcedures(ClassDescriptorDef classDe...
537
263
2,643
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
0fceaa37bd240dacc2204afbcdbe034c34232d84d6372c01c10282e47b28e722
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
a26006cc21f92b02cc7c5bc7
kuali/ojb-1.0.4
src/jca/org/apache/ojb/otm/connector/OTMJCAManagedConnection.java
OTMJCAManagedConnection.getConnection
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/jca/org/apache/ojb/otm/connector/OTMJCAManagedConnection.java#L73-L81
train
java
get the underlying wrapped connection @return OTMConnection raw connection to the OTM.
OTMConnection getConnection() { if (m_connection == null) { OTMConnectionRuntimeException ex = new OTMConnectionRuntimeException("Connection is null."); sendEvents(ConnectionEvent.CONNECTION_ERROR_OCCURRED, ex, null); } return m_connection; }
get the underlying wrapped connection @return OTMConnection raw connection to the OTM. OTMConnection getConnection() { if (m_connection == null) { OTMConnectionRuntimeException ex = new OTMConnectionRuntimeException("Connection is null."); sendEvents(ConnectionEvent.CON...
74
86
314
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
58b74b060fd1c4592aad0579a34cc0b7b3eed6e8c431ae117a0f2728a14640c5
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
725edd51c109429c9e53dacc
kuali/ojb-1.0.4
src/jca/org/apache/ojb/otm/connector/OTMJCAManagedConnection.java
OTMJCAManagedConnection.sendEvents
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/jca/org/apache/ojb/otm/connector/OTMJCAManagedConnection.java#L325-L382
train
java
Section 6.5.6 of the JCA 1.5 spec instructs ManagedConnection instances to notify connection listeners with close/error and local transaction-related events to its registered set of listeners. The events for begin/commit/rollback are only sent if the application server did NOT initiate the actions. This method dispat...
void sendEvents(int eventType, Exception ex, Object connectionHandle) { ConnectionEvent ce = null; if (ex == null) { ce = new ConnectionEvent(this, eventType); } else { ce = new ConnectionEvent(this, eventType, ex); } ...
Section 6.5.6 of the JCA 1.5 spec instructs ManagedConnection instances to notify connection listeners with close/error and local transaction-related events to its registered set of listeners. The events for begin/commit/rollback are only sent if the application server did NOT initiate the actions. This method dispat...
492
584
2,345
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ec2da31cffed0d1323c64aa9d4b8d251c3d9c3039212e8f65c0be583748d92eb
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
eb8b82fdd5cdbbe4913a7632
kuali/ojb-1.0.4
src/java/org/apache/ojb/odmg/locking/RepeatableReadStrategy.java
RepeatableReadStrategy.upgradeLock
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/odmg/locking/RepeatableReadStrategy.java#L102-L135
train
java
acquire a lock upgrade (from read to write) lock on Object obj for Transaction tx. @param tx the transaction requesting the lock @param obj the Object to be locked @return true if successful, else false
public boolean upgradeLock(TransactionImpl tx, Object obj) { LockEntry writer = getWriter(obj); if (writer == null) { Collection readers = this.getReaders(obj); if (readers.size() == 1) { LockEntry reader = (LockEntry) readers.itera...
acquire a lock upgrade (from read to write) lock on Object obj for Transaction tx. @param tx the transaction requesting the lock @param obj the Object to be locked @return true if successful, else false public boolean upgradeLock(TransactionImpl tx, Object obj) { LockEntry writer = getWriter(obj); ...
227
202
999
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
17e954820b9ea2f6b9863da041e15cf7b7508bc66fab4ffb2e9b4852196ce31e
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
321515bcc41a55edd6feb84e
kuali/ojb-1.0.4
src/java/org/apache/ojb/odmg/locking/RepeatableReadStrategy.java
RepeatableReadStrategy.releaseLock
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/odmg/locking/RepeatableReadStrategy.java#L144-L158
train
java
release a lock on Object obj for Transaction tx. @param tx the transaction releasing the lock @param obj the Object to be unlocked @return true if successful, else false
public boolean releaseLock(TransactionImpl tx, Object obj) { LockEntry writer = getWriter(obj); if (writer != null && writer.isOwnedBy(tx)) { removeWriter(writer); return true; } if (hasReadLock(tx, obj)) { removeReader(tx...
release a lock on Object obj for Transaction tx. @param tx the transaction releasing the lock @param obj the Object to be unlocked @return true if successful, else false public boolean releaseLock(TransactionImpl tx, Object obj) { LockEntry writer = getWriter(obj); if (writer != null && writer.i...
113
169
394
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2e22cbfa169a447646a35cc427cf9e60859810a52cfa837b290f3dabf105bc2e
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
e616ab6ea6132ba1074689da
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/metadata/RepositoryTags.java
RepositoryTags.getOpeningTagById
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/metadata/RepositoryTags.java#L231-L234
train
java
returns the opening xml-tag associated with the repository element with id <code>elementId</code>. @return the resulting tag
public String getOpeningTagById(int elementId, String attributes) { return "<" + table.getKeyByValue(new Integer(elementId)) + " " + attributes + ">"; }
returns the opening xml-tag associated with the repository element with id <code>elementId</code>. @return the resulting tag public String getOpeningTagById(int elementId, String attributes) { return "<" + table.getKeyByValue(new Integer(elementId)) + " " + attributes + ">"; }
65
124
171
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e0e77f4c3bca9094eeb6095d03e037076ec9145ae45f3507e19f2ed5d50b85a4
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
6e2255719e535b7764e05ec8
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/metadata/RepositoryTags.java
RepositoryTags.getAttribute
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/metadata/RepositoryTags.java#L242-L245
train
java
returns the opening but non-closing xml-tag associated with the repository element with id <code>elementId</code>. @return the resulting tag
public String getAttribute(int elementId, String value) { return table.getKeyByValue(new Integer(elementId)) + "=\"" + value + "\""; }
returns the opening but non-closing xml-tag associated with the repository element with id <code>elementId</code>. @return the resulting tag public String getAttribute(int elementId, String value) { return table.getKeyByValue(new Integer(elementId)) + "=\"" + value + "\""; }
65
140
153
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
07d637a07f3fb3d899697461a246c5adfe17cfaea298fd92a0f26f229dc95a7f
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
d1d304230b9199d3ed7dab97
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/metadata/RepositoryTags.java
RepositoryTags.getIdByTag
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/metadata/RepositoryTags.java#L263-L270
train
java
returns the repository element id associated with the xml-tag literal <code>tag</code>. @return the resulting repository element id. @throws NullPointerException if no value was found for <b>tag</b>
public int getIdByTag(String tag) { Integer value = (Integer) table.getValueByKey(tag); if (value == null) LoggerFactory.getDefaultLogger().error( "** " + this.getClass().getName() + ": Tag '" + tag + "' is not defined. **"); return value.intValue(); }
returns the repository element id associated with the xml-tag literal <code>tag</code>. @return the resulting repository element id. @throws NullPointerException if no value was found for <b>tag</b> public int getIdByTag(String tag) { Integer value = (Integer) table.getValueByKey(tag); if (value...
106
198
319
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
a5ec90a1bc78e6d8fafbb58eec15da7eacc91bb75fc0372657fe5c049b514811
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
1ead7f208e43964d81174bdd
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/metadata/RepositoryTags.java
RepositoryTags.getCompleteTagById
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/metadata/RepositoryTags.java#L277-L283
train
java
returns the opening xml-tag associated with the repository element with id <code>elementId</code>. @return the resulting tag
public String getCompleteTagById(int elementId, String characters) { String result = getOpeningTagById(elementId); result += characters; result += getClosingTagById(elementId); return result; }
returns the opening xml-tag associated with the repository element with id <code>elementId</code>. @return the resulting tag public String getCompleteTagById(int elementId, String characters) { String result = getOpeningTagById(elementId); result += characters; result += getClosingTagBy...
73
124
239
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
eade7b6d85987f8736c0933e80a2a9d72875e9c8fde52aa404c7345d1de28708
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
8b3c9944bf9d2bd5dae83d64
geomajas/geomajas-project-server
plugin/print/print/src/main/java/org/geomajas/plugin/printing/component/impl/PrintComponentImpl.java
PrintComponentImpl.calculateSize
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/print/print/src/main/java/org/geomajas/plugin/printing/component/impl/PrintComponentImpl.java#L139-L170
train
java
Calculates the size based constraint width and height if present, otherwise from children sizes.
public void calculateSize(PdfContext context) { float width = 0; float height = 0; for (PrintComponent<?> child : children) { child.calculateSize(context); float cw = child.getBounds().getWidth() + 2 * child.getConstraint().getMarginX(); float ch = child.getBounds().getHeight() + 2 * child.getConstraint(...
Calculates the size based constraint width and height if present, otherwise from children sizes. public void calculateSize(PdfContext context) { float width = 0; float height = 0; for (PrintComponent<?> child : children) { child.calculateSize(context); float cw = child.getBounds().getWidth() + 2 * child.ge...
281
96
1,049
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
a4a03378cfc5116d5eafbe99f1b9f87a9a1bba788ddc5d51a3fabed7cc5a2ecd
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
eae0be6298eb24a7ce6c5b9e
geomajas/geomajas-project-server
plugin/print/print/src/main/java/org/geomajas/plugin/printing/component/impl/PrintComponentImpl.java
PrintComponentImpl.setChildren
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/print/print/src/main/java/org/geomajas/plugin/printing/component/impl/PrintComponentImpl.java#L354-L360
train
java
Set child components. @param children children
public void setChildren(List<PrintComponent<?>> children) { this.children = children; // needed for Json unmarshall !!!! for (PrintComponent<?> child : children) { child.setParent(this); } }
Set child components. @param children children public void setChildren(List<PrintComponent<?>> children) { this.children = children; // needed for Json unmarshall !!!! for (PrintComponent<?> child : children) { child.setParent(this); } }
58
47
202
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b229a9135c72ad322ceac6df1e2f4920fcf318958f8fe5a66f281afb9f99b559
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
5b5d61db4c6390d4c578aa1b
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/cache/ObjectCacheDefaultImpl.java
ObjectCacheDefaultImpl.cache
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/cache/ObjectCacheDefaultImpl.java#L225-L228
train
java
Makes object persistent to the Objectcache. I'm using soft-references to allow gc reclaim unused objects even if they are still cached.
public void cache(Identity oid, Object obj) { doInternalCache(oid, obj, ObjectCacheInternal.TYPE_UNKNOWN); }
Makes object persistent to the Objectcache. I'm using soft-references to allow gc reclaim unused objects even if they are still cached. public void cache(Identity oid, Object obj) { doInternalCache(oid, obj, ObjectCacheInternal.TYPE_UNKNOWN); }
57
135
127
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
89e4f52834fd979793f1cc043d97f7592a9aeea4893c5f1ff9e61e60caaf9bb9
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
172c6f030591e2a93e051203
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/cache/ObjectCacheDefaultImpl.java
ObjectCacheDefaultImpl.lookup
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/cache/ObjectCacheDefaultImpl.java#L254-L290
train
java
Lookup object with Identity oid in objectTable. Returns null if no matching id is found
public Object lookup(Identity oid) { processQueue(); hitCount++; Object result = null; CacheEntry entry = (CacheEntry) objectTable.get(buildKey(oid)); if(entry != null) { result = entry.get(); if(result == null || entry.getLifetime()...
Lookup object with Identity oid in objectTable. Returns null if no matching id is found public Object lookup(Identity oid) { processQueue(); hitCount++; Object result = null; CacheEntry entry = (CacheEntry) objectTable.get(buildKey(oid)); if(entry != null) {...
212
87
1,127
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f8adaf3a1d318107555d546b614add9fbea20c843488856b2c0ea73e8a4ec6a8
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
55539f926006294fb47f6f41
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/cache/ObjectCacheDefaultImpl.java
ObjectCacheDefaultImpl.remove
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/cache/ObjectCacheDefaultImpl.java#L295-L304
train
java
Removes an Object from the cache.
public void remove(Identity oid) { //processQueue(); if(oid != null) { removeTracedIdentity(oid); objectTable.remove(buildKey(oid)); if(log.isDebugEnabled()) log.debug("Remove object " + oid); } }
Removes an Object from the cache. public void remove(Identity oid) { //processQueue(); if(oid != null) { removeTracedIdentity(oid); objectTable.remove(buildKey(oid)); if(log.isDebugEnabled()) log.debug("Remove object " + oid); } }
66
33
281
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
7e9d9e862e9748adae8099cbf966808ce9fc9086767254cf2d1eda8ff577b33d
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
e36f75de40e154a36f396849
foundation-runtime/logging
logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/HistoryLogFileScavenger.java
HistoryLogFileScavenger.relevant
https://github.com/foundation-runtime/logging/blob/cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6/logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/HistoryLogFileScavenger.java#L95-L110
train
java
Get a log file and last relevant date, and check if the log file is relevant @param currentLogFile The log file @param lastRelevantDate The last date which files should be keeping since @return false if the file should be deleted, true if it does not.
private boolean relevant(File currentLogFile, GregorianCalendar lastRelevantDate) { String fileName=currentLogFile.getName(); Pattern p = Pattern.compile(APPENER_DATE_DEFAULT_PATTERN); Matcher m = p.matcher(fileName); if(m.find()){ int year=Integer.parseInt(m.group(1)); int month=Integer.parseInt(m.group(...
Get a log file and last relevant date, and check if the log file is relevant @param currentLogFile The log file @param lastRelevantDate The last date which files should be keeping since @return false if the file should be deleted, true if it does not. private boolean relevant(File currentLogFile, GregorianCalendar las...
201
251
632
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9532e8feb213bf4702b86802a0f757a586eb53ec11164f72d06b83510311801d
Apache-2.0
permissive
https://github.com/foundation-runtime/logging/blob/master/LICENSE
93647cef0f3cb04753a49d07
foundation-runtime/logging
logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/HistoryLogFileScavenger.java
HistoryLogFileScavenger.getLastReleventDate
https://github.com/foundation-runtime/logging/blob/cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6/logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/HistoryLogFileScavenger.java#L117-L122
train
java
Get the last date to keep logs from, by a given current date. @param currentDate the date of today @return the last date to keep log files from.
private GregorianCalendar getLastReleventDate(GregorianCalendar currentDate) { int age=this.getProperties().getMaxFileAge(); GregorianCalendar result=new GregorianCalendar(currentDate.get(Calendar.YEAR),currentDate.get(Calendar.MONTH),currentDate.get(Calendar.DAY_OF_MONTH)); result.add(Calendar.DAY_OF_MONTH, -age...
Get the last date to keep logs from, by a given current date. @param currentDate the date of today @return the last date to keep log files from. private GregorianCalendar getLastReleventDate(GregorianCalendar currentDate) { int age=this.getProperties().getMaxFileAge(); GregorianCalendar result=new GregorianCalenda...
102
144
342
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
7317abae3991e85cee92ae738ab78be5ca4fd76e81c766bfa9b29e1277c25eb7
Apache-2.0
permissive
https://github.com/foundation-runtime/logging/blob/master/LICENSE
fafcf61c727ee4fcdec7b31e
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java
TorqueModelDef.addTableFor
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java#L67-L140
train
java
Adds a table for the given class descriptor (if necessary). @param classDef The class descriptor
private void addTableFor(ClassDescriptorDef classDef) { String name = classDef.getProperty(PropertyHelper.OJB_PROPERTY_TABLE); TableDef tableDef = getTable(name); FieldDescriptorDef fieldDef; ReferenceDescriptorDef refDef; Colle...
Adds a table for the given class descriptor (if necessary). @param classDef The class descriptor private void addTableFor(ClassDescriptorDef classDef) { String name = classDef.getProperty(PropertyHelper.OJB_PROPERTY_TABLE); TableDef tableDef = getTable(name);...
577
97
3,155
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
7de982ceef641094cffba5c0763974303b863ef2e8061f3876f1704fc57550db
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
bc80db97fc682339b055f29c
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java
TorqueModelDef.addColumnFor
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java#L149-L190
train
java
Generates a column for the given field and adds it to the table. @param fieldDef The field @param tableDef The table @return The column def
private ColumnDef addColumnFor(FieldDescriptorDef fieldDef, TableDef tableDef) { String name = fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_COLUMN); ColumnDef columnDef = tableDef.getColumn(name); if (columnDef == null) { columnDef = new ColumnDef(name...
Generates a column for the given field and adds it to the table. @param fieldDef The field @param tableDef The table @return The column def private ColumnDef addColumnFor(FieldDescriptorDef fieldDef, TableDef tableDef) { String name = fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_COLUMN); ...
423
140
2,189
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
68290def229dfaf850e4d2f8dd432b22ba3b3b62e43686e1e4a1db3d6b4c3800
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
7144da0d7b37a5624894d0b9
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java
TorqueModelDef.addForeignkeys
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java#L198-L237
train
java
Adds foreignkey(s) for the reference to the corresponding table(s). @param refDef The reference @param tableDef The table of the class owning the reference
private void addForeignkeys(ReferenceDescriptorDef refDef, TableDef tableDef) { if (!refDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_DATABASE_FOREIGNKEY, true)) { // we shall not generate a database foreignkey return; } // a foreignkey is added ...
Adds foreignkey(s) for the reference to the corresponding table(s). @param refDef The reference @param tableDef The table of the class owning the reference private void addForeignkeys(ReferenceDescriptorDef refDef, TableDef tableDef) { if (!refDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_DATABAS...
389
158
1,808
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3ab54b0e779c9fb40a049fc47d95dee910250ed1e8d98a512aa294bd39fb2c6f
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
ae404cee847720db00a106ed
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java
TorqueModelDef.addForeignkeys
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java#L245-L330
train
java
Adds foreignkey(s) for the collection to the corresponding table(s). @param collDef The collection @param tableDef The table
private void addForeignkeys(CollectionDescriptorDef collDef, TableDef tableDef) { if (!collDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_DATABASE_FOREIGNKEY, true)) { // we shall not generate a database foreignkey return; } // a foreignkey is add...
Adds foreignkey(s) for the collection to the corresponding table(s). @param collDef The collection @param tableDef The table private void addForeignkeys(CollectionDescriptorDef collDef, TableDef tableDef) { if (!collDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_DATABASE_FOREIGNKEY, true)) ...
747
126
3,940
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
917fd677efa595098ea178cf39beee1734543b6d1ee69c13be6205d08bf7c2ab
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
ff42d435a49c4dd2ab3b8d97
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java
TorqueModelDef.getColumns
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java#L338-L349
train
java
Extracts the list of columns from the given field list. @param fields The fields @return The corresponding columns
private List getColumns(List fields) { ArrayList columns = new ArrayList(); for (Iterator it = fields.iterator(); it.hasNext();) { FieldDescriptorDef fieldDef = (FieldDescriptorDef)it.next(); columns.add(fieldDef.getProperty(PropertyHelper.OJB_PROPERTY_COLUM...
Extracts the list of columns from the given field list. @param fields The fields @return The corresponding columns private List getColumns(List fields) { ArrayList columns = new ArrayList(); for (Iterator it = fields.iterator(); it.hasNext();) { FieldDescriptorDef fieldD...
89
115
367
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d9474fdfb83e3e5aa88e8e3ed3be8422bb53e53d098f5af26ff1dcd89e4fa0e3
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
4009c3ffd8232e68e3fa5749
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java
TorqueModelDef.containsCollectionAndMapsToDifferentTable
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java#L359-L373
train
java
Checks whether the given class maps to a different table but also has the given collection. @param origCollDef The original collection to search for @param origTableDef The original table @param classDef The class descriptor to test @return <code>true</code> if the class maps to a different table and has the coll...
private boolean containsCollectionAndMapsToDifferentTable(CollectionDescriptorDef origCollDef, TableDef origTableDef, ClassDescriptorDef classDef) { if (classDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_GENERATE_TABLE_INFO, true) && !origTableDef.getName().equals(classDef.getProperty(Pr...
Checks whether the given class maps to a different table but also has the given collection. @param origCollDef The original collection to search for @param origTableDef The original table @param classDef The class descriptor to test @return <code>true</code> if the class maps to a different table and has the coll...
196
326
698
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e228ebd3e35d0ba5febfa544633c5bec115609d13211cf0eb6fdc09ce435da5c
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
bc804654b5b1313beff61d65
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java
TorqueModelDef.getTargetTable
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java#L385-L432
train
java
Tries to return the single target table to which the given foreign key columns map in all m:n collections that target this indirection table. @param targetClassDef The original target class @param indirectionTable The indirection table @param foreignKeys The foreign keys columns in the indirection table pointin...
private String getTargetTable(ClassDescriptorDef targetClassDef, String indirectionTable, String foreignKeys) { ModelDef modelDef = (ModelDef)targetClassDef.getOwner(); String tableName = null; for (Iterator classIt = modelDef.getClasses(); classIt.hasNext();) { ...
Tries to return the single target table to which the given foreign key columns map in all m:n collections that target this indirection table. @param targetClassDef The original target class @param indirectionTable The indirection table @param foreignKeys The foreign keys columns in the indirection table pointin...
432
424
1,977
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
97b95fc919f84d2527e1195f742ab190263d75ed094abe88b86f87526cc2662f
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
83741f122f492739a8f542a4
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java
TorqueModelDef.getHierarchyTable
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java#L442-L480
train
java
Tries to return the single table to which all classes in the hierarchy with the given class as the root map. @param classDef The root class of the hierarchy @return The table name or <code>null</code> if the classes map to more than one table or no class in the hierarchy maps to a table
private String getHierarchyTable(ClassDescriptorDef classDef) { ArrayList queue = new ArrayList(); String tableName = null; queue.add(classDef); while (!queue.isEmpty()) { ClassDescriptorDef curClassDef = (ClassDescriptorDef)queue.get(0); ...
Tries to return the single table to which all classes in the hierarchy with the given class as the root map. @param classDef The root class of the hierarchy @return The table name or <code>null</code> if the classes map to more than one table or no class in the hierarchy maps to a table private String getHierarchyTab...
279
288
1,264
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3ae03f46cf32805b8e8de4f3efc66816c8e9cec6ae35ca12656bd84a419a8975
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
e3917891e9c6e9bb7b42f6ab
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java
TorqueModelDef.addIndex
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java#L488-L515
train
java
Adds an index to the table for the given index descriptor. @param indexDescDef The index descriptor @param tableDef The table
private void addIndex(IndexDescriptorDef indexDescDef, TableDef tableDef) { IndexDef indexDef = tableDef.getIndex(indexDescDef.getName()); if (indexDef == null) { indexDef = new IndexDef(indexDescDef.getName(), indexDescDef.getBooleanPr...
Adds an index to the table for the given index descriptor. @param indexDescDef The index descriptor @param tableDef The table private void addIndex(IndexDescriptorDef indexDescDef, TableDef tableDef) { IndexDef indexDef = tableDef.getIndex(indexDescDef.getName()); if (indexDef == null) ...
227
130
1,113
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2d2dfe6c9ab7c0c731566dbce690c2644d581303238d083c2584ab75d8098108
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
01a944599040f4056f90be9b
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java
TorqueModelDef.addIndirectionTable
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java#L522-L639
train
java
Adds the indirection table for the given collection descriptor. @param collDef The collection descriptor
private void addIndirectionTable(CollectionDescriptorDef collDef) { String tableName = collDef.getProperty(PropertyHelper.OJB_PROPERTY_INDIRECTION_TABLE); TableDef tableDef = getTable(tableName); if (tableDef == null) { tableDef = new TableDef(tableName); ...
Adds the indirection table for the given collection descriptor. @param collDef The collection descriptor private void addIndirectionTable(CollectionDescriptorDef collDef) { String tableName = collDef.getProperty(PropertyHelper.OJB_PROPERTY_INDIRECTION_TABLE); TableDef tableDef = getTable(tab...
1,215
105
6,459
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
40183fc3a60922fb3bfba590895b24c89a09f7e0956ffcce9a150e28bdd8b310
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
5a8a68652e8327167ac4db36
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java
TorqueModelDef.addTable
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/TorqueModelDef.java#L669-L673
train
java
Adds a table to this model. @param table The table
private void addTable(TableDef table) { table.setOwner(this); _tableDefs.put(table.getName(), table); }
Adds a table to this model. @param table The table private void addTable(TableDef table) { table.setOwner(this); _tableDefs.put(table.getName(), table); }
40
51
131
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
dc481634f5f0cb33c6cf78f12921f665122ae42f2b048fd3565bfbcd5d799a63
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
36764656b495c3b8f4957de5
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/InheritanceHelper.java
InheritanceHelper.getClass
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/InheritanceHelper.java#L38-L48
train
java
Retrieves the class object for the class with the given name. @param name The class name @return The class object @throws ClassNotFoundException If the class is not on the classpath (the exception message contains the class name)
public static Class getClass(String name) throws ClassNotFoundException { try { return Class.forName(name); } catch (ClassNotFoundException ex) { throw new ClassNotFoundException(name); } }
Retrieves the class object for the class with the given name. @param name The class name @return The class object @throws ClassNotFoundException If the class is not on the classpath (the exception message contains the class name) public static Class getClass(String name) throws ClassNotFoundException { ...
89
230
279
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
dc538a431d8482b646b17683e812f8a52cdddea1c340e09063f3ef15da5d3670
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
ec5959f59b5161171800a017
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/InheritanceHelper.java
InheritanceHelper.isSameOrSubTypeOf
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/InheritanceHelper.java#L58-L99
train
java
Determines whether the given type is the same or a sub type of the other type. @param type The type @param baseType The possible base type @param checkActualClasses Whether to use the actual classes for the test @return <code>true</code> If <code>type</code> specifies the same or a sub type of ...
public boolean isSameOrSubTypeOf(XClass type, String baseType, boolean checkActualClasses) throws ClassNotFoundException { String qualifiedBaseType = baseType.replace('$', '.'); if (type.getQualifiedName().equals(qualifiedBaseType)) { return true; } // ...
Determines whether the given type is the same or a sub type of the other type. @param type The type @param baseType The possible base type @param checkActualClasses Whether to use the actual classes for the test @return <code>true</code> If <code>type</code> specifies the same or a sub type of ...
354
416
1,388
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ce19bed9c7f9a92e281add0c3da1e0081aeb203e34f783342db5f824645fb1d9
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
3d72163a58627f7fa0e15561
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/InheritanceHelper.java
InheritanceHelper.isSameOrSubTypeOf
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/InheritanceHelper.java#L110-L124
train
java
Determines whether the given type is the same or a sub type of the other type. @param type The type @param baseType The possible base type @param checkActualClasses Whether to use the actual classes for the test @return <code>true</code> If <code>type</code> specifies the same or a sub type of ...
public boolean isSameOrSubTypeOf(ClassDescriptorDef type, String baseType, boolean checkActualClasses) throws ClassNotFoundException { if (type.getQualifiedName().equals(baseType.replace('$', '.'))) { return true; } else if (type.getOriginalClass() != null) ...
Determines whether the given type is the same or a sub type of the other type. @param type The type @param baseType The possible base type @param checkActualClasses Whether to use the actual classes for the test @return <code>true</code> If <code>type</code> specifies the same or a sub type of ...
208
416
564
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
96dcf8a34aac6daeb6b6fcc51c42b5f1aeedc128fad310e6f3a669acee5beaa3
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
eeff9ace47b106291869747b
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/InheritanceHelper.java
InheritanceHelper.isSameOrSubTypeOf
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/InheritanceHelper.java#L134-L137
train
java
Determines whether the given type is the same or a sub type of the other type. @param type The type @param baseType The possible base type @return <code>true</code> If <code>type</code> specifies the same or a sub type of <code>baseType</code> @throws ClassNotFoundException If the two classes are not on the classp...
public boolean isSameOrSubTypeOf(String type, String baseType) throws ClassNotFoundException { return type.replace('$', '.').equals(baseType.replace('$', '.')) ? true : isSameOrSubTypeOf(getClass(type), baseType); }
Determines whether the given type is the same or a sub type of the other type. @param type The type @param baseType The possible base type @return <code>true</code> If <code>type</code> specifies the same or a sub type of <code>baseType</code> @throws ClassNotFoundException If the two classes are not on the classp...
130
323
234
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e9bd933b2e2516c1217a1aaea03cff2502cda8625ad11ef03ee23d89867384e0
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
65395eaa2e9acb4d121687f3
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/constraints/InheritanceHelper.java
InheritanceHelper.isSameOrSubTypeOf
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/InheritanceHelper.java#L147-L150
train
java
Determines whether the given type is the same or a sub type of the other type. @param type The type @param baseType The possible base type @return <code>true</code> If <code>type</code> specifies the same or a sub type of <code>baseType</code> @throws ClassNotFoundException If the two classes are not on the classp...
public boolean isSameOrSubTypeOf(Class type, String baseType) throws ClassNotFoundException { return type.getName().equals(baseType.replace('$', '.')) ? true : getClass(baseType).isAssignableFrom(type); }
Determines whether the given type is the same or a sub type of the other type. @param type The type @param baseType The possible base type @return <code>true</code> If <code>type</code> specifies the same or a sub type of <code>baseType</code> @throws ClassNotFoundException If the two classes are not on the classp...
123
323
223
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
0ab45743ab41872c425daa4b509b72f68e30c7c5fab5eab1c5229c5bd7aa58b9
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
f4b52682b7fc4bf89125a1ca
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/cache/AbstractMetaCache.java
AbstractMetaCache.cache
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/cache/AbstractMetaCache.java#L55-L65
train
java
Caches the given object using the given Identity as key @param oid The Identity key @param obj The object o cache
public void cache(Identity oid, Object obj) { if (oid != null && obj != null) { ObjectCache cache = getCache(oid, obj, METHOD_CACHE); if (cache != null) { cache.cache(oid, obj); } } }
Caches the given object using the given Identity as key @param oid The Identity key @param obj The object o cache public void cache(Identity oid, Object obj) { if (oid != null && obj != null) { ObjectCache cache = getCache(oid, obj, METHOD_CACHE); if (cache != null) ...
90
116
289
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f242215a353a0797b1f1b1b6d2f6ccdfdf4cd03b30502e9f0a69461a47247012
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
1f8a3ba1f4e6d4127537d391
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/cache/AbstractMetaCache.java
AbstractMetaCache.lookup
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/cache/AbstractMetaCache.java#L84-L96
train
java
Looks up the object from the cache @param oid The Identity to look up the object for @return The object if found, otherwise null
public Object lookup(Identity oid) { Object ret = null; if (oid != null) { ObjectCache cache = getCache(oid, null, METHOD_LOOKUP); if (cache != null) { ret = cache.lookup(oid); } } return ret; }
Looks up the object from the cache @param oid The Identity to look up the object for @return The object if found, otherwise null public Object lookup(Identity oid) { Object ret = null; if (oid != null) { ObjectCache cache = getCache(oid, null, METHOD_LOOKUP); ...
96
134
318
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4b44c7f956951cecf2425c7a7dc0e608fca7c63356f4e59ceb9c0a04f811e88b
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
99af0b5e4ea290ebc03b0afe
kuali/ojb-1.0.4
src/java/org/apache/ojb/broker/cache/AbstractMetaCache.java
AbstractMetaCache.remove
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/cache/AbstractMetaCache.java#L103-L112
train
java
Removes the given object from the cache @param oid oid of the object to remove
public void remove(Identity oid) { if (oid == null) return; ObjectCache cache = getCache(oid, null, METHOD_REMOVE); if (cache != null) { cache.remove(oid); } }
Removes the given object from the cache @param oid oid of the object to remove public void remove(Identity oid) { if (oid == null) return; ObjectCache cache = getCache(oid, null, METHOD_REMOVE); if (cache != null) { cache.remove(oid); } }
71
80
229
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
928624800b28b40f4ebf41e4eeafcc7ccfb5c36442e4ecc9972ce468fd559e94
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
0001478ba4788c53cf1d3c92
geomajas/geomajas-project-server
plugin/print/print/src/main/java/org/geomajas/plugin/printing/component/ComponentUtil.java
ComponentUtil.getCurrentResourceBundle
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/print/print/src/main/java/org/geomajas/plugin/printing/component/ComponentUtil.java#L41-L50
train
java
Returns the resource bundle for current Locale, i.e. locale set in the PageComponent. Always create a new instance, this avoids getting the incorrect locale information. @return resourcebundle for internationalized messages
public static ResourceBundle getCurrentResourceBundle(String locale) { try { if (null != locale && !locale.isEmpty()) { return getCurrentResourceBundle(LocaleUtils.toLocale(locale)); } } catch (IllegalArgumentException ex) { // do nothing } return getCurrentResourceBundle((Locale) null); }
Returns the resource bundle for current Locale, i.e. locale set in the PageComponent. Always create a new instance, this avoids getting the incorrect locale information. @return resourcebundle for internationalized messages public static ResourceBundle getCurrentResourceBundle(String locale) { try { if (null != ...
108
224
312
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
56e51c9c93d4a200504c853c7e5b13aa576820dcc057a862fc9f9e07bcd16201
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
2fa55cd2355a40c90f4a46d7
kuali/ojb-1.0.4
src/xdoclet/java/src/xdoclet/modules/ojb/model/DefBaseComparator.java
DefBaseComparator.compare
https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/DefBaseComparator.java#L32-L42
train
java
/* (non-Javadoc) @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
public int compare(Object objA, Object objB) { if (!(objA instanceof DefBase) || !(objB instanceof DefBase)) { return 0; } else { return ((DefBase)objA).getName().compareTo(((DefBase)objB).getName()); } }
/* (non-Javadoc) @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) public int compare(Object objA, Object objB) { if (!(objA instanceof DefBase) || !(objB instanceof DefBase)) { return 0; } else { return ((DefBase)objA).get...
87
86
294
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
44e67c12ad045fa3c86af2708aa960af936822912a78bf6c604f566fe75fe759
Apache-2.0
permissive
https://github.com/kuali/ojb-1.0.4/blob/master/LICENSE
f2fd307fe040cab147d70601
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L144-L154
train
java
{@inheritDoc}
public Object visit(And filter, Object userData) { Criterion c = null; for (Filter element : filter.getChildren()) { if (c == null) { c = (Criterion) element.accept(this, userData); } else { c = Restrictions.and(c, (Criterion) element.accept(this, userData)); } } return c; }
{@inheritDoc} public Object visit(And filter, Object userData) { Criterion c = null; for (Filter element : filter.getChildren()) { if (c == null) { c = (Criterion) element.accept(this, userData); } else { c = Restrictions.and(c, (Criterion) element.accept(this, userData)); } } return c; }
84
13
301
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2ceb8e90cfeb02f797b81a1556b94279dd10b6f3befba0bb86e299a5329a72f4
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
02233c4069ef1aad60b60ff6
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L157-L161
train
java
{@inheritDoc}
@Override public Object visit(Not filter, Object userData) { Criterion c = (Criterion) filter.getFilter().accept(this, userData); return Restrictions.not(c); }
{@inheritDoc} @Override public Object visit(Not filter, Object userData) { Criterion c = (Criterion) filter.getFilter().accept(this, userData); return Restrictions.not(c); }
41
13
165
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
480f72908b8670e0d684442a2630995d3a7d2d1b4535b6133a22600815263272
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
82993845b73794a76cf6f69b
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L164-L175
train
java
{@inheritDoc}
@Override public Object visit(Or filter, Object userData) { Criterion c = null; for (Filter element : filter.getChildren()) { if (c == null) { c = (Criterion) element.accept(this, userData); } else { c = Restrictions.or(c, (Criterion) element.accept(this, userData)); } } return c; }
{@inheritDoc} @Override public Object visit(Or filter, Object userData) { Criterion c = null; for (Filter element : filter.getChildren()) { if (c == null) { c = (Criterion) element.accept(this, userData); } else { c = Restrictions.or(c, (Criterion) element.accept(this, userData)); } } return ...
86
13
310
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ab16b0ebfac42902a0748fe77e1f218654e09355757c02901edf9ceab022f856
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
eb0ee4dcd44a85bf13ace89a
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L178-L186
train
java
{@inheritDoc}
@Override public Object visit(PropertyIsBetween filter, Object userData) { String propertyName = getPropertyName(filter.getExpression()); String finalName = parsePropertyName(propertyName, userData); Object lo = castLiteral(getLiteralValue(filter.getLowerBoundary()), propertyName); Object hi = castLiteral(get...
{@inheritDoc} @Override public Object visit(PropertyIsBetween filter, Object userData) { String propertyName = getPropertyName(filter.getExpression()); String finalName = parsePropertyName(propertyName, userData); Object lo = castLiteral(getLiteralValue(filter.getLowerBoundary()), propertyName); Object hi = ...
83
13
428
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
fb725ff9603bd2d5a3760a51d94ec5f8e6c82c740a1a935d453d1531de3a81f0
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
ce73b680952110991092ac04
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L189-L196
train
java
{@inheritDoc}
@Override public Object visit(PropertyIsEqualTo filter, Object userData) { String propertyName = getPropertyName(filter.getExpression1()); String finalName = parsePropertyName(propertyName, userData); Object value = castLiteral(getLiteralValue(filter.getExpression2()), propertyName); return Restrictions.eq(fi...
{@inheritDoc} @Override public Object visit(PropertyIsEqualTo filter, Object userData) { String propertyName = getPropertyName(filter.getExpression1()); String finalName = parsePropertyName(propertyName, userData); Object value = castLiteral(getLiteralValue(filter.getExpression2()), propertyName); return Res...
66
13
339
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2ca76a2465bab92d444dde369651decd47085642be5d2500b6adf101b4736824
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
ae1368dc717cc13faf675f51
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L219-L226
train
java
{@inheritDoc}
@Override public Object visit(PropertyIsGreaterThanOrEqualTo filter, Object userData) { String propertyName = getPropertyName(filter.getExpression1()); String finalName = parsePropertyName(propertyName, userData); Object literal = getLiteralValue(filter.getExpression2()); return Restrictions.ge(finalName, cas...
{@inheritDoc} @Override public Object visit(PropertyIsGreaterThanOrEqualTo filter, Object userData) { String propertyName = getPropertyName(filter.getExpression1()); String finalName = parsePropertyName(propertyName, userData); Object literal = getLiteralValue(filter.getExpression2()); return Restrictions.ge...
68
13
356
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
dfa860a2ee123924db070d69303b3df4436f072baff8e2813e96689ed1f87aba
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
2c969fef4cc1d341257769a1
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L249-L262
train
java
{@inheritDoc}
@Override public Object visit(PropertyIsLike filter, Object userData) { String propertyName = getPropertyName(filter.getExpression()); String finalName = parsePropertyName(propertyName, userData); String value = filter.getLiteral(); value = value.replaceAll("\\*", "%"); value = value.replaceAll("\\?", "_");...
{@inheritDoc} @Override public Object visit(PropertyIsLike filter, Object userData) { String propertyName = getPropertyName(filter.getExpression()); String finalName = parsePropertyName(propertyName, userData); String value = filter.getLiteral(); value = value.replaceAll("\\*", "%"); value = value.replaceA...
102
13
466
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b8263f246c817fbb3db6d647850012ee72af6d5b7a6c7c85f986639670cc576e
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
97736d1b9c5c86a0231221f6
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L265-L270
train
java
{@inheritDoc}
@Override public Object visit(PropertyIsNull filter, Object userData) { String propertyName = getPropertyName(filter.getExpression()); String finalName = parsePropertyName(propertyName, userData); return Restrictions.isNull(finalName); }
{@inheritDoc} @Override public Object visit(PropertyIsNull filter, Object userData) { String propertyName = getPropertyName(filter.getExpression()); String finalName = parsePropertyName(propertyName, userData); return Restrictions.isNull(finalName); }
46
13
245
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d9d4f041166d977fcfddbfed428bb15c5a9e76d768329c5b7d0ce38f4ec6bcba
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
0a85938a8ed2bcd70296a207
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L273-L278
train
java
{@inheritDoc}
@Override public Object visit(BBOX filter, Object userData) { Envelope env = new Envelope(filter.getMinX(), filter.getMaxX(), filter.getMinY(), filter.getMaxY()); String finalName = parsePropertyName(geomName, userData); return SpatialRestrictions.filter(finalName, env, srid); }
{@inheritDoc} @Override public Object visit(BBOX filter, Object userData) { Envelope env = new Envelope(filter.getMinX(), filter.getMaxX(), filter.getMinY(), filter.getMaxY()); String finalName = parsePropertyName(geomName, userData); return SpatialRestrictions.filter(finalName, env, srid); }
69
13
287
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8b5e9c3c6386fe7434af85ca74c3a0186ce603ef4a09d9caac4b986f191a0e30
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
d293971c4949617bae853c42
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L316-L320
train
java
{@inheritDoc}
@Override public Object visit(Intersects filter, Object userData) { String finalName = parsePropertyName(geomName, userData); return SpatialRestrictions.intersects(finalName, asGeometry(getLiteralValue(filter.getExpression2()))); }
{@inheritDoc} @Override public Object visit(Intersects filter, Object userData) { String finalName = parsePropertyName(geomName, userData); return SpatialRestrictions.intersects(finalName, asGeometry(getLiteralValue(filter.getExpression2()))); }
52
13
237
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d0b4f88f3fce226bf024beb7d1a26daf6654acd8b62ebcb3c1d5c0e12b73fafc
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
834445ccef8be61849a4dbed
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L323-L327
train
java
{@inheritDoc}
@Override public Object visit(Overlaps filter, Object userData) { String finalName = parsePropertyName(geomName, userData); return SpatialRestrictions.overlaps(finalName, asGeometry(getLiteralValue(filter.getExpression2()))); }
{@inheritDoc} @Override public Object visit(Overlaps filter, Object userData) { String finalName = parsePropertyName(geomName, userData); return SpatialRestrictions.overlaps(finalName, asGeometry(getLiteralValue(filter.getExpression2()))); }
52
13
233
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
82f32474a432a6bcdfac333e8a9a423ae0dc55ade451ab4bcbb5c2ff281603df
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
1690602f3f1be49e3833fced
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L330-L334
train
java
{@inheritDoc}
@Override public Object visit(Touches filter, Object userData) { String finalName = parsePropertyName(geomName, userData); return SpatialRestrictions.touches(finalName, asGeometry(getLiteralValue(filter.getExpression2()))); }
{@inheritDoc} @Override public Object visit(Touches filter, Object userData) { String finalName = parsePropertyName(geomName, userData); return SpatialRestrictions.touches(finalName, asGeometry(getLiteralValue(filter.getExpression2()))); }
51
13
231
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f982fff3ce1bb9ef9d1c08df0ceb0fd6e000f5e755661eed0a44c0fac68430f9
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
5da510bcf0ffa9a7f1ecf2ae
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L337-L341
train
java
{@inheritDoc}
@Override public Object visit(Within filter, Object userData) { String finalName = parsePropertyName(geomName, userData); return SpatialRestrictions.within(finalName, asGeometry(getLiteralValue(filter.getExpression2()))); }
{@inheritDoc} @Override public Object visit(Within filter, Object userData) { String finalName = parsePropertyName(geomName, userData); return SpatialRestrictions.within(finalName, asGeometry(getLiteralValue(filter.getExpression2()))); }
51
13
229
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ec285eeef8771c00156a3adeb6a3c08a482dbf89890d5df416f0d2c11b449b31
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
abe307eed1c6a779241b5d75
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L344-L347
train
java
{@inheritDoc}
@Override public Object visit(ExcludeFilter filter, Object userData) { return Restrictions.not(Restrictions.conjunction()); }
{@inheritDoc} @Override public Object visit(ExcludeFilter filter, Object userData) { return Restrictions.not(Restrictions.conjunction()); }
29
13
129
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ca58320844f8d6a6a38b2cbbf3261a548b10b8fbedb6d06786cd734ec640698a
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
7846b376bca2ee8c8bf74d54
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L356-L367
train
java
{@inheritDoc}
@Override public Object visit(Id filter, Object userData) { String idName; try { idName = featureModel.getEntityMetadata().getIdentifierPropertyName(); } catch (LayerException e) { log.warn("Cannot read idName, defaulting to 'id'", e); idName = HIBERNATE_ID; } Collection<?> c = (Collection<?>) castL...
{@inheritDoc} @Override public Object visit(Id filter, Object userData) { String idName; try { idName = featureModel.getEntityMetadata().getIdentifierPropertyName(); } catch (LayerException e) { log.warn("Cannot read idName, defaulting to 'id'", e); idName = HIBERNATE_ID; } Collection<?> c = (Colle...
106
13
400
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f74db6be621bae483f437bead4adb850890acad7a086bca0c0db7bd366392f2c
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
b2847fad6585782e84f04876
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L382-L392
train
java
{@inheritDoc}
@Override public Object visit(After after, Object extraData) { String propertyName = getPropertyName(after.getExpression1()); String finalName = parsePropertyName(propertyName, after); Object literal = getLiteralValue(after.getExpression2()); if (literal instanceof Date) { return Restrictions.gt(finalName, ...
{@inheritDoc} @Override public Object visit(After after, Object extraData) { String propertyName = getPropertyName(after.getExpression1()); String finalName = parsePropertyName(propertyName, after); Object literal = getLiteralValue(after.getExpression2()); if (literal instanceof Date) { return Restrictions...
87
13
417
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
00ec6b874170b020cd10878540bbe3f13cd38b44876cadbe92f1931699857e94
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt
2e4a759891291a16559ee1ac
geomajas/geomajas-project-server
plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java
CriteriaVisitor.visit
https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/layer-hibernate/hibernate/src/main/java/org/geomajas/layer/hibernate/CriteriaVisitor.java#L401-L411
train
java
{@inheritDoc}
@Override public Object visit(Before before, Object extraData) { String propertyName = getPropertyName(before.getExpression1()); String finalName = parsePropertyName(propertyName, before); Object literal = getLiteralValue(before.getExpression2()); if (literal instanceof Date) { return Restrictions.lt(finalN...
{@inheritDoc} @Override public Object visit(Before before, Object extraData) { String propertyName = getPropertyName(before.getExpression1()); String finalName = parsePropertyName(propertyName, before); Object literal = getLiteralValue(before.getExpression2()); if (literal instanceof Date) { return Restric...
87
13
422
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c4df144b94fb6a19ce9df2ce3b900626d965b122e4b0875271f99d5949afc2cb
AGPL-3.0
strong-copyleft
https://github.com/geomajas/geomajas-project-server/blob/master/LICENSE.txt