repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/query/Criteria.java | Criteria.addNotBetween | public void addNotBetween(Object attribute, Object value1, Object value2)
{
// PAW
// addSelectionCriteria(ValueCriteria.buildNotBeweenCriteria(attribute, value1, value2, getAlias()));
addSelectionCriteria(ValueCriteria.buildNotBeweenCriteria(attribute, value1, value2, getUserAlias(attribute)));
... | java | public void addNotBetween(Object attribute, Object value1, Object value2)
{
// PAW
// addSelectionCriteria(ValueCriteria.buildNotBeweenCriteria(attribute, value1, value2, getAlias()));
addSelectionCriteria(ValueCriteria.buildNotBeweenCriteria(attribute, value1, value2, getUserAlias(attribute)));
... | [
"public",
"void",
"addNotBetween",
"(",
"Object",
"attribute",
",",
"Object",
"value1",
",",
"Object",
"value2",
")",
"{",
"// PAW\r",
"// addSelectionCriteria(ValueCriteria.buildNotBeweenCriteria(attribute, value1, value2, getAlias()));\r",
"addSelectionCriteria",
"(",
"ValueCri... | Adds NOT BETWEEN criteria,
customer_id not between 1 and 10
@param attribute The field name to be used
@param value1 The lower boundary
@param value2 The upper boundary | [
"Adds",
"NOT",
"BETWEEN",
"criteria",
"customer_id",
"not",
"between",
"1",
"and",
"10"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L750-L755 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/query/Criteria.java | Criteria.addIn | public void addIn(Object attribute, Query subQuery)
{
// PAW
// addSelectionCriteria(ValueCriteria.buildInCriteria(attribute, subQuery, getAlias()));
addSelectionCriteria(ValueCriteria.buildInCriteria(attribute, subQuery, getUserAlias(attribute)));
} | java | public void addIn(Object attribute, Query subQuery)
{
// PAW
// addSelectionCriteria(ValueCriteria.buildInCriteria(attribute, subQuery, getAlias()));
addSelectionCriteria(ValueCriteria.buildInCriteria(attribute, subQuery, getUserAlias(attribute)));
} | [
"public",
"void",
"addIn",
"(",
"Object",
"attribute",
",",
"Query",
"subQuery",
")",
"{",
"// PAW\r",
"// addSelectionCriteria(ValueCriteria.buildInCriteria(attribute, subQuery, getAlias()));\r",
"addSelectionCriteria",
"(",
"ValueCriteria",
".",
"buildInCriteria",
"(",
"attri... | IN Criteria with SubQuery
@param attribute The field name to be used
@param subQuery The subQuery | [
"IN",
"Criteria",
"with",
"SubQuery"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L841-L846 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/query/Criteria.java | Criteria.addNotIn | public void addNotIn(String attribute, Query subQuery)
{
// PAW
// addSelectionCriteria(ValueCriteria.buildNotInCriteria(attribute, subQuery, getAlias()));
addSelectionCriteria(ValueCriteria.buildNotInCriteria(attribute, subQuery, getUserAlias(attribute)));
} | java | public void addNotIn(String attribute, Query subQuery)
{
// PAW
// addSelectionCriteria(ValueCriteria.buildNotInCriteria(attribute, subQuery, getAlias()));
addSelectionCriteria(ValueCriteria.buildNotInCriteria(attribute, subQuery, getUserAlias(attribute)));
} | [
"public",
"void",
"addNotIn",
"(",
"String",
"attribute",
",",
"Query",
"subQuery",
")",
"{",
"// PAW\r",
"// addSelectionCriteria(ValueCriteria.buildNotInCriteria(attribute, subQuery, getAlias()));\r",
"addSelectionCriteria",
"(",
"ValueCriteria",
".",
"buildNotInCriteria",
"(",... | NOT IN Criteria with SubQuery
@param attribute The field name to be used
@param subQuery The subQuery | [
"NOT",
"IN",
"Criteria",
"with",
"SubQuery"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L853-L858 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/query/Criteria.java | Criteria.getGroupby | List getGroupby()
{
List result = _getGroupby();
Iterator iter = getCriteria().iterator();
Object crit;
while (iter.hasNext())
{
crit = iter.next();
if (crit instanceof Criteria)
{
result.addAll(((Criteria) crit)... | java | List getGroupby()
{
List result = _getGroupby();
Iterator iter = getCriteria().iterator();
Object crit;
while (iter.hasNext())
{
crit = iter.next();
if (crit instanceof Criteria)
{
result.addAll(((Criteria) crit)... | [
"List",
"getGroupby",
"(",
")",
"{",
"List",
"result",
"=",
"_getGroupby",
"(",
")",
";",
"Iterator",
"iter",
"=",
"getCriteria",
"(",
")",
".",
"iterator",
"(",
")",
";",
"Object",
"crit",
";",
"while",
"(",
"iter",
".",
"hasNext",
"(",
")",
")",
... | Gets the groupby for ReportQueries of all Criteria and Sub Criteria
the elements are of class FieldHelper
@return List of FieldHelper | [
"Gets",
"the",
"groupby",
"for",
"ReportQueries",
"of",
"all",
"Criteria",
"and",
"Sub",
"Criteria",
"the",
"elements",
"are",
"of",
"class",
"FieldHelper"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L929-L945 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/query/Criteria.java | Criteria.addGroupBy | public void addGroupBy(String[] fieldNames)
{
for (int i = 0; i < fieldNames.length; i++)
{
addGroupBy(fieldNames[i]);
}
} | java | public void addGroupBy(String[] fieldNames)
{
for (int i = 0; i < fieldNames.length; i++)
{
addGroupBy(fieldNames[i]);
}
} | [
"public",
"void",
"addGroupBy",
"(",
"String",
"[",
"]",
"fieldNames",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"fieldNames",
".",
"length",
";",
"i",
"++",
")",
"{",
"addGroupBy",
"(",
"fieldNames",
"[",
"i",
"]",
")",
";",
"}"... | Adds an array of groupby fieldNames for ReportQueries.
@param fieldNames The groupby to set
@deprecated use QueryByCriteria#addGroupBy | [
"Adds",
"an",
"array",
"of",
"groupby",
"fieldNames",
"for",
"ReportQueries",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L988-L994 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/query/Criteria.java | Criteria.getSqlInLimit | private static int getSqlInLimit()
{
try
{
PersistenceBrokerConfiguration config = (PersistenceBrokerConfiguration) PersistenceBrokerFactory
.getConfigurator().getConfigurationFor(null);
return config.getSqlInLimit();
}
catch (Confi... | java | private static int getSqlInLimit()
{
try
{
PersistenceBrokerConfiguration config = (PersistenceBrokerConfiguration) PersistenceBrokerFactory
.getConfigurator().getConfigurationFor(null);
return config.getSqlInLimit();
}
catch (Confi... | [
"private",
"static",
"int",
"getSqlInLimit",
"(",
")",
"{",
"try",
"{",
"PersistenceBrokerConfiguration",
"config",
"=",
"(",
"PersistenceBrokerConfiguration",
")",
"PersistenceBrokerFactory",
".",
"getConfigurator",
"(",
")",
".",
"getConfigurationFor",
"(",
"null",
... | read the prefetchInLimit from Config based on OJB.properties | [
"read",
"the",
"prefetchInLimit",
"from",
"Config",
"based",
"on",
"OJB",
".",
"properties"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L1018-L1030 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/query/Criteria.java | Criteria.getUserAlias | private UserAlias getUserAlias(Object attribute)
{
if (m_userAlias != null)
{
return m_userAlias;
}
if (!(attribute instanceof String))
{
return null;
}
if (m_alias == null)
{
return null;
}
if (m_aliasPath == null)
{
boolean allPathsAliased = true;
return new User... | java | private UserAlias getUserAlias(Object attribute)
{
if (m_userAlias != null)
{
return m_userAlias;
}
if (!(attribute instanceof String))
{
return null;
}
if (m_alias == null)
{
return null;
}
if (m_aliasPath == null)
{
boolean allPathsAliased = true;
return new User... | [
"private",
"UserAlias",
"getUserAlias",
"(",
"Object",
"attribute",
")",
"{",
"if",
"(",
"m_userAlias",
"!=",
"null",
")",
"{",
"return",
"m_userAlias",
";",
"}",
"if",
"(",
"!",
"(",
"attribute",
"instanceof",
"String",
")",
")",
"{",
"return",
"null",
... | Retrieves or if necessary, creates a user alias to be used
by a child criteria
@param attribute The alias to set | [
"Retrieves",
"or",
"if",
"necessary",
"creates",
"a",
"user",
"alias",
"to",
"be",
"used",
"by",
"a",
"child",
"criteria"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L1055-L1075 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/query/Criteria.java | Criteria.setAlias | public void setAlias(String alias)
{
if (alias == null || alias.trim().equals(""))
{
m_alias = null;
}
else
{
m_alias = alias;
}
// propagate to SelectionCriteria,not to Criteria
for (int i = 0; i < m_criteria.size(); i++)
{
if (!(m_criteria.elementAt(i) instanceof Criteria))
... | java | public void setAlias(String alias)
{
if (alias == null || alias.trim().equals(""))
{
m_alias = null;
}
else
{
m_alias = alias;
}
// propagate to SelectionCriteria,not to Criteria
for (int i = 0; i < m_criteria.size(); i++)
{
if (!(m_criteria.elementAt(i) instanceof Criteria))
... | [
"public",
"void",
"setAlias",
"(",
"String",
"alias",
")",
"{",
"if",
"(",
"alias",
"==",
"null",
"||",
"alias",
".",
"trim",
"(",
")",
".",
"equals",
"(",
"\"\"",
")",
")",
"{",
"m_alias",
"=",
"null",
";",
"}",
"else",
"{",
"m_alias",
"=",
"ali... | Sets the alias. Empty String is regarded as null.
@param alias The alias to set | [
"Sets",
"the",
"alias",
".",
"Empty",
"String",
"is",
"regarded",
"as",
"null",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L1082-L1101 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/query/Criteria.java | Criteria.setAlias | public void setAlias(UserAlias userAlias)
{
m_alias = userAlias.getName();
// propagate to SelectionCriteria,not to Criteria
for (int i = 0; i < m_criteria.size(); i++)
{
if (!(m_criteria.elementAt(i) instanceof Criteria))
{
((SelectionCriteria) m_criteria.elementAt(i)).setAlias(userAlias);... | java | public void setAlias(UserAlias userAlias)
{
m_alias = userAlias.getName();
// propagate to SelectionCriteria,not to Criteria
for (int i = 0; i < m_criteria.size(); i++)
{
if (!(m_criteria.elementAt(i) instanceof Criteria))
{
((SelectionCriteria) m_criteria.elementAt(i)).setAlias(userAlias);... | [
"public",
"void",
"setAlias",
"(",
"UserAlias",
"userAlias",
")",
"{",
"m_alias",
"=",
"userAlias",
".",
"getName",
"(",
")",
";",
"// propagate to SelectionCriteria,not to Criteria\r",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m_criteria",
".",
"size"... | Sets the alias using a userAlias object.
@param userAlias The alias to set | [
"Sets",
"the",
"alias",
"using",
"a",
"userAlias",
"object",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L1136-L1148 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/query/Criteria.java | Criteria.getPathClasses | public Map getPathClasses()
{
if (m_pathClasses.isEmpty())
{
if (m_parentCriteria == null)
{
if (m_query == null)
{
return m_pathClasses;
}
else
{
return m_query.getPathClasses();
}
}
else
{
return m_parentCriteria.getPathClasses();
}
}
... | java | public Map getPathClasses()
{
if (m_pathClasses.isEmpty())
{
if (m_parentCriteria == null)
{
if (m_query == null)
{
return m_pathClasses;
}
else
{
return m_query.getPathClasses();
}
}
else
{
return m_parentCriteria.getPathClasses();
}
}
... | [
"public",
"Map",
"getPathClasses",
"(",
")",
"{",
"if",
"(",
"m_pathClasses",
".",
"isEmpty",
"(",
")",
")",
"{",
"if",
"(",
"m_parentCriteria",
"==",
"null",
")",
"{",
"if",
"(",
"m_query",
"==",
"null",
")",
"{",
"return",
"m_pathClasses",
";",
"}",
... | Gets the pathClasses.
A Map containing hints about what Class to be used for what path segment
If local instance not set, try parent Criteria's instance. If this is
the top-level Criteria, try the m_query's instance
@return Returns a Map | [
"Gets",
"the",
"pathClasses",
".",
"A",
"Map",
"containing",
"hints",
"about",
"what",
"Class",
"to",
"be",
"used",
"for",
"what",
"path",
"segment",
"If",
"local",
"instance",
"not",
"set",
"try",
"parent",
"Criteria",
"s",
"instance",
".",
"If",
"this",
... | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/query/Criteria.java#L1287-L1311 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/platforms/PlatformWLOracle9iImpl.java | PlatformWLOracle9iImpl.beforeBatch | public void beforeBatch(PreparedStatement stmt) throws PlatformException
{
// Check for Oracle batching support
final Method methodSetExecuteBatch;
final Method methodSendBatch;
methodSetExecuteBatch = ClassHelper.getMethod(stmt, "setExecuteBatch", PARAM_TYPE_INTEGER);
... | java | public void beforeBatch(PreparedStatement stmt) throws PlatformException
{
// Check for Oracle batching support
final Method methodSetExecuteBatch;
final Method methodSendBatch;
methodSetExecuteBatch = ClassHelper.getMethod(stmt, "setExecuteBatch", PARAM_TYPE_INTEGER);
... | [
"public",
"void",
"beforeBatch",
"(",
"PreparedStatement",
"stmt",
")",
"throws",
"PlatformException",
"{",
"// Check for Oracle batching support\r",
"final",
"Method",
"methodSetExecuteBatch",
";",
"final",
"Method",
"methodSendBatch",
";",
"methodSetExecuteBatch",
"=",
"C... | Try Oracle update batching and call setExecuteBatch or revert to
JDBC update batching. See 12-2 Update Batching in the Oracle9i
JDBC Developer's Guide and Reference.
@param stmt the prepared statement to be used for batching
@throws PlatformException upon JDBC failure | [
"Try",
"Oracle",
"update",
"batching",
"and",
"call",
"setExecuteBatch",
"or",
"revert",
"to",
"JDBC",
"update",
"batching",
".",
"See",
"12",
"-",
"2",
"Update",
"Batching",
"in",
"the",
"Oracle9i",
"JDBC",
"Developer",
"s",
"Guide",
"and",
"Reference",
"."... | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/platforms/PlatformWLOracle9iImpl.java#L124-L150 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/platforms/PlatformWLOracle9iImpl.java | PlatformWLOracle9iImpl.addBatch | public void addBatch(PreparedStatement stmt) throws PlatformException
{
// Check for Oracle batching support
final boolean statementBatchingSupported = m_batchStatementsInProgress.containsKey(stmt);
if (statementBatchingSupported)
{
try
{
... | java | public void addBatch(PreparedStatement stmt) throws PlatformException
{
// Check for Oracle batching support
final boolean statementBatchingSupported = m_batchStatementsInProgress.containsKey(stmt);
if (statementBatchingSupported)
{
try
{
... | [
"public",
"void",
"addBatch",
"(",
"PreparedStatement",
"stmt",
")",
"throws",
"PlatformException",
"{",
"// Check for Oracle batching support\r",
"final",
"boolean",
"statementBatchingSupported",
"=",
"m_batchStatementsInProgress",
".",
"containsKey",
"(",
"stmt",
")",
";"... | Try Oracle update batching and call executeUpdate or revert to
JDBC update batching.
@param stmt the statement beeing added to the batch
@throws PlatformException upon JDBC failure | [
"Try",
"Oracle",
"update",
"batching",
"and",
"call",
"executeUpdate",
"or",
"revert",
"to",
"JDBC",
"update",
"batching",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/platforms/PlatformWLOracle9iImpl.java#L158-L177 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/platforms/PlatformWLOracle9iImpl.java | PlatformWLOracle9iImpl.executeBatch | public int[] executeBatch(PreparedStatement stmt) throws PlatformException
{
// Check for Oracle batching support
final Method methodSendBatch = (Method) m_batchStatementsInProgress.remove(stmt);
final boolean statementBatchingSupported = methodSendBatch != null;
int[] retval ... | java | public int[] executeBatch(PreparedStatement stmt) throws PlatformException
{
// Check for Oracle batching support
final Method methodSendBatch = (Method) m_batchStatementsInProgress.remove(stmt);
final boolean statementBatchingSupported = methodSendBatch != null;
int[] retval ... | [
"public",
"int",
"[",
"]",
"executeBatch",
"(",
"PreparedStatement",
"stmt",
")",
"throws",
"PlatformException",
"{",
"// Check for Oracle batching support\r",
"final",
"Method",
"methodSendBatch",
"=",
"(",
"Method",
")",
"m_batchStatementsInProgress",
".",
"remove",
"... | Try Oracle update batching and call sendBatch or revert to
JDBC update batching.
@param stmt the batched prepared statement about to be executed
@return always <code>null</code> if Oracle update batching is used,
since it is impossible to dissolve total row count into distinct
statement counts. If JDBC update batching ... | [
"Try",
"Oracle",
"update",
"batching",
"and",
"call",
"sendBatch",
"or",
"revert",
"to",
"JDBC",
"update",
"batching",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/platforms/PlatformWLOracle9iImpl.java#L189-L213 | train |
geomajas/geomajas-project-server | plugin/runtimeconfig/runtimeconfig/src/main/java/org/geomajas/plugin/runtimeconfig/service/BeanDefinitionDtoConverterServiceImpl.java | BeanDefinitionDtoConverterServiceImpl.toInternal | public BeanDefinition toInternal(BeanDefinitionInfo beanDefinitionInfo) {
if (beanDefinitionInfo instanceof GenericBeanDefinitionInfo) {
GenericBeanDefinitionInfo genericInfo = (GenericBeanDefinitionInfo) beanDefinitionInfo;
GenericBeanDefinition def = new GenericBeanDefinition();
def.setBeanClassName(generi... | java | public BeanDefinition toInternal(BeanDefinitionInfo beanDefinitionInfo) {
if (beanDefinitionInfo instanceof GenericBeanDefinitionInfo) {
GenericBeanDefinitionInfo genericInfo = (GenericBeanDefinitionInfo) beanDefinitionInfo;
GenericBeanDefinition def = new GenericBeanDefinition();
def.setBeanClassName(generi... | [
"public",
"BeanDefinition",
"toInternal",
"(",
"BeanDefinitionInfo",
"beanDefinitionInfo",
")",
"{",
"if",
"(",
"beanDefinitionInfo",
"instanceof",
"GenericBeanDefinitionInfo",
")",
"{",
"GenericBeanDefinitionInfo",
"genericInfo",
"=",
"(",
"GenericBeanDefinitionInfo",
")",
... | Convert from a DTO to an internal Spring bean definition.
@param beanDefinitionDto The DTO object.
@return Returns a Spring bean definition. | [
"Convert",
"from",
"a",
"DTO",
"to",
"an",
"internal",
"Spring",
"bean",
"definition",
"."
] | 904b7d7deed1350d28955589098dd1e0a786d76e | https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/runtimeconfig/runtimeconfig/src/main/java/org/geomajas/plugin/runtimeconfig/service/BeanDefinitionDtoConverterServiceImpl.java#L96-L117 | train |
geomajas/geomajas-project-server | plugin/runtimeconfig/runtimeconfig/src/main/java/org/geomajas/plugin/runtimeconfig/service/BeanDefinitionDtoConverterServiceImpl.java | BeanDefinitionDtoConverterServiceImpl.toDto | public BeanDefinitionInfo toDto(BeanDefinition beanDefinition) {
if (beanDefinition instanceof GenericBeanDefinition) {
GenericBeanDefinitionInfo info = new GenericBeanDefinitionInfo();
info.setClassName(beanDefinition.getBeanClassName());
if (beanDefinition.getPropertyValues() != null) {
Map<String, Be... | java | public BeanDefinitionInfo toDto(BeanDefinition beanDefinition) {
if (beanDefinition instanceof GenericBeanDefinition) {
GenericBeanDefinitionInfo info = new GenericBeanDefinitionInfo();
info.setClassName(beanDefinition.getBeanClassName());
if (beanDefinition.getPropertyValues() != null) {
Map<String, Be... | [
"public",
"BeanDefinitionInfo",
"toDto",
"(",
"BeanDefinition",
"beanDefinition",
")",
"{",
"if",
"(",
"beanDefinition",
"instanceof",
"GenericBeanDefinition",
")",
"{",
"GenericBeanDefinitionInfo",
"info",
"=",
"new",
"GenericBeanDefinitionInfo",
"(",
")",
";",
"info",... | Convert from an internal Spring bean definition to a DTO.
@param beanDefinition The internal Spring bean definition.
@return Returns a DTO representation. | [
"Convert",
"from",
"an",
"internal",
"Spring",
"bean",
"definition",
"to",
"a",
"DTO",
"."
] | 904b7d7deed1350d28955589098dd1e0a786d76e | https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/runtimeconfig/runtimeconfig/src/main/java/org/geomajas/plugin/runtimeconfig/service/BeanDefinitionDtoConverterServiceImpl.java#L125-L148 | train |
geomajas/geomajas-project-server | plugin/runtimeconfig/runtimeconfig/src/main/java/org/geomajas/plugin/runtimeconfig/service/BeanDefinitionDtoConverterServiceImpl.java | BeanDefinitionDtoConverterServiceImpl.validate | private void validate(Object object) {
Set<ConstraintViolation<Object>> viols = validator.validate(object);
for (ConstraintViolation<Object> constraintViolation : viols) {
if (Null.class.isAssignableFrom(constraintViolation.getConstraintDescriptor().getAnnotation().getClass())) {
Object o = constraintViolati... | java | private void validate(Object object) {
Set<ConstraintViolation<Object>> viols = validator.validate(object);
for (ConstraintViolation<Object> constraintViolation : viols) {
if (Null.class.isAssignableFrom(constraintViolation.getConstraintDescriptor().getAnnotation().getClass())) {
Object o = constraintViolati... | [
"private",
"void",
"validate",
"(",
"Object",
"object",
")",
"{",
"Set",
"<",
"ConstraintViolation",
"<",
"Object",
">>",
"viols",
"=",
"validator",
".",
"validate",
"(",
"object",
")",
";",
"for",
"(",
"ConstraintViolation",
"<",
"Object",
">",
"constraintV... | Take a stab at fixing validation problems ?
@param object | [
"Take",
"a",
"stab",
"at",
"fixing",
"validation",
"problems",
"?"
] | 904b7d7deed1350d28955589098dd1e0a786d76e | https://github.com/geomajas/geomajas-project-server/blob/904b7d7deed1350d28955589098dd1e0a786d76e/plugin/runtimeconfig/runtimeconfig/src/main/java/org/geomajas/plugin/runtimeconfig/service/BeanDefinitionDtoConverterServiceImpl.java#L318-L338 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryAbstractImpl.java | ConnectionFactoryAbstractImpl.initializeJdbcConnection | protected void initializeJdbcConnection(Connection con, JdbcConnectionDescriptor jcd)
throws LookupException
{
try
{
PlatformFactory.getPlatformFor(jcd).initializeJdbcConnection(jcd, con);
}
catch (PlatformException e)
{
throw new ... | java | protected void initializeJdbcConnection(Connection con, JdbcConnectionDescriptor jcd)
throws LookupException
{
try
{
PlatformFactory.getPlatformFor(jcd).initializeJdbcConnection(jcd, con);
}
catch (PlatformException e)
{
throw new ... | [
"protected",
"void",
"initializeJdbcConnection",
"(",
"Connection",
"con",
",",
"JdbcConnectionDescriptor",
"jcd",
")",
"throws",
"LookupException",
"{",
"try",
"{",
"PlatformFactory",
".",
"getPlatformFor",
"(",
"jcd",
")",
".",
"initializeJdbcConnection",
"(",
"jcd"... | Initialize the connection with the specified properties in OJB
configuration files and platform depended properties.
Invoke this method after a NEW connection is created, not if re-using from pool.
@see org.apache.ojb.broker.platforms.PlatformFactory
@see org.apache.ojb.broker.platforms.Platform | [
"Initialize",
"the",
"connection",
"with",
"the",
"specified",
"properties",
"in",
"OJB",
"configuration",
"files",
"and",
"platform",
"depended",
"properties",
".",
"Invoke",
"this",
"method",
"after",
"a",
"NEW",
"connection",
"is",
"created",
"not",
"if",
"re... | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryAbstractImpl.java#L153-L164 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryAbstractImpl.java | ConnectionFactoryAbstractImpl.newConnectionFromDataSource | protected Connection newConnectionFromDataSource(JdbcConnectionDescriptor jcd)
throws LookupException
{
Connection retval = null;
// use JNDI lookup
DataSource ds = jcd.getDataSource();
if (ds == null)
{
// [tomdz] Would it suffice to store t... | java | protected Connection newConnectionFromDataSource(JdbcConnectionDescriptor jcd)
throws LookupException
{
Connection retval = null;
// use JNDI lookup
DataSource ds = jcd.getDataSource();
if (ds == null)
{
// [tomdz] Would it suffice to store t... | [
"protected",
"Connection",
"newConnectionFromDataSource",
"(",
"JdbcConnectionDescriptor",
"jcd",
")",
"throws",
"LookupException",
"{",
"Connection",
"retval",
"=",
"null",
";",
"// use JNDI lookup\r",
"DataSource",
"ds",
"=",
"jcd",
".",
"getDataSource",
"(",
")",
"... | Creates a new connection from the data source that the connection descriptor
represents. If the connection descriptor does not directly contain the data source
then a JNDI lookup is performed to retrieve the data source.
@param jcd The connection descriptor
@return A connection instance
@throws LookupException if we c... | [
"Creates",
"a",
"new",
"connection",
"from",
"the",
"data",
"source",
"that",
"the",
"connection",
"descriptor",
"represents",
".",
"If",
"the",
"connection",
"descriptor",
"does",
"not",
"directly",
"contain",
"the",
"data",
"source",
"then",
"a",
"JNDI",
"lo... | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryAbstractImpl.java#L186-L244 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryAbstractImpl.java | ConnectionFactoryAbstractImpl.newConnectionFromDriverManager | protected Connection newConnectionFromDriverManager(JdbcConnectionDescriptor jcd)
throws LookupException
{
Connection retval = null;
// use JDBC DriverManager
final String driver = jcd.getDriver();
final String url = getDbURL(jcd);
try
{
... | java | protected Connection newConnectionFromDriverManager(JdbcConnectionDescriptor jcd)
throws LookupException
{
Connection retval = null;
// use JDBC DriverManager
final String driver = jcd.getDriver();
final String url = getDbURL(jcd);
try
{
... | [
"protected",
"Connection",
"newConnectionFromDriverManager",
"(",
"JdbcConnectionDescriptor",
"jcd",
")",
"throws",
"LookupException",
"{",
"Connection",
"retval",
"=",
"null",
";",
"// use JDBC DriverManager\r",
"final",
"String",
"driver",
"=",
"jcd",
".",
"getDriver",
... | Returns a new created connection
@param jcd the connection descriptor
@return an instance of Connection from the drivermanager | [
"Returns",
"a",
"new",
"created",
"connection"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryAbstractImpl.java#L252-L301 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/ant/PreparedModel.java | PreparedModel.prepareModel | private void prepareModel(DescriptorRepository model)
{
TreeMap result = new TreeMap();
for (Iterator it = model.getDescriptorTable().values().iterator(); it.hasNext();)
{
ClassDescriptor classDesc = (ClassDescriptor)it.next();
if (classDesc.getFullTableName... | java | private void prepareModel(DescriptorRepository model)
{
TreeMap result = new TreeMap();
for (Iterator it = model.getDescriptorTable().values().iterator(); it.hasNext();)
{
ClassDescriptor classDesc = (ClassDescriptor)it.next();
if (classDesc.getFullTableName... | [
"private",
"void",
"prepareModel",
"(",
"DescriptorRepository",
"model",
")",
"{",
"TreeMap",
"result",
"=",
"new",
"TreeMap",
"(",
")",
";",
"for",
"(",
"Iterator",
"it",
"=",
"model",
".",
"getDescriptorTable",
"(",
")",
".",
"values",
"(",
")",
".",
"... | Prepares a representation of the model that is easier accessible for our purposes.
@param model The original model
@return The model representation | [
"Prepares",
"a",
"representation",
"of",
"the",
"model",
"that",
"is",
"easier",
"accessible",
"for",
"our",
"purposes",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/ant/PreparedModel.java#L141-L180 | train |
foundation-runtime/logging | logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/FoundationFileRollingAppender.java | FoundationFileRollingAppender.subAppend | @Override
protected final void subAppend(final LoggingEvent event) {
if (event instanceof ScheduledFileRollEvent) {
// the scheduled append() call has been made by a different thread
synchronized (this) {
if (this.closed) {
// just consume the event
return;
}
this.rollFile(event);
}
... | java | @Override
protected final void subAppend(final LoggingEvent event) {
if (event instanceof ScheduledFileRollEvent) {
// the scheduled append() call has been made by a different thread
synchronized (this) {
if (this.closed) {
// just consume the event
return;
}
this.rollFile(event);
}
... | [
"@",
"Override",
"protected",
"final",
"void",
"subAppend",
"(",
"final",
"LoggingEvent",
"event",
")",
"{",
"if",
"(",
"event",
"instanceof",
"ScheduledFileRollEvent",
")",
"{",
"// the scheduled append() call has been made by a different thread",
"synchronized",
"(",
"t... | Responsible for executing file rolls as and when required, in addition to
delegating to the super class to perform the actual append operation.
Synchronized for safety during enforced file roll.
@see org.apache.log4j.WriterAppender#subAppend(org.apache.log4j.spi.LoggingEvent) | [
"Responsible",
"for",
"executing",
"file",
"rolls",
"as",
"and",
"when",
"required",
"in",
"addition",
"to",
"delegating",
"to",
"the",
"super",
"class",
"to",
"perform",
"the",
"actual",
"append",
"operation",
".",
"Synchronized",
"for",
"safety",
"during",
"... | cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6 | https://github.com/foundation-runtime/logging/blob/cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6/logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/FoundationFileRollingAppender.java#L716-L740 | train |
gsi-upm/BeastTool | beast-tool/src/main/java/es/upm/dit/gsi/beast/mock/jade/bridgeMock/BridgeMockAgent.java | BridgeMockAgent.updateIntegerBelief | public void updateIntegerBelief(String name, int value) {
introspector.storeBeliefValue(this, name, getIntegerBelief(name) + value);
} | java | public void updateIntegerBelief(String name, int value) {
introspector.storeBeliefValue(this, name, getIntegerBelief(name) + value);
} | [
"public",
"void",
"updateIntegerBelief",
"(",
"String",
"name",
",",
"int",
"value",
")",
"{",
"introspector",
".",
"storeBeliefValue",
"(",
"this",
",",
"name",
",",
"getIntegerBelief",
"(",
"name",
")",
"+",
"value",
")",
";",
"}"
] | Updates the given integer belief
adding the given integer
newBelief = previousBelief + givenValue
@param String - the belief name
@param the value to add | [
"Updates",
"the",
"given",
"integer",
"belief",
"adding",
"the",
"given",
"integer",
"newBelief",
"=",
"previousBelief",
"+",
"givenValue"
] | cc7fdc75cb818c5d60802aaf32c27829e0ca144c | https://github.com/gsi-upm/BeastTool/blob/cc7fdc75cb818c5d60802aaf32c27829e0ca144c/beast-tool/src/main/java/es/upm/dit/gsi/beast/mock/jade/bridgeMock/BridgeMockAgent.java#L157-L159 | train |
gsi-upm/BeastTool | beast-tool/src/main/java/es/upm/dit/gsi/beast/mock/jade/bridgeMock/BridgeMockAgent.java | BridgeMockAgent.getIntegerBelief | public int getIntegerBelief(String name){
Object belief = introspector.getBeliefBase(this).get(name);
int count = 0;
if (belief!=null) {
count = (Integer) belief;
}
return (Integer) count;
} | java | public int getIntegerBelief(String name){
Object belief = introspector.getBeliefBase(this).get(name);
int count = 0;
if (belief!=null) {
count = (Integer) belief;
}
return (Integer) count;
} | [
"public",
"int",
"getIntegerBelief",
"(",
"String",
"name",
")",
"{",
"Object",
"belief",
"=",
"introspector",
".",
"getBeliefBase",
"(",
"this",
")",
".",
"get",
"(",
"name",
")",
";",
"int",
"count",
"=",
"0",
";",
"if",
"(",
"belief",
"!=",
"null",
... | Returns the integer value o the given belief | [
"Returns",
"the",
"integer",
"value",
"o",
"the",
"given",
"belief"
] | cc7fdc75cb818c5d60802aaf32c27829e0ca144c | https://github.com/gsi-upm/BeastTool/blob/cc7fdc75cb818c5d60802aaf32c27829e0ca144c/beast-tool/src/main/java/es/upm/dit/gsi/beast/mock/jade/bridgeMock/BridgeMockAgent.java#L164-L171 | train |
isisaddons-legacy/isis-module-excel | dom/src/main/java/org/isisaddons/module/excel/dom/ExcelService.java | ExcelService.fromExcel | @Programmatic
public <T> List<T> fromExcel(
final Blob excelBlob,
final Class<T> cls,
final String sheetName) throws ExcelService.Exception {
return fromExcel(excelBlob, new WorksheetSpec(cls, sheetName));
} | java | @Programmatic
public <T> List<T> fromExcel(
final Blob excelBlob,
final Class<T> cls,
final String sheetName) throws ExcelService.Exception {
return fromExcel(excelBlob, new WorksheetSpec(cls, sheetName));
} | [
"@",
"Programmatic",
"public",
"<",
"T",
">",
"List",
"<",
"T",
">",
"fromExcel",
"(",
"final",
"Blob",
"excelBlob",
",",
"final",
"Class",
"<",
"T",
">",
"cls",
",",
"final",
"String",
"sheetName",
")",
"throws",
"ExcelService",
".",
"Exception",
"{",
... | Returns a list of objects for each line in the spreadsheet, of the specified type.
<p>
If the class is a view model then the objects will be properly instantiated (that is, using
{@link DomainObjectContainer#newViewModelInstance(Class, String)}, with the correct
view model memento); otherwise the objects will be simpl... | [
"Returns",
"a",
"list",
"of",
"objects",
"for",
"each",
"line",
"in",
"the",
"spreadsheet",
"of",
"the",
"specified",
"type",
"."
] | a3b92b1797ab2ed609667933d4164e9fb54b9f25 | https://github.com/isisaddons-legacy/isis-module-excel/blob/a3b92b1797ab2ed609667933d4164e9fb54b9f25/dom/src/main/java/org/isisaddons/module/excel/dom/ExcelService.java#L155-L161 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/odmg/LocalTxManager.java | LocalTxManager.getCurrentTransaction | public TransactionImpl getCurrentTransaction()
{
TransactionImpl tx = tx_table.get(Thread.currentThread());
if(tx == null)
{
throw new TransactionNotInProgressException("Calling method needed transaction, but no transaction found for current thread :-(");
}
... | java | public TransactionImpl getCurrentTransaction()
{
TransactionImpl tx = tx_table.get(Thread.currentThread());
if(tx == null)
{
throw new TransactionNotInProgressException("Calling method needed transaction, but no transaction found for current thread :-(");
}
... | [
"public",
"TransactionImpl",
"getCurrentTransaction",
"(",
")",
"{",
"TransactionImpl",
"tx",
"=",
"tx_table",
".",
"get",
"(",
"Thread",
".",
"currentThread",
"(",
")",
")",
";",
"if",
"(",
"tx",
"==",
"null",
")",
"{",
"throw",
"new",
"TransactionNotInProg... | Returns the current transaction for the calling thread.
@throws org.odmg.TransactionNotInProgressException
{@link org.odmg.TransactionNotInProgressException} if no transaction was found. | [
"Returns",
"the",
"current",
"transaction",
"for",
"the",
"calling",
"thread",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/odmg/LocalTxManager.java#L54-L62 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.getDefaultTableName | public String getDefaultTableName()
{
String name = getName();
int lastDotPos = name.lastIndexOf('.');
int lastDollarPos = name.lastIndexOf('$');
return lastDollarPos > lastDotPos ? name.substring(lastDollarPos + 1) : name.substring(lastDotPos + 1);
} | java | public String getDefaultTableName()
{
String name = getName();
int lastDotPos = name.lastIndexOf('.');
int lastDollarPos = name.lastIndexOf('$');
return lastDollarPos > lastDotPos ? name.substring(lastDollarPos + 1) : name.substring(lastDotPos + 1);
} | [
"public",
"String",
"getDefaultTableName",
"(",
")",
"{",
"String",
"name",
"=",
"getName",
"(",
")",
";",
"int",
"lastDotPos",
"=",
"name",
".",
"lastIndexOf",
"(",
"'",
"'",
")",
";",
"int",
"lastDollarPos",
"=",
"name",
".",
"lastIndexOf",
"(",
"'",
... | Returns the default table name for this class which is the unqualified class name.
@return The default table name | [
"Returns",
"the",
"default",
"table",
"name",
"for",
"this",
"class",
"which",
"is",
"the",
"unqualified",
"class",
"name",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L96-L103 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.sortFields | private void sortFields()
{
HashMap fields = new HashMap();
ArrayList fieldsWithId = new ArrayList();
ArrayList fieldsWithoutId = new ArrayList();
FieldDescriptorDef fieldDef;
for (Iterator it = getFields(); it.hasNext(); )
... | java | private void sortFields()
{
HashMap fields = new HashMap();
ArrayList fieldsWithId = new ArrayList();
ArrayList fieldsWithoutId = new ArrayList();
FieldDescriptorDef fieldDef;
for (Iterator it = getFields(); it.hasNext(); )
... | [
"private",
"void",
"sortFields",
"(",
")",
"{",
"HashMap",
"fields",
"=",
"new",
"HashMap",
"(",
")",
";",
"ArrayList",
"fieldsWithId",
"=",
"new",
"ArrayList",
"(",
")",
";",
"ArrayList",
"fieldsWithoutId",
"=",
"new",
"ArrayList",
"(",
")",
";",
"FieldDe... | Sorts the fields. | [
"Sorts",
"the",
"fields",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L223-L258 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.checkConstraints | public void checkConstraints(String checkLevel) throws ConstraintException
{
// now checking constraints
FieldDescriptorConstraints fieldConstraints = new FieldDescriptorConstraints();
ReferenceDescriptorConstraints refConstraints = new ReferenceDescriptorConstraints();
... | java | public void checkConstraints(String checkLevel) throws ConstraintException
{
// now checking constraints
FieldDescriptorConstraints fieldConstraints = new FieldDescriptorConstraints();
ReferenceDescriptorConstraints refConstraints = new ReferenceDescriptorConstraints();
... | [
"public",
"void",
"checkConstraints",
"(",
"String",
"checkLevel",
")",
"throws",
"ConstraintException",
"{",
"// now checking constraints\r",
"FieldDescriptorConstraints",
"fieldConstraints",
"=",
"new",
"FieldDescriptorConstraints",
"(",
")",
";",
"ReferenceDescriptorConstrai... | Checks the constraints on this class.
@param checkLevel The amount of checks to perform
@exception ConstraintException If a constraint has been violated | [
"Checks",
"the",
"constraints",
"on",
"this",
"class",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L266-L286 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.contains | private boolean contains(ArrayList defs, DefBase obj)
{
for (Iterator it = defs.iterator(); it.hasNext();)
{
if (obj.getName().equals(((DefBase)it.next()).getName()))
{
return true;
}
}
return false;
} | java | private boolean contains(ArrayList defs, DefBase obj)
{
for (Iterator it = defs.iterator(); it.hasNext();)
{
if (obj.getName().equals(((DefBase)it.next()).getName()))
{
return true;
}
}
return false;
} | [
"private",
"boolean",
"contains",
"(",
"ArrayList",
"defs",
",",
"DefBase",
"obj",
")",
"{",
"for",
"(",
"Iterator",
"it",
"=",
"defs",
".",
"iterator",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
";",
")",
"{",
"if",
"(",
"obj",
".",
"getName",... | Determines whether the given list contains a descriptor with the same name.
@param defs The list to search
@param obj The object that is searched for
@return <code>true</code> if the list contains a descriptor with the same name | [
"Determines",
"whether",
"the",
"given",
"list",
"contains",
"a",
"descriptor",
"with",
"the",
"same",
"name",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L319-L329 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.cloneField | private FieldDescriptorDef cloneField(FieldDescriptorDef fieldDef, String prefix)
{
FieldDescriptorDef copyFieldDef = new FieldDescriptorDef(fieldDef, prefix);
copyFieldDef.setOwner(this);
// we remove properties that are only relevant to the class the features are declared in
... | java | private FieldDescriptorDef cloneField(FieldDescriptorDef fieldDef, String prefix)
{
FieldDescriptorDef copyFieldDef = new FieldDescriptorDef(fieldDef, prefix);
copyFieldDef.setOwner(this);
// we remove properties that are only relevant to the class the features are declared in
... | [
"private",
"FieldDescriptorDef",
"cloneField",
"(",
"FieldDescriptorDef",
"fieldDef",
",",
"String",
"prefix",
")",
"{",
"FieldDescriptorDef",
"copyFieldDef",
"=",
"new",
"FieldDescriptorDef",
"(",
"fieldDef",
",",
"prefix",
")",
";",
"copyFieldDef",
".",
"setOwner",
... | Clones the given field.
@param fieldDef The field descriptor
@param prefix A prefix for the name
@return The cloned field | [
"Clones",
"the",
"given",
"field",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L446-L470 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.cloneReference | private ReferenceDescriptorDef cloneReference(ReferenceDescriptorDef refDef, String prefix)
{
ReferenceDescriptorDef copyRefDef = new ReferenceDescriptorDef(refDef, prefix);
copyRefDef.setOwner(this);
// we remove properties that are only relevant to the class the features are declared... | java | private ReferenceDescriptorDef cloneReference(ReferenceDescriptorDef refDef, String prefix)
{
ReferenceDescriptorDef copyRefDef = new ReferenceDescriptorDef(refDef, prefix);
copyRefDef.setOwner(this);
// we remove properties that are only relevant to the class the features are declared... | [
"private",
"ReferenceDescriptorDef",
"cloneReference",
"(",
"ReferenceDescriptorDef",
"refDef",
",",
"String",
"prefix",
")",
"{",
"ReferenceDescriptorDef",
"copyRefDef",
"=",
"new",
"ReferenceDescriptorDef",
"(",
"refDef",
",",
"prefix",
")",
";",
"copyRefDef",
".",
... | Clones the given reference.
@param refDef The reference descriptor
@param prefix A prefix for the name
@return The cloned reference | [
"Clones",
"the",
"given",
"reference",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L479-L503 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.cloneCollection | private CollectionDescriptorDef cloneCollection(CollectionDescriptorDef collDef, String prefix)
{
CollectionDescriptorDef copyCollDef = new CollectionDescriptorDef(collDef, prefix);
copyCollDef.setOwner(this);
// we remove properties that are only relevant to the class the features are... | java | private CollectionDescriptorDef cloneCollection(CollectionDescriptorDef collDef, String prefix)
{
CollectionDescriptorDef copyCollDef = new CollectionDescriptorDef(collDef, prefix);
copyCollDef.setOwner(this);
// we remove properties that are only relevant to the class the features are... | [
"private",
"CollectionDescriptorDef",
"cloneCollection",
"(",
"CollectionDescriptorDef",
"collDef",
",",
"String",
"prefix",
")",
"{",
"CollectionDescriptorDef",
"copyCollDef",
"=",
"new",
"CollectionDescriptorDef",
"(",
"collDef",
",",
"prefix",
")",
";",
"copyCollDef",
... | Clones the given collection.
@param collDef The collection descriptor
@param prefix A prefix for the name
@return The cloned collection | [
"Clones",
"the",
"given",
"collection",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L512-L536 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.getAllBaseTypes | public Iterator getAllBaseTypes()
{
ArrayList baseTypes = new ArrayList();
baseTypes.addAll(_directBaseTypes.values());
for (int idx = baseTypes.size() - 1; idx >= 0; idx--)
{
ClassDescriptorDef curClassDef = (ClassDescriptorDef)baseTypes.get(idx);
... | java | public Iterator getAllBaseTypes()
{
ArrayList baseTypes = new ArrayList();
baseTypes.addAll(_directBaseTypes.values());
for (int idx = baseTypes.size() - 1; idx >= 0; idx--)
{
ClassDescriptorDef curClassDef = (ClassDescriptorDef)baseTypes.get(idx);
... | [
"public",
"Iterator",
"getAllBaseTypes",
"(",
")",
"{",
"ArrayList",
"baseTypes",
"=",
"new",
"ArrayList",
"(",
")",
";",
"baseTypes",
".",
"addAll",
"(",
"_directBaseTypes",
".",
"values",
"(",
")",
")",
";",
"for",
"(",
"int",
"idx",
"=",
"baseTypes",
... | Returns all base types.
@return An iterator of the base types | [
"Returns",
"all",
"base",
"types",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L563-L585 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.getAllExtentClasses | public Iterator getAllExtentClasses()
{
ArrayList subTypes = new ArrayList();
subTypes.addAll(_extents);
for (int idx = 0; idx < subTypes.size(); idx++)
{
ClassDescriptorDef curClassDef = (ClassDescriptorDef)subTypes.get(idx);
for (Iterator it = c... | java | public Iterator getAllExtentClasses()
{
ArrayList subTypes = new ArrayList();
subTypes.addAll(_extents);
for (int idx = 0; idx < subTypes.size(); idx++)
{
ClassDescriptorDef curClassDef = (ClassDescriptorDef)subTypes.get(idx);
for (Iterator it = c... | [
"public",
"Iterator",
"getAllExtentClasses",
"(",
")",
"{",
"ArrayList",
"subTypes",
"=",
"new",
"ArrayList",
"(",
")",
";",
"subTypes",
".",
"addAll",
"(",
"_extents",
")",
";",
"for",
"(",
"int",
"idx",
"=",
"0",
";",
"idx",
"<",
"subTypes",
".",
"si... | Returns an iterator of all direct and indirect extents of this class.
@return The extents iterator | [
"Returns",
"an",
"iterator",
"of",
"all",
"direct",
"and",
"indirect",
"extents",
"of",
"this",
"class",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L617-L638 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.getField | public FieldDescriptorDef getField(String name)
{
FieldDescriptorDef fieldDef = null;
for (Iterator it = _fields.iterator(); it.hasNext(); )
{
fieldDef = (FieldDescriptorDef)it.next();
if (fieldDef.getName().equals(name))
{
return... | java | public FieldDescriptorDef getField(String name)
{
FieldDescriptorDef fieldDef = null;
for (Iterator it = _fields.iterator(); it.hasNext(); )
{
fieldDef = (FieldDescriptorDef)it.next();
if (fieldDef.getName().equals(name))
{
return... | [
"public",
"FieldDescriptorDef",
"getField",
"(",
"String",
"name",
")",
"{",
"FieldDescriptorDef",
"fieldDef",
"=",
"null",
";",
"for",
"(",
"Iterator",
"it",
"=",
"_fields",
".",
"iterator",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
";",
")",
"{",
... | Returns the field definition with the specified name.
@param name The name of the desired field
@return The field definition or <code>null</code> if there is no such field | [
"Returns",
"the",
"field",
"definition",
"with",
"the",
"specified",
"name",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L709-L722 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.getFields | public ArrayList getFields(String fieldNames) throws NoSuchFieldException
{
ArrayList result = new ArrayList();
FieldDescriptorDef fieldDef;
String name;
for (CommaListIterator it = new CommaListIterator(fieldNames); it.hasNext();)
{
... | java | public ArrayList getFields(String fieldNames) throws NoSuchFieldException
{
ArrayList result = new ArrayList();
FieldDescriptorDef fieldDef;
String name;
for (CommaListIterator it = new CommaListIterator(fieldNames); it.hasNext();)
{
... | [
"public",
"ArrayList",
"getFields",
"(",
"String",
"fieldNames",
")",
"throws",
"NoSuchFieldException",
"{",
"ArrayList",
"result",
"=",
"new",
"ArrayList",
"(",
")",
";",
"FieldDescriptorDef",
"fieldDef",
";",
"String",
"name",
";",
"for",
"(",
"CommaListIterator... | Returns the field descriptors given in the the field names list.
@param fieldNames The field names, separated by commas
@return The field descriptors in the order given by the field names
@throws NoSuchFieldException If a field hasn't been found | [
"Returns",
"the",
"field",
"descriptors",
"given",
"in",
"the",
"the",
"field",
"names",
"list",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L741-L758 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.getPrimaryKeys | public ArrayList getPrimaryKeys()
{
ArrayList result = new ArrayList();
FieldDescriptorDef fieldDef;
for (Iterator it = getFields(); it.hasNext();)
{
fieldDef = (FieldDescriptorDef)it.next();
if (fieldDef.getBooleanProperty(PropertyHelper.OJB... | java | public ArrayList getPrimaryKeys()
{
ArrayList result = new ArrayList();
FieldDescriptorDef fieldDef;
for (Iterator it = getFields(); it.hasNext();)
{
fieldDef = (FieldDescriptorDef)it.next();
if (fieldDef.getBooleanProperty(PropertyHelper.OJB... | [
"public",
"ArrayList",
"getPrimaryKeys",
"(",
")",
"{",
"ArrayList",
"result",
"=",
"new",
"ArrayList",
"(",
")",
";",
"FieldDescriptorDef",
"fieldDef",
";",
"for",
"(",
"Iterator",
"it",
"=",
"getFields",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
"... | Returns the primarykey fields.
@return The field descriptors of the primarykey fields | [
"Returns",
"the",
"primarykey",
"fields",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L765-L779 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.getReference | public ReferenceDescriptorDef getReference(String name)
{
ReferenceDescriptorDef refDef;
for (Iterator it = _references.iterator(); it.hasNext(); )
{
refDef = (ReferenceDescriptorDef)it.next();
if (refDef.getName().equals(name))
{
... | java | public ReferenceDescriptorDef getReference(String name)
{
ReferenceDescriptorDef refDef;
for (Iterator it = _references.iterator(); it.hasNext(); )
{
refDef = (ReferenceDescriptorDef)it.next();
if (refDef.getName().equals(name))
{
... | [
"public",
"ReferenceDescriptorDef",
"getReference",
"(",
"String",
"name",
")",
"{",
"ReferenceDescriptorDef",
"refDef",
";",
"for",
"(",
"Iterator",
"it",
"=",
"_references",
".",
"iterator",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
";",
")",
"{",
"... | Returns a reference definition of the given name if it exists.
@param name The name of the reference
@return The reference def or <code>null</code> if there is no such reference | [
"Returns",
"a",
"reference",
"definition",
"of",
"the",
"given",
"name",
"if",
"it",
"exists",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L798-L811 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.getCollection | public CollectionDescriptorDef getCollection(String name)
{
CollectionDescriptorDef collDef = null;
for (Iterator it = _collections.iterator(); it.hasNext(); )
{
collDef = (CollectionDescriptorDef)it.next();
if (collDef.getName().equals(name))
{
... | java | public CollectionDescriptorDef getCollection(String name)
{
CollectionDescriptorDef collDef = null;
for (Iterator it = _collections.iterator(); it.hasNext(); )
{
collDef = (CollectionDescriptorDef)it.next();
if (collDef.getName().equals(name))
{
... | [
"public",
"CollectionDescriptorDef",
"getCollection",
"(",
"String",
"name",
")",
"{",
"CollectionDescriptorDef",
"collDef",
"=",
"null",
";",
"for",
"(",
"Iterator",
"it",
"=",
"_collections",
".",
"iterator",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
... | Returns the collection definition of the given name if it exists.
@param name The name of the collection
@return The collection definition or <code>null</code> if there is no such collection | [
"Returns",
"the",
"collection",
"definition",
"of",
"the",
"given",
"name",
"if",
"it",
"exists",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L840-L853 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.getNested | public NestedDef getNested(String name)
{
NestedDef nestedDef = null;
for (Iterator it = _nested.iterator(); it.hasNext(); )
{
nestedDef = (NestedDef)it.next();
if (nestedDef.getName().equals(name))
{
return nestedDef;
... | java | public NestedDef getNested(String name)
{
NestedDef nestedDef = null;
for (Iterator it = _nested.iterator(); it.hasNext(); )
{
nestedDef = (NestedDef)it.next();
if (nestedDef.getName().equals(name))
{
return nestedDef;
... | [
"public",
"NestedDef",
"getNested",
"(",
"String",
"name",
")",
"{",
"NestedDef",
"nestedDef",
"=",
"null",
";",
"for",
"(",
"Iterator",
"it",
"=",
"_nested",
".",
"iterator",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
";",
")",
"{",
"nestedDef",
... | Returns the nested object definition with the specified name.
@param name The name of the attribute of the nested object
@return The nested object definition or <code>null</code> if there is no such nested object | [
"Returns",
"the",
"nested",
"object",
"definition",
"with",
"the",
"specified",
"name",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L882-L895 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.getIndexDescriptor | public IndexDescriptorDef getIndexDescriptor(String name)
{
IndexDescriptorDef indexDef = null;
for (Iterator it = _indexDescriptors.iterator(); it.hasNext(); )
{
indexDef = (IndexDescriptorDef)it.next();
if (indexDef.getName().equals(name))
{
... | java | public IndexDescriptorDef getIndexDescriptor(String name)
{
IndexDescriptorDef indexDef = null;
for (Iterator it = _indexDescriptors.iterator(); it.hasNext(); )
{
indexDef = (IndexDescriptorDef)it.next();
if (indexDef.getName().equals(name))
{
... | [
"public",
"IndexDescriptorDef",
"getIndexDescriptor",
"(",
"String",
"name",
")",
"{",
"IndexDescriptorDef",
"indexDef",
"=",
"null",
";",
"for",
"(",
"Iterator",
"it",
"=",
"_indexDescriptors",
".",
"iterator",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
... | Returns the index descriptor definition of the given name if it exists.
@param name The name of the index
@return The index descriptor definition or <code>null</code> if there is no such index | [
"Returns",
"the",
"index",
"descriptor",
"definition",
"of",
"the",
"given",
"name",
"if",
"it",
"exists",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L924-L937 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.addProcedure | public void addProcedure(ProcedureDef procDef)
{
procDef.setOwner(this);
_procedures.put(procDef.getName(), procDef);
} | java | public void addProcedure(ProcedureDef procDef)
{
procDef.setOwner(this);
_procedures.put(procDef.getName(), procDef);
} | [
"public",
"void",
"addProcedure",
"(",
"ProcedureDef",
"procDef",
")",
"{",
"procDef",
".",
"setOwner",
"(",
"this",
")",
";",
"_procedures",
".",
"put",
"(",
"procDef",
".",
"getName",
"(",
")",
",",
"procDef",
")",
";",
"}"
] | Adds a procedure definition to this class descriptor.
@param procDef The procedure definition | [
"Adds",
"a",
"procedure",
"definition",
"to",
"this",
"class",
"descriptor",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L981-L985 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java | ClassDescriptorDef.addProcedureArgument | public void addProcedureArgument(ProcedureArgumentDef argDef)
{
argDef.setOwner(this);
_procedureArguments.put(argDef.getName(), argDef);
} | java | public void addProcedureArgument(ProcedureArgumentDef argDef)
{
argDef.setOwner(this);
_procedureArguments.put(argDef.getName(), argDef);
} | [
"public",
"void",
"addProcedureArgument",
"(",
"ProcedureArgumentDef",
"argDef",
")",
"{",
"argDef",
".",
"setOwner",
"(",
"this",
")",
";",
"_procedureArguments",
".",
"put",
"(",
"argDef",
".",
"getName",
"(",
")",
",",
"argDef",
")",
";",
"}"
] | Adds a procedure argument definition to this class descriptor.
@param argDef The procedure argument definition | [
"Adds",
"a",
"procedure",
"argument",
"definition",
"to",
"this",
"class",
"descriptor",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/model/ClassDescriptorDef.java#L1013-L1017 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.processClass | public void processClass(String template, Properties attributes) throws XDocletException
{
if (!_model.hasClass(getCurrentClass().getQualifiedName()))
{
// we only want to output the log message once
LogHelper.debug(true, OjbTagsHandler.class, "processClass", "Type "+get... | java | public void processClass(String template, Properties attributes) throws XDocletException
{
if (!_model.hasClass(getCurrentClass().getQualifiedName()))
{
// we only want to output the log message once
LogHelper.debug(true, OjbTagsHandler.class, "processClass", "Type "+get... | [
"public",
"void",
"processClass",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"if",
"(",
"!",
"_model",
".",
"hasClass",
"(",
"getCurrentClass",
"(",
")",
".",
"getQualifiedName",
"(",
")",
")",
")",
"{... | Sets the current class definition derived from the current class, and optionally some attributes.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block"
@doc.param name=... | [
"Sets",
"the",
"current",
"class",
"definition",
"derived",
"from",
"the",
"current",
"class",
"and",
"optionally",
"some",
"attributes",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L143-L162 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllClassDefinitions | public void forAllClassDefinitions(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _model.getClasses(); it.hasNext(); )
{
_curClassDef = (ClassDescriptorDef)it.next();
generate(template);
}
_curClassDef = null;
... | java | public void forAllClassDefinitions(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _model.getClasses(); it.hasNext(); )
{
_curClassDef = (ClassDescriptorDef)it.next();
generate(template);
}
_curClassDef = null;
... | [
"public",
"void",
"forAllClassDefinitions",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"for",
"(",
"Iterator",
"it",
"=",
"_model",
".",
"getClasses",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
";"... | Processes the template for all class definitions.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"class",
"definitions",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L172-L182 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.originalClass | public void originalClass(String template, Properties attributes) throws XDocletException
{
pushCurrentClass(_curClassDef.getOriginalClass());
generate(template);
popCurrentClass();
} | java | public void originalClass(String template, Properties attributes) throws XDocletException
{
pushCurrentClass(_curClassDef.getOriginalClass());
generate(template);
popCurrentClass();
} | [
"public",
"void",
"originalClass",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"pushCurrentClass",
"(",
"_curClassDef",
".",
"getOriginalClass",
"(",
")",
")",
";",
"generate",
"(",
"template",
")",
";",
"p... | Processes the original class rather than the current class definition.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"original",
"class",
"rather",
"than",
"the",
"current",
"class",
"definition",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L192-L197 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.addExtent | public String addExtent(Properties attributes) throws XDocletException
{
String name = attributes.getProperty(ATTRIBUTE_NAME);
if (!_model.hasClass(name))
{
throw new XDocletException(Translator.getString(XDocletModulesOjbMessages.class,
... | java | public String addExtent(Properties attributes) throws XDocletException
{
String name = attributes.getProperty(ATTRIBUTE_NAME);
if (!_model.hasClass(name))
{
throw new XDocletException(Translator.getString(XDocletModulesOjbMessages.class,
... | [
"public",
"String",
"addExtent",
"(",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"name",
"=",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE_NAME",
")",
";",
"if",
"(",
"!",
"_model",
".",
"hasClass",
"(",
"name",
")",
"... | Adds an extent relation to the current class definition.
@param attributes The attributes of the tag
@return An empty string
@exception XDocletException If an error occurs
@doc.tag type="content"
@doc.param name="name" optional="false" description=... | [
"Adds",
"an",
"extent",
"relation",
"to",
"the",
"current",
"class",
"definition",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L325-L337 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllExtents | public void forAllExtents(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curClassDef.getExtentClasses(); it.hasNext(); )
{
_curExtent = (ClassDescriptorDef)it.next();
generate(template);
}
_curExtent = null;
} | java | public void forAllExtents(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curClassDef.getExtentClasses(); it.hasNext(); )
{
_curExtent = (ClassDescriptorDef)it.next();
generate(template);
}
_curExtent = null;
} | [
"public",
"void",
"forAllExtents",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"for",
"(",
"Iterator",
"it",
"=",
"_curClassDef",
".",
"getExtentClasses",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
... | Processes the template for all extents of the current class.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"extents",
"of",
"the",
"current",
"class",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L347-L355 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.processIndexDescriptor | public String processIndexDescriptor(Properties attributes) throws XDocletException
{
String name = attributes.getProperty(ATTRIBUTE_NAME);
IndexDescriptorDef indexDef = _curClassDef.getIndexDescriptor(name);
String attrName;
if (indexDef ==... | java | public String processIndexDescriptor(Properties attributes) throws XDocletException
{
String name = attributes.getProperty(ATTRIBUTE_NAME);
IndexDescriptorDef indexDef = _curClassDef.getIndexDescriptor(name);
String attrName;
if (indexDef ==... | [
"public",
"String",
"processIndexDescriptor",
"(",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"name",
"=",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE_NAME",
")",
";",
"IndexDescriptorDef",
"indexDef",
"=",
"_curClassDef",
".",... | Processes an index descriptor tag.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException If an error occurs
@doc.tag type="content"
@doc.param name="documentation" optional="true" description="Documentation on... | [
"Processes",
"an",
"index",
"descriptor",
"tag",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L384-L409 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllIndexDescriptorDefinitions | public void forAllIndexDescriptorDefinitions(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curClassDef.getIndexDescriptors(); it.hasNext(); )
{
_curIndexDescriptorDef = (IndexDescriptorDef)it.next();
generate(template);
}
... | java | public void forAllIndexDescriptorDefinitions(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curClassDef.getIndexDescriptors(); it.hasNext(); )
{
_curIndexDescriptorDef = (IndexDescriptorDef)it.next();
generate(template);
}
... | [
"public",
"void",
"forAllIndexDescriptorDefinitions",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"for",
"(",
"Iterator",
"it",
"=",
"_curClassDef",
".",
"getIndexDescriptors",
"(",
")",
";",
"it",
".",
"hasN... | Processes the template for all index descriptors of the current class definition.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"index",
"descriptors",
"of",
"the",
"current",
"class",
"definition",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L419-L427 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllIndexDescriptorColumns | public void forAllIndexDescriptorColumns(String template, Properties attributes) throws XDocletException
{
String fields = _curIndexDescriptorDef.getProperty(PropertyHelper.OJB_PROPERTY_FIELDS);
FieldDescriptorDef fieldDef;
String name;
for (CommaListIt... | java | public void forAllIndexDescriptorColumns(String template, Properties attributes) throws XDocletException
{
String fields = _curIndexDescriptorDef.getProperty(PropertyHelper.OJB_PROPERTY_FIELDS);
FieldDescriptorDef fieldDef;
String name;
for (CommaListIt... | [
"public",
"void",
"forAllIndexDescriptorColumns",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"fields",
"=",
"_curIndexDescriptorDef",
".",
"getProperty",
"(",
"PropertyHelper",
".",
"OJB_PROPERTY_FIELDS",
... | Processes the template for all index columns for the current index descriptor.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"index",
"columns",
"for",
"the",
"current",
"index",
"descriptor",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L437-L457 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.processObjectCache | public String processObjectCache(Properties attributes) throws XDocletException
{
ObjectCacheDef objCacheDef = _curClassDef.setObjectCache(attributes.getProperty(ATTRIBUTE_CLASS));
String attrName;
attributes.remove(ATTRIBUTE_CLASS);
for (Enumeration attrNames = attrib... | java | public String processObjectCache(Properties attributes) throws XDocletException
{
ObjectCacheDef objCacheDef = _curClassDef.setObjectCache(attributes.getProperty(ATTRIBUTE_CLASS));
String attrName;
attributes.remove(ATTRIBUTE_CLASS);
for (Enumeration attrNames = attrib... | [
"public",
"String",
"processObjectCache",
"(",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"ObjectCacheDef",
"objCacheDef",
"=",
"_curClassDef",
".",
"setObjectCache",
"(",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE_CLASS",
")",
")",
";"... | Processes an object cache tag.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException If an error occurs
@doc.tag type="content"
@doc.param name="attributes" optional="true" description="Attributes of the objec... | [
"Processes",
"an",
"object",
"cache",
"tag",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L486-L498 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forObjectCache | public void forObjectCache(String template, Properties attributes) throws XDocletException
{
_curObjectCacheDef = _curClassDef.getObjectCache();
if (_curObjectCacheDef != null)
{
generate(template);
_curObjectCacheDef = null;
}
} | java | public void forObjectCache(String template, Properties attributes) throws XDocletException
{
_curObjectCacheDef = _curClassDef.getObjectCache();
if (_curObjectCacheDef != null)
{
generate(template);
_curObjectCacheDef = null;
}
} | [
"public",
"void",
"forObjectCache",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"_curObjectCacheDef",
"=",
"_curClassDef",
".",
"getObjectCache",
"(",
")",
";",
"if",
"(",
"_curObjectCacheDef",
"!=",
"null",
... | Processes the template for the object cache of the current class definition.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"the",
"object",
"cache",
"of",
"the",
"current",
"class",
"definition",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L508-L516 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.processProcedure | public String processProcedure(Properties attributes) throws XDocletException
{
String type = attributes.getProperty(ATTRIBUTE_TYPE);
ProcedureDef procDef = _curClassDef.getProcedure(type);
String attrName;
if (procDef == null)
{
procDe... | java | public String processProcedure(Properties attributes) throws XDocletException
{
String type = attributes.getProperty(ATTRIBUTE_TYPE);
ProcedureDef procDef = _curClassDef.getProcedure(type);
String attrName;
if (procDef == null)
{
procDe... | [
"public",
"String",
"processProcedure",
"(",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"type",
"=",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE_TYPE",
")",
";",
"ProcedureDef",
"procDef",
"=",
"_curClassDef",
".",
"getProced... | Processes a procedure tag.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException If an error occurs
@doc.tag type="content"
@doc.param name="arguments" optional="true" description="The arguments of the procedu... | [
"Processes",
"a",
"procedure",
"tag",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L540-L558 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllProcedures | public void forAllProcedures(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curClassDef.getProcedures(); it.hasNext(); )
{
_curProcedureDef = (ProcedureDef)it.next();
generate(template);
}
_curProcedureDef = null;
... | java | public void forAllProcedures(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curClassDef.getProcedures(); it.hasNext(); )
{
_curProcedureDef = (ProcedureDef)it.next();
generate(template);
}
_curProcedureDef = null;
... | [
"public",
"void",
"forAllProcedures",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"for",
"(",
"Iterator",
"it",
"=",
"_curClassDef",
".",
"getProcedures",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
... | Processes the template for all procedures of the current class definition.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"procedures",
"of",
"the",
"current",
"class",
"definition",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L568-L576 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.processProcedureArgument | public String processProcedureArgument(Properties attributes) throws XDocletException
{
String id = attributes.getProperty(ATTRIBUTE_NAME);
ProcedureArgumentDef argDef = _curClassDef.getProcedureArgument(id);
String attrName;
if (argDef ... | java | public String processProcedureArgument(Properties attributes) throws XDocletException
{
String id = attributes.getProperty(ATTRIBUTE_NAME);
ProcedureArgumentDef argDef = _curClassDef.getProcedureArgument(id);
String attrName;
if (argDef ... | [
"public",
"String",
"processProcedureArgument",
"(",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"id",
"=",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE_NAME",
")",
";",
"ProcedureArgumentDef",
"argDef",
"=",
"_curClassDef",
".",... | Processes a runtime procedure argument tag.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException If an error occurs
@doc.tag type="content"
@doc.param name="attributes" optional="true" description="Attributes... | [
"Processes",
"a",
"runtime",
"procedure",
"argument",
"tag",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L595-L614 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllProcedureArguments | public void forAllProcedureArguments(String template, Properties attributes) throws XDocletException
{
String argNameList = _curProcedureDef.getProperty(PropertyHelper.OJB_PROPERTY_ARGUMENTS);
for (CommaListIterator it = new CommaListIterator(argNameList); it.hasNext();)
{
... | java | public void forAllProcedureArguments(String template, Properties attributes) throws XDocletException
{
String argNameList = _curProcedureDef.getProperty(PropertyHelper.OJB_PROPERTY_ARGUMENTS);
for (CommaListIterator it = new CommaListIterator(argNameList); it.hasNext();)
{
... | [
"public",
"void",
"forAllProcedureArguments",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"argNameList",
"=",
"_curProcedureDef",
".",
"getProperty",
"(",
"PropertyHelper",
".",
"OJB_PROPERTY_ARGUMENTS",
... | Processes the template for all procedure arguments of the current procedure.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"procedure",
"arguments",
"of",
"the",
"current",
"procedure",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L624-L634 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.processAnonymousField | public void processAnonymousField(Properties attributes) throws XDocletException
{
if (!attributes.containsKey(ATTRIBUTE_NAME))
{
throw new XDocletException(Translator.getString(XDocletModulesOjbMessages.class,
XDocletModulesOjbMessages.PARAMET... | java | public void processAnonymousField(Properties attributes) throws XDocletException
{
if (!attributes.containsKey(ATTRIBUTE_NAME))
{
throw new XDocletException(Translator.getString(XDocletModulesOjbMessages.class,
XDocletModulesOjbMessages.PARAMET... | [
"public",
"void",
"processAnonymousField",
"(",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"if",
"(",
"!",
"attributes",
".",
"containsKey",
"(",
"ATTRIBUTE_NAME",
")",
")",
"{",
"throw",
"new",
"XDocletException",
"(",
"Translator",
".",
... | Processes an anonymous field definition specified at the class level.
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="content"
@doc.param name="attributes" optional="true" description="Attributes of the field as... | [
"Processes",
"an",
"anonymous",
"field",
"definition",
"specified",
"at",
"the",
"class",
"level",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L677-L705 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.processField | public void processField(String template, Properties attributes) throws XDocletException
{
String name = OjbMemberTagsHandler.getMemberName();
String defaultType = getDefaultJdbcTypeForCurrentMember();
String defaultConversion = getD... | java | public void processField(String template, Properties attributes) throws XDocletException
{
String name = OjbMemberTagsHandler.getMemberName();
String defaultType = getDefaultJdbcTypeForCurrentMember();
String defaultConversion = getD... | [
"public",
"void",
"processField",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"name",
"=",
"OjbMemberTagsHandler",
".",
"getMemberName",
"(",
")",
";",
"String",
"defaultType",
"=",
"getDefaultJdbcTyp... | Sets the current field definition derived from the current member, and optionally some attributes.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block"
@doc.param name... | [
"Sets",
"the",
"current",
"field",
"definition",
"derived",
"from",
"the",
"current",
"member",
"and",
"optionally",
"some",
"attributes",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L748-L780 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.processAnonymousReference | public void processAnonymousReference(Properties attributes) throws XDocletException
{
ReferenceDescriptorDef refDef = _curClassDef.getReference("super");
String attrName;
if (refDef == null)
{
refDef = new ReferenceDescriptorDef("super");
... | java | public void processAnonymousReference(Properties attributes) throws XDocletException
{
ReferenceDescriptorDef refDef = _curClassDef.getReference("super");
String attrName;
if (refDef == null)
{
refDef = new ReferenceDescriptorDef("super");
... | [
"public",
"void",
"processAnonymousReference",
"(",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"ReferenceDescriptorDef",
"refDef",
"=",
"_curClassDef",
".",
"getReference",
"(",
"\"super\"",
")",
";",
"String",
"attrName",
";",
"if",
"(",
"r... | Processes an anonymous reference definition.
@param attributes The attributes of the tag
@exception XDocletException If an error occurs
@doc.tag type="content"
@doc.param name="attributes" optional="true" description="Attributes of the reference as name-value pairs 'na... | [
"Processes",
"an",
"anonymous",
"reference",
"definition",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L847-L865 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.processReference | public void processReference(String template, Properties attributes) throws XDocletException
{
String name = OjbMemberTagsHandler.getMemberName();
XClass type = OjbMemberTagsHandler.getMemberType();
int dim = OjbMemberTagsHandler.... | java | public void processReference(String template, Properties attributes) throws XDocletException
{
String name = OjbMemberTagsHandler.getMemberName();
XClass type = OjbMemberTagsHandler.getMemberType();
int dim = OjbMemberTagsHandler.... | [
"public",
"void",
"processReference",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"name",
"=",
"OjbMemberTagsHandler",
".",
"getMemberName",
"(",
")",
";",
"XClass",
"type",
"=",
"OjbMemberTagsHandler... | Sets the current reference definition derived from the current member, and optionally some attributes.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException If an error occurs
@doc.tag type="block"
@doc.param ... | [
"Sets",
"the",
"current",
"reference",
"definition",
"derived",
"from",
"the",
"current",
"member",
"and",
"optionally",
"some",
"attributes",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L897-L944 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllReferenceDefinitions | public void forAllReferenceDefinitions(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curClassDef.getReferences(); it.hasNext(); )
{
_curReferenceDef = (ReferenceDescriptorDef)it.next();
// first we check whether it is an inherited ... | java | public void forAllReferenceDefinitions(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curClassDef.getReferences(); it.hasNext(); )
{
_curReferenceDef = (ReferenceDescriptorDef)it.next();
// first we check whether it is an inherited ... | [
"public",
"void",
"forAllReferenceDefinitions",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"for",
"(",
"Iterator",
"it",
"=",
"_curClassDef",
".",
"getReferences",
"(",
")",
";",
"it",
".",
"hasNext",
"(",... | Processes the template for all reference definitions of the current class definition.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"reference",
"definitions",
"of",
"the",
"current",
"class",
"definition",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L954-L971 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.processCollection | public void processCollection(String template, Properties attributes) throws XDocletException
{
String name = OjbMemberTagsHandler.getMemberName();
CollectionDescriptorDef collDef = _curClassDef.getCollection(name);
String attrName;
if (col... | java | public void processCollection(String template, Properties attributes) throws XDocletException
{
String name = OjbMemberTagsHandler.getMemberName();
CollectionDescriptorDef collDef = _curClassDef.getCollection(name);
String attrName;
if (col... | [
"public",
"void",
"processCollection",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"name",
"=",
"OjbMemberTagsHandler",
".",
"getMemberName",
"(",
")",
";",
"CollectionDescriptorDef",
"collDef",
"=",
... | Sets the current collection definition derived from the current member, and optionally some attributes.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException If an error occurs
@doc.tag type="block"
@doc.param ... | [
"Sets",
"the",
"current",
"collection",
"definition",
"derived",
"from",
"the",
"current",
"member",
"and",
"optionally",
"some",
"attributes",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1019-L1052 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllCollectionDefinitions | public void forAllCollectionDefinitions(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curClassDef.getCollections(); it.hasNext(); )
{
_curCollectionDef = (CollectionDescriptorDef)it.next();
if (!isFeatureIgnored(LEVEL_COLLECTION) &... | java | public void forAllCollectionDefinitions(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curClassDef.getCollections(); it.hasNext(); )
{
_curCollectionDef = (CollectionDescriptorDef)it.next();
if (!isFeatureIgnored(LEVEL_COLLECTION) &... | [
"public",
"void",
"forAllCollectionDefinitions",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"for",
"(",
"Iterator",
"it",
"=",
"_curClassDef",
".",
"getCollections",
"(",
")",
";",
"it",
".",
"hasNext",
"(... | Processes the template for all collection definitions of the current class definition.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"collection",
"definitions",
"of",
"the",
"current",
"class",
"definition",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1062-L1074 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.processNested | public String processNested(Properties attributes) throws XDocletException
{
String name = OjbMemberTagsHandler.getMemberName();
XClass type = OjbMemberTagsHandler.getMemberType();
int dim = OjbMemberTagsHandler.getMemberDimension();
NestedDef nestedD... | java | public String processNested(Properties attributes) throws XDocletException
{
String name = OjbMemberTagsHandler.getMemberName();
XClass type = OjbMemberTagsHandler.getMemberType();
int dim = OjbMemberTagsHandler.getMemberDimension();
NestedDef nestedD... | [
"public",
"String",
"processNested",
"(",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"name",
"=",
"OjbMemberTagsHandler",
".",
"getMemberName",
"(",
")",
";",
"XClass",
"type",
"=",
"OjbMemberTagsHandler",
".",
"getMemberType",
"("... | Addes the current member as a nested object.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException If an error occurs
@doc.tag type="content" | [
"Addes",
"the",
"current",
"member",
"as",
"a",
"nested",
"object",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1084-L1127 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.createTorqueSchema | public String createTorqueSchema(Properties attributes) throws XDocletException
{
String dbName = (String)getDocletContext().getConfigParam(CONFIG_PARAM_DATABASENAME);
_torqueModel = new TorqueModelDef(dbName, _model);
return "";
} | java | public String createTorqueSchema(Properties attributes) throws XDocletException
{
String dbName = (String)getDocletContext().getConfigParam(CONFIG_PARAM_DATABASENAME);
_torqueModel = new TorqueModelDef(dbName, _model);
return "";
} | [
"public",
"String",
"createTorqueSchema",
"(",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"dbName",
"=",
"(",
"String",
")",
"getDocletContext",
"(",
")",
".",
"getConfigParam",
"(",
"CONFIG_PARAM_DATABASENAME",
")",
";",
"_torqueM... | Generates a torque schema for the model.
@param attributes The attributes of the tag
@return The property value
@exception XDocletException If an error occurs
@doc.tag type="content" | [
"Generates",
"a",
"torque",
"schema",
"for",
"the",
"model",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1310-L1316 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllTables | public void forAllTables(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _torqueModel.getTables(); it.hasNext(); )
{
_curTableDef = (TableDef)it.next();
generate(template);
}
_curTableDef = null;
} | java | public void forAllTables(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _torqueModel.getTables(); it.hasNext(); )
{
_curTableDef = (TableDef)it.next();
generate(template);
}
_curTableDef = null;
} | [
"public",
"void",
"forAllTables",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"for",
"(",
"Iterator",
"it",
"=",
"_torqueModel",
".",
"getTables",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
";",
"... | Processes the template for all table definitions in the torque model.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"table",
"definitions",
"in",
"the",
"torque",
"model",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1326-L1334 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllColumns | public void forAllColumns(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curTableDef.getColumns(); it.hasNext(); )
{
_curColumnDef = (ColumnDef)it.next();
generate(template);
}
_curColumnDef = null;
} | java | public void forAllColumns(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curTableDef.getColumns(); it.hasNext(); )
{
_curColumnDef = (ColumnDef)it.next();
generate(template);
}
_curColumnDef = null;
} | [
"public",
"void",
"forAllColumns",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"for",
"(",
"Iterator",
"it",
"=",
"_curTableDef",
".",
"getColumns",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
";",
... | Processes the template for all column definitions of the current table.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"column",
"definitions",
"of",
"the",
"current",
"table",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1344-L1352 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllForeignkeys | public void forAllForeignkeys(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curTableDef.getForeignkeys(); it.hasNext(); )
{
_curForeignkeyDef = (ForeignkeyDef)it.next();
generate(template);
}
_curForeignkeyDef = n... | java | public void forAllForeignkeys(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curTableDef.getForeignkeys(); it.hasNext(); )
{
_curForeignkeyDef = (ForeignkeyDef)it.next();
generate(template);
}
_curForeignkeyDef = n... | [
"public",
"void",
"forAllForeignkeys",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"for",
"(",
"Iterator",
"it",
"=",
"_curTableDef",
".",
"getForeignkeys",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
... | Processes the template for all foreignkeys of the current table.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"foreignkeys",
"of",
"the",
"current",
"table",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1362-L1370 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllForeignkeyColumnPairs | public void forAllForeignkeyColumnPairs(String template, Properties attributes) throws XDocletException
{
for (int idx = 0; idx < _curForeignkeyDef.getNumColumnPairs(); idx++)
{
_curPairLeft = _curForeignkeyDef.getLocalColumn(idx);
_curPairRight = _curForeignkeyDef.getR... | java | public void forAllForeignkeyColumnPairs(String template, Properties attributes) throws XDocletException
{
for (int idx = 0; idx < _curForeignkeyDef.getNumColumnPairs(); idx++)
{
_curPairLeft = _curForeignkeyDef.getLocalColumn(idx);
_curPairRight = _curForeignkeyDef.getR... | [
"public",
"void",
"forAllForeignkeyColumnPairs",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"for",
"(",
"int",
"idx",
"=",
"0",
";",
"idx",
"<",
"_curForeignkeyDef",
".",
"getNumColumnPairs",
"(",
")",
";"... | Processes the template for all column pairs of the current foreignkey.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"column",
"pairs",
"of",
"the",
"current",
"foreignkey",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1380-L1390 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllIndices | public void forAllIndices(String template, Properties attributes) throws XDocletException
{
boolean processUnique = TypeConversionUtil.stringToBoolean(attributes.getProperty(ATTRIBUTE_UNIQUE), false);
// first the default index
_curIndexDef = _curTableDef.getIndex(null);
if ((... | java | public void forAllIndices(String template, Properties attributes) throws XDocletException
{
boolean processUnique = TypeConversionUtil.stringToBoolean(attributes.getProperty(ATTRIBUTE_UNIQUE), false);
// first the default index
_curIndexDef = _curTableDef.getIndex(null);
if ((... | [
"public",
"void",
"forAllIndices",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"boolean",
"processUnique",
"=",
"TypeConversionUtil",
".",
"stringToBoolean",
"(",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE... | Processes the template for all indices of the current table.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block"
@doc.param name="unique" optional="true" description=... | [
"Processes",
"the",
"template",
"for",
"all",
"indices",
"of",
"the",
"current",
"table",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1402-L1421 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllIndexColumns | public void forAllIndexColumns(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curIndexDef.getColumns(); it.hasNext(); )
{
_curColumnDef = _curTableDef.getColumn((String)it.next());
generate(template);
}
_curColumnD... | java | public void forAllIndexColumns(String template, Properties attributes) throws XDocletException
{
for (Iterator it = _curIndexDef.getColumns(); it.hasNext(); )
{
_curColumnDef = _curTableDef.getColumn((String)it.next());
generate(template);
}
_curColumnD... | [
"public",
"void",
"forAllIndexColumns",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"for",
"(",
"Iterator",
"it",
"=",
"_curIndexDef",
".",
"getColumns",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
"... | Processes the template for all columns of the current table index.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block" | [
"Processes",
"the",
"template",
"for",
"all",
"columns",
"of",
"the",
"current",
"table",
"index",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1431-L1439 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.name | public String name(Properties attributes) throws XDocletException
{
return getDefForLevel(attributes.getProperty(ATTRIBUTE_LEVEL)).getName();
} | java | public String name(Properties attributes) throws XDocletException
{
return getDefForLevel(attributes.getProperty(ATTRIBUTE_LEVEL)).getName();
} | [
"public",
"String",
"name",
"(",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"return",
"getDefForLevel",
"(",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE_LEVEL",
")",
")",
".",
"getName",
"(",
")",
";",
"}"
] | Returns the name of the current object on the specified level.
@param attributes The attributes of the tag
@return The property value
@exception XDocletException If an error occurs
@doc.tag type="content"
@doc.param name="level" optional="false" de... | [
"Returns",
"the",
"name",
"of",
"the",
"current",
"object",
"on",
"the",
"specified",
"level",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1453-L1456 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.ifHasName | public void ifHasName(String template, Properties attributes) throws XDocletException
{
String name = getDefForLevel(attributes.getProperty(ATTRIBUTE_LEVEL)).getName();
if ((name != null) && (name.length() > 0))
{
generate(template);
}
} | java | public void ifHasName(String template, Properties attributes) throws XDocletException
{
String name = getDefForLevel(attributes.getProperty(ATTRIBUTE_LEVEL)).getName();
if ((name != null) && (name.length() > 0))
{
generate(template);
}
} | [
"public",
"void",
"ifHasName",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"name",
"=",
"getDefForLevel",
"(",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE_LEVEL",
")",
")",
".",
"getName",
"... | Processes the template if the current object on the specified level has a non-empty name.
@param attributes The attributes of the tag
@return The property value
@exception XDocletException If an error occurs
@doc.tag type="block"
@doc.param name="l... | [
"Processes",
"the",
"template",
"if",
"the",
"current",
"object",
"on",
"the",
"specified",
"level",
"has",
"a",
"non",
"-",
"empty",
"name",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1468-L1476 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.ifHasProperty | public void ifHasProperty(String template, Properties attributes) throws XDocletException
{
String value = getPropertyValue(attributes.getProperty(ATTRIBUTE_LEVEL), attributes.getProperty(ATTRIBUTE_NAME));
if (value != null)
{
generate(template);
}
} | java | public void ifHasProperty(String template, Properties attributes) throws XDocletException
{
String value = getPropertyValue(attributes.getProperty(ATTRIBUTE_LEVEL), attributes.getProperty(ATTRIBUTE_NAME));
if (value != null)
{
generate(template);
}
} | [
"public",
"void",
"ifHasProperty",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"value",
"=",
"getPropertyValue",
"(",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE_LEVEL",
")",
",",
"attributes",
... | Determines whether the current object on the specified level has a specific property, and if so, processes the
template
@param template The template
@param attributes The attributes of the tag
@exception XDocletException If an error occurs
@doc.tag type="block"
@doc.param ... | [
"Determines",
"whether",
"the",
"current",
"object",
"on",
"the",
"specified",
"level",
"has",
"a",
"specific",
"property",
"and",
"if",
"so",
"processes",
"the",
"template"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1490-L1498 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.propertyValue | public String propertyValue(Properties attributes) throws XDocletException
{
String value = getPropertyValue(attributes.getProperty(ATTRIBUTE_LEVEL), attributes.getProperty(ATTRIBUTE_NAME));
if (value == null)
{
value = attributes.getProperty(ATTRIBUTE_DEFAULT);
}... | java | public String propertyValue(Properties attributes) throws XDocletException
{
String value = getPropertyValue(attributes.getProperty(ATTRIBUTE_LEVEL), attributes.getProperty(ATTRIBUTE_NAME));
if (value == null)
{
value = attributes.getProperty(ATTRIBUTE_DEFAULT);
}... | [
"public",
"String",
"propertyValue",
"(",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"value",
"=",
"getPropertyValue",
"(",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE_LEVEL",
")",
",",
"attributes",
".",
"getProperty",
"(",
... | Returns the value of a property of the current object on the specified level.
@param attributes The attributes of the tag
@return The property value
@exception XDocletException If an error occurs
@doc.tag type="content"
@doc.param name="level" opti... | [
"Returns",
"the",
"value",
"of",
"a",
"property",
"of",
"the",
"current",
"object",
"on",
"the",
"specified",
"level",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1535-L1544 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.ifPropertyValueEquals | public void ifPropertyValueEquals(String template, Properties attributes) throws XDocletException
{
String value = getPropertyValue(attributes.getProperty(ATTRIBUTE_LEVEL), attributes.getProperty(ATTRIBUTE_NAME));
String expected = attributes.getProperty(ATTRIBUTE_VALUE);
if (value ... | java | public void ifPropertyValueEquals(String template, Properties attributes) throws XDocletException
{
String value = getPropertyValue(attributes.getProperty(ATTRIBUTE_LEVEL), attributes.getProperty(ATTRIBUTE_NAME));
String expected = attributes.getProperty(ATTRIBUTE_VALUE);
if (value ... | [
"public",
"void",
"ifPropertyValueEquals",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"value",
"=",
"getPropertyValue",
"(",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE_LEVEL",
")",
",",
"attri... | Processes the template if the property value of the current object on the specified level equals the given value.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException If an error occurs
@doc.tag type="block"
@doc.param ... | [
"Processes",
"the",
"template",
"if",
"the",
"property",
"value",
"of",
"the",
"current",
"object",
"on",
"the",
"specified",
"level",
"equals",
"the",
"given",
"value",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1560-L1573 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.forAllValuePairs | public void forAllValuePairs(String template, Properties attributes) throws XDocletException
{
String name = attributes.getProperty(ATTRIBUTE_NAME, "attributes");
String defaultValue = attributes.getProperty(ATTRIBUTE_DEFAULT_RIGHT, "");
String attributePairs = getPropertyVal... | java | public void forAllValuePairs(String template, Properties attributes) throws XDocletException
{
String name = attributes.getProperty(ATTRIBUTE_NAME, "attributes");
String defaultValue = attributes.getProperty(ATTRIBUTE_DEFAULT_RIGHT, "");
String attributePairs = getPropertyVal... | [
"public",
"void",
"forAllValuePairs",
"(",
"String",
"template",
",",
"Properties",
"attributes",
")",
"throws",
"XDocletException",
"{",
"String",
"name",
"=",
"attributes",
".",
"getProperty",
"(",
"ATTRIBUTE_NAME",
",",
"\"attributes\"",
")",
";",
"String",
"de... | Processes the template for the comma-separated value pairs in an attribute of the current object on the specified level.
@param template The template
@param attributes The attributes of the tag
@exception XDocletException if an error occurs
@doc.tag type="block"
@doc.param ... | [
"Processes",
"the",
"template",
"for",
"the",
"comma",
"-",
"separated",
"value",
"pairs",
"in",
"an",
"attribute",
"of",
"the",
"current",
"object",
"on",
"the",
"specified",
"level",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1616-L1651 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.ensureClassDef | private ClassDescriptorDef ensureClassDef(XClass original)
{
String name = original.getQualifiedName();
ClassDescriptorDef classDef = _model.getClass(name);
if (classDef == null)
{
classDef = new ClassDescriptorDef(original);
_model.ad... | java | private ClassDescriptorDef ensureClassDef(XClass original)
{
String name = original.getQualifiedName();
ClassDescriptorDef classDef = _model.getClass(name);
if (classDef == null)
{
classDef = new ClassDescriptorDef(original);
_model.ad... | [
"private",
"ClassDescriptorDef",
"ensureClassDef",
"(",
"XClass",
"original",
")",
"{",
"String",
"name",
"=",
"original",
".",
"getQualifiedName",
"(",
")",
";",
"ClassDescriptorDef",
"classDef",
"=",
"_model",
".",
"getClass",
"(",
"name",
")",
";",
"if",
"(... | Makes sure that there is a class definition for the given qualified name, and returns it.
@param original The XDoclet class object
@return The class definition | [
"Makes",
"sure",
"that",
"there",
"is",
"a",
"class",
"definition",
"for",
"the",
"given",
"qualified",
"name",
"and",
"returns",
"it",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1691-L1702 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.addDirectSubTypes | private void addDirectSubTypes(XClass type, ArrayList subTypes)
{
if (type.isInterface())
{
if (type.getExtendingInterfaces() != null)
{
subTypes.addAll(type.getExtendingInterfaces());
}
// we have to traverse the implementing c... | java | private void addDirectSubTypes(XClass type, ArrayList subTypes)
{
if (type.isInterface())
{
if (type.getExtendingInterfaces() != null)
{
subTypes.addAll(type.getExtendingInterfaces());
}
// we have to traverse the implementing c... | [
"private",
"void",
"addDirectSubTypes",
"(",
"XClass",
"type",
",",
"ArrayList",
"subTypes",
")",
"{",
"if",
"(",
"type",
".",
"isInterface",
"(",
")",
")",
"{",
"if",
"(",
"type",
".",
"getExtendingInterfaces",
"(",
")",
"!=",
"null",
")",
"{",
"subType... | Adds all direct subtypes to the given list.
@param type The type for which to determine the direct subtypes
@param subTypes The list to receive the subtypes | [
"Adds",
"all",
"direct",
"subtypes",
"to",
"the",
"given",
"list",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1710-L1750 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.searchForPersistentSubType | private String searchForPersistentSubType(XClass type)
{
ArrayList queue = new ArrayList();
XClass subType;
queue.add(type);
while (!queue.isEmpty())
{
subType = (XClass)queue.get(0);
queue.remove(0);
if (_model.hasClass(subTy... | java | private String searchForPersistentSubType(XClass type)
{
ArrayList queue = new ArrayList();
XClass subType;
queue.add(type);
while (!queue.isEmpty())
{
subType = (XClass)queue.get(0);
queue.remove(0);
if (_model.hasClass(subTy... | [
"private",
"String",
"searchForPersistentSubType",
"(",
"XClass",
"type",
")",
"{",
"ArrayList",
"queue",
"=",
"new",
"ArrayList",
"(",
")",
";",
"XClass",
"subType",
";",
"queue",
".",
"add",
"(",
"type",
")",
";",
"while",
"(",
"!",
"queue",
".",
"isEm... | Searches the type and its sub types for the nearest ojb-persistent type and returns its name.
@param type The type to search
@return The qualified name of the found type or <code>null</code> if no type has been found | [
"Searches",
"the",
"type",
"and",
"its",
"sub",
"types",
"for",
"the",
"nearest",
"ojb",
"-",
"persistent",
"type",
"and",
"returns",
"its",
"name",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1801-L1818 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.getDefForLevel | private DefBase getDefForLevel(String level)
{
if (LEVEL_CLASS.equals(level))
{
return _curClassDef;
}
else if (LEVEL_FIELD.equals(level))
{
return _curFieldDef;
}
else if (LEVEL_REFERENCE.equals(level))
{
... | java | private DefBase getDefForLevel(String level)
{
if (LEVEL_CLASS.equals(level))
{
return _curClassDef;
}
else if (LEVEL_FIELD.equals(level))
{
return _curFieldDef;
}
else if (LEVEL_REFERENCE.equals(level))
{
... | [
"private",
"DefBase",
"getDefForLevel",
"(",
"String",
"level",
")",
"{",
"if",
"(",
"LEVEL_CLASS",
".",
"equals",
"(",
"level",
")",
")",
"{",
"return",
"_curClassDef",
";",
"}",
"else",
"if",
"(",
"LEVEL_FIELD",
".",
"equals",
"(",
"level",
")",
")",
... | Returns the current definition on the indicated level.
@param level The level
@return The definition | [
"Returns",
"the",
"current",
"definition",
"on",
"the",
"indicated",
"level",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1827-L1881 | train |
kuali/ojb-1.0.4 | src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java | OjbTagsHandler.getPropertyValue | private String getPropertyValue(String level, String name)
{
return getDefForLevel(level).getProperty(name);
} | java | private String getPropertyValue(String level, String name)
{
return getDefForLevel(level).getProperty(name);
} | [
"private",
"String",
"getPropertyValue",
"(",
"String",
"level",
",",
"String",
"name",
")",
"{",
"return",
"getDefForLevel",
"(",
"level",
")",
".",
"getProperty",
"(",
"name",
")",
";",
"}"
] | Returns the value of the indicated property of the current object on the specified level.
@param level The level
@param name The name of the property
@return The property value | [
"Returns",
"the",
"value",
"of",
"the",
"indicated",
"property",
"of",
"the",
"current",
"object",
"on",
"the",
"specified",
"level",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/xdoclet/java/src/xdoclet/modules/ojb/OjbTagsHandler.java#L1901-L1904 | train |
foundation-runtime/logging | logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/LogFileCompressionStrategy.java | LogFileCompressionStrategy.compress | final void compress(final File backupFile,
final AppenderRollingProperties properties) {
if (this.isCompressed(backupFile)) {
LogLog.debug("Backup log file " + backupFile.getName()
+ " is already compressed");
return; // try not to do unnecessary work
}
final long lastModified = ... | java | final void compress(final File backupFile,
final AppenderRollingProperties properties) {
if (this.isCompressed(backupFile)) {
LogLog.debug("Backup log file " + backupFile.getName()
+ " is already compressed");
return; // try not to do unnecessary work
}
final long lastModified = ... | [
"final",
"void",
"compress",
"(",
"final",
"File",
"backupFile",
",",
"final",
"AppenderRollingProperties",
"properties",
")",
"{",
"if",
"(",
"this",
".",
"isCompressed",
"(",
"backupFile",
")",
")",
"{",
"LogLog",
".",
"debug",
"(",
"\"Backup log file \"",
"... | Template method responsible for file compression checks, file creation, and
delegation to specific strategy implementations.
@param backupFile
The file to be compressed.
@param properties
The appender's configuration. | [
"Template",
"method",
"responsible",
"for",
"file",
"compression",
"checks",
"file",
"creation",
"and",
"delegation",
"to",
"specific",
"strategy",
"implementations",
"."
] | cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6 | https://github.com/foundation-runtime/logging/blob/cd0a07b3c5b458ecf90ab92a1e0c72a067f5cbd6/logging-log4j/src/main/java/com/cisco/oss/foundation/logging/appender/LogFileCompressionStrategy.java#L121-L149 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/PersistenceBrokerFactory.java | PersistenceBrokerFactory.createPersistenceBroker | public static PersistenceBroker createPersistenceBroker(String jcdAlias,
String user,
String password) throws PBFactoryException
{
return PersistenceBrokerFactoryFactory.instance().
... | java | public static PersistenceBroker createPersistenceBroker(String jcdAlias,
String user,
String password) throws PBFactoryException
{
return PersistenceBrokerFactoryFactory.instance().
... | [
"public",
"static",
"PersistenceBroker",
"createPersistenceBroker",
"(",
"String",
"jcdAlias",
",",
"String",
"user",
",",
"String",
"password",
")",
"throws",
"PBFactoryException",
"{",
"return",
"PersistenceBrokerFactoryFactory",
".",
"instance",
"(",
")",
".",
"cre... | Creates a new broker instance.
@param jcdAlias The jdbc connection descriptor name as defined in the repository
@param user The user name to be used for connecting to the database
@param password The password to be used for connecting to the database
@return The persistence broker
@see org.apache.ojb.broker.core.P... | [
"Creates",
"a",
"new",
"broker",
"instance",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/PersistenceBrokerFactory.java#L87-L93 | train |
jembi/openhim-mediator-engine-java | src/main/java/org/openhim/mediator/engine/MediatorConfig.java | MediatorConfig.setRegistrationConfig | public void setRegistrationConfig(RegistrationConfig registrationConfig) {
this.registrationConfig = registrationConfig;
if (registrationConfig.getDefaultConfig()!=null) {
for (String key : registrationConfig.getDefaultConfig().keySet()) {
dynamicConfig.put(key, registration... | java | public void setRegistrationConfig(RegistrationConfig registrationConfig) {
this.registrationConfig = registrationConfig;
if (registrationConfig.getDefaultConfig()!=null) {
for (String key : registrationConfig.getDefaultConfig().keySet()) {
dynamicConfig.put(key, registration... | [
"public",
"void",
"setRegistrationConfig",
"(",
"RegistrationConfig",
"registrationConfig",
")",
"{",
"this",
".",
"registrationConfig",
"=",
"registrationConfig",
";",
"if",
"(",
"registrationConfig",
".",
"getDefaultConfig",
"(",
")",
"!=",
"null",
")",
"{",
"for"... | The mediator registration config. If it contains default config and definitions,
then the dynamic config will be initialized with those values.
@see org.openhim.mediator.engine.RegistrationConfig
@see #getDynamicConfig() | [
"The",
"mediator",
"registration",
"config",
".",
"If",
"it",
"contains",
"default",
"config",
"and",
"definitions",
"then",
"the",
"dynamic",
"config",
"will",
"be",
"initialized",
"with",
"those",
"values",
"."
] | 02adc0da4302cbde26cc9a5c1ce91ec6277e4f68 | https://github.com/jembi/openhim-mediator-engine-java/blob/02adc0da4302cbde26cc9a5c1ce91ec6277e4f68/src/main/java/org/openhim/mediator/engine/MediatorConfig.java#L345-L353 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java | RepositoryXmlHandler.characters | public void characters(char ch[], int start, int length)
{
if (m_CurrentString == null)
m_CurrentString = new String(ch, start, length);
else
m_CurrentString += new String(ch, start, length);
} | java | public void characters(char ch[], int start, int length)
{
if (m_CurrentString == null)
m_CurrentString = new String(ch, start, length);
else
m_CurrentString += new String(ch, start, length);
} | [
"public",
"void",
"characters",
"(",
"char",
"ch",
"[",
"]",
",",
"int",
"start",
",",
"int",
"length",
")",
"{",
"if",
"(",
"m_CurrentString",
"==",
"null",
")",
"m_CurrentString",
"=",
"new",
"String",
"(",
"ch",
",",
"start",
",",
"length",
")",
"... | characters callback. | [
"characters",
"callback",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java#L1146-L1152 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/RsIterator.java | RsIterator.hasNext | public synchronized boolean hasNext()
{
try
{
if (!isHasCalledCheck())
{
setHasCalledCheck(true);
setHasNext(getRsAndStmt().m_rs.next());
if (!getHasNext())
{
autoReleaseDbResources(... | java | public synchronized boolean hasNext()
{
try
{
if (!isHasCalledCheck())
{
setHasCalledCheck(true);
setHasNext(getRsAndStmt().m_rs.next());
if (!getHasNext())
{
autoReleaseDbResources(... | [
"public",
"synchronized",
"boolean",
"hasNext",
"(",
")",
"{",
"try",
"{",
"if",
"(",
"!",
"isHasCalledCheck",
"(",
")",
")",
"{",
"setHasCalledCheck",
"(",
"true",
")",
";",
"setHasNext",
"(",
"getRsAndStmt",
"(",
")",
".",
"m_rs",
".",
"next",
"(",
"... | returns true if there are still more rows in the underlying ResultSet.
Returns false if ResultSet is exhausted. | [
"returns",
"true",
"if",
"there",
"are",
"still",
"more",
"rows",
"in",
"the",
"underlying",
"ResultSet",
".",
"Returns",
"false",
"if",
"ResultSet",
"is",
"exhausted",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java#L226-L261 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/RsIterator.java | RsIterator.next | public synchronized Object next() throws NoSuchElementException
{
try
{
if (!isHasCalledCheck())
{
hasNext();
}
setHasCalledCheck(false);
if (getHasNext())
{
Object obj = getObjectFromR... | java | public synchronized Object next() throws NoSuchElementException
{
try
{
if (!isHasCalledCheck())
{
hasNext();
}
setHasCalledCheck(false);
if (getHasNext())
{
Object obj = getObjectFromR... | [
"public",
"synchronized",
"Object",
"next",
"(",
")",
"throws",
"NoSuchElementException",
"{",
"try",
"{",
"if",
"(",
"!",
"isHasCalledCheck",
"(",
")",
")",
"{",
"hasNext",
"(",
")",
";",
"}",
"setHasCalledCheck",
"(",
"false",
")",
";",
"if",
"(",
"get... | moves to the next row of the underlying ResultSet and returns the
corresponding Object materialized from this row. | [
"moves",
"to",
"the",
"next",
"row",
"of",
"the",
"underlying",
"ResultSet",
"and",
"returns",
"the",
"corresponding",
"Object",
"materialized",
"from",
"this",
"row",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java#L267-L307 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/RsIterator.java | RsIterator.getOwnerObjects | private Collection getOwnerObjects()
{
Collection owners = new Vector();
while (hasNext())
{
owners.add(next());
}
return owners;
} | java | private Collection getOwnerObjects()
{
Collection owners = new Vector();
while (hasNext())
{
owners.add(next());
}
return owners;
} | [
"private",
"Collection",
"getOwnerObjects",
"(",
")",
"{",
"Collection",
"owners",
"=",
"new",
"Vector",
"(",
")",
";",
"while",
"(",
"hasNext",
"(",
")",
")",
"{",
"owners",
".",
"add",
"(",
"next",
"(",
")",
")",
";",
"}",
"return",
"owners",
";",
... | read all objects of this iterator. objects will be placed in cache | [
"read",
"all",
"objects",
"of",
"this",
"iterator",
".",
"objects",
"will",
"be",
"placed",
"in",
"cache"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java#L320-L328 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/RsIterator.java | RsIterator.prefetchRelationships | private void prefetchRelationships(Query query)
{
List prefetchedRel;
Collection owners;
String relName;
RelationshipPrefetcher[] prefetchers;
if (query == null || query.getPrefetchedRelationships() == null || query.getPrefetchedRelationships().isEmpty())
{
... | java | private void prefetchRelationships(Query query)
{
List prefetchedRel;
Collection owners;
String relName;
RelationshipPrefetcher[] prefetchers;
if (query == null || query.getPrefetchedRelationships() == null || query.getPrefetchedRelationships().isEmpty())
{
... | [
"private",
"void",
"prefetchRelationships",
"(",
"Query",
"query",
")",
"{",
"List",
"prefetchedRel",
";",
"Collection",
"owners",
";",
"String",
"relName",
";",
"RelationshipPrefetcher",
"[",
"]",
"prefetchers",
";",
"if",
"(",
"query",
"==",
"null",
"||",
"q... | prefetch defined relationships requires JDBC level 2.0, does not work
with Arrays | [
"prefetch",
"defined",
"relationships",
"requires",
"JDBC",
"level",
"2",
".",
"0",
"does",
"not",
"work",
"with",
"Arrays"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java#L334-L393 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/RsIterator.java | RsIterator.getProxyFromResultSet | protected Object getProxyFromResultSet() throws PersistenceBrokerException
{
// 1. get Identity of current row:
Identity oid = getIdentityFromResultSet();
// 2. return a Proxy instance:
return getBroker().createProxy(getItemProxyClass(), oid);
} | java | protected Object getProxyFromResultSet() throws PersistenceBrokerException
{
// 1. get Identity of current row:
Identity oid = getIdentityFromResultSet();
// 2. return a Proxy instance:
return getBroker().createProxy(getItemProxyClass(), oid);
} | [
"protected",
"Object",
"getProxyFromResultSet",
"(",
")",
"throws",
"PersistenceBrokerException",
"{",
"// 1. get Identity of current row:\r",
"Identity",
"oid",
"=",
"getIdentityFromResultSet",
"(",
")",
";",
"// 2. return a Proxy instance:\r",
"return",
"getBroker",
"(",
")... | Reads primary key information from current RS row and generates a
corresponding Identity, and returns a proxy from the Identity.
@throws PersistenceBrokerException
if there was an error creating the proxy class | [
"Reads",
"primary",
"key",
"information",
"from",
"current",
"RS",
"row",
"and",
"generates",
"a"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java#L526-L533 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/RsIterator.java | RsIterator.countedSize | protected int countedSize() throws PersistenceBrokerException
{
Query countQuery = getBroker().serviceBrokerHelper().getCountQuery(getQueryObject().getQuery());
ResultSetAndStatement rsStmt;
ClassDescriptor cld = getQueryObject().getClassDescriptor();
int count = 0;
/... | java | protected int countedSize() throws PersistenceBrokerException
{
Query countQuery = getBroker().serviceBrokerHelper().getCountQuery(getQueryObject().getQuery());
ResultSetAndStatement rsStmt;
ClassDescriptor cld = getQueryObject().getClassDescriptor();
int count = 0;
/... | [
"protected",
"int",
"countedSize",
"(",
")",
"throws",
"PersistenceBrokerException",
"{",
"Query",
"countQuery",
"=",
"getBroker",
"(",
")",
".",
"serviceBrokerHelper",
"(",
")",
".",
"getCountQuery",
"(",
"getQueryObject",
"(",
")",
".",
"getQuery",
"(",
")",
... | Answer the counted size
@return int | [
"Answer",
"the",
"counted",
"size"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java#L556-L592 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/RsIterator.java | RsIterator.absolute | public boolean absolute(int row) throws PersistenceBrokerException
{
boolean retval;
if (supportsAdvancedJDBCCursorControl())
{
retval = absoluteAdvanced(row);
}
else
{
retval = absoluteBasic(row);
}
return retval;
... | java | public boolean absolute(int row) throws PersistenceBrokerException
{
boolean retval;
if (supportsAdvancedJDBCCursorControl())
{
retval = absoluteAdvanced(row);
}
else
{
retval = absoluteBasic(row);
}
return retval;
... | [
"public",
"boolean",
"absolute",
"(",
"int",
"row",
")",
"throws",
"PersistenceBrokerException",
"{",
"boolean",
"retval",
";",
"if",
"(",
"supportsAdvancedJDBCCursorControl",
"(",
")",
")",
"{",
"retval",
"=",
"absoluteAdvanced",
"(",
"row",
")",
";",
"}",
"e... | Moves the cursor to the given row number in the iterator. If the row
number is positive, the cursor moves to the given row number with
respect to the beginning of the iterator. The first row is row 1, the
second is row 2, and so on.
@param row the row to move to in this iterator, by absolute number | [
"Moves",
"the",
"cursor",
"to",
"the",
"given",
"row",
"number",
"in",
"the",
"iterator",
".",
"If",
"the",
"row",
"number",
"is",
"positive",
"the",
"cursor",
"moves",
"to",
"the",
"given",
"row",
"number",
"with",
"respect",
"to",
"the",
"beginning",
"... | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java#L680-L692 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/RsIterator.java | RsIterator.absoluteBasic | private boolean absoluteBasic(int row)
{
boolean retval = false;
if (row > m_current_row)
{
try
{
while (m_current_row < row && getRsAndStmt().m_rs.next())
{
m_current_row++;
}
... | java | private boolean absoluteBasic(int row)
{
boolean retval = false;
if (row > m_current_row)
{
try
{
while (m_current_row < row && getRsAndStmt().m_rs.next())
{
m_current_row++;
}
... | [
"private",
"boolean",
"absoluteBasic",
"(",
"int",
"row",
")",
"{",
"boolean",
"retval",
"=",
"false",
";",
"if",
"(",
"row",
">",
"m_current_row",
")",
"{",
"try",
"{",
"while",
"(",
"m_current_row",
"<",
"row",
"&&",
"getRsAndStmt",
"(",
")",
".",
"m... | absolute for basicJDBCSupport
@param row | [
"absolute",
"for",
"basicJDBCSupport"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java#L698-L735 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/accesslayer/RsIterator.java | RsIterator.absoluteAdvanced | private boolean absoluteAdvanced(int row)
{
boolean retval = false;
try
{
if (getRsAndStmt().m_rs != null)
{
if (row == 0)
{
getRsAndStmt().m_rs.beforeFirst();
}
e... | java | private boolean absoluteAdvanced(int row)
{
boolean retval = false;
try
{
if (getRsAndStmt().m_rs != null)
{
if (row == 0)
{
getRsAndStmt().m_rs.beforeFirst();
}
e... | [
"private",
"boolean",
"absoluteAdvanced",
"(",
"int",
"row",
")",
"{",
"boolean",
"retval",
"=",
"false",
";",
"try",
"{",
"if",
"(",
"getRsAndStmt",
"(",
")",
".",
"m_rs",
"!=",
"null",
")",
"{",
"if",
"(",
"row",
"==",
"0",
")",
"{",
"getRsAndStmt"... | absolute for advancedJDBCSupport
@param row | [
"absolute",
"for",
"advancedJDBCSupport"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java#L741-L766 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/util/logging/CommonsLoggerImpl.java | CommonsLoggerImpl.safeToString | private String safeToString(Object obj)
{
String toString = null;
if (obj != null)
{
try
{
toString = obj.toString();
}
catch (Throwable ex)
{
toString = "BAD toString() impl for " + obj.getClass().getName();
}
}
return toString;
} | java | private String safeToString(Object obj)
{
String toString = null;
if (obj != null)
{
try
{
toString = obj.toString();
}
catch (Throwable ex)
{
toString = "BAD toString() impl for " + obj.getClass().getName();
}
}
return toString;
} | [
"private",
"String",
"safeToString",
"(",
"Object",
"obj",
")",
"{",
"String",
"toString",
"=",
"null",
";",
"if",
"(",
"obj",
"!=",
"null",
")",
"{",
"try",
"{",
"toString",
"=",
"obj",
".",
"toString",
"(",
")",
";",
"}",
"catch",
"(",
"Throwable",... | provides a safe toString | [
"provides",
"a",
"safe",
"toString"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/util/logging/CommonsLoggerImpl.java#L299-L314 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java | ClassDescriptor.setRowReader | public void setRowReader(String newReaderClassName)
{
try
{
m_rowReader =
(RowReader) ClassHelper.newInstance(
newReaderClassName,
ClassDescriptor.class,
this);
}
catch (Exception e)
... | java | public void setRowReader(String newReaderClassName)
{
try
{
m_rowReader =
(RowReader) ClassHelper.newInstance(
newReaderClassName,
ClassDescriptor.class,
this);
}
catch (Exception e)
... | [
"public",
"void",
"setRowReader",
"(",
"String",
"newReaderClassName",
")",
"{",
"try",
"{",
"m_rowReader",
"=",
"(",
"RowReader",
")",
"ClassHelper",
".",
"newInstance",
"(",
"newReaderClassName",
",",
"ClassDescriptor",
".",
"class",
",",
"this",
")",
";",
"... | sets the row reader class name for thie class descriptor | [
"sets",
"the",
"row",
"reader",
"class",
"name",
"for",
"thie",
"class",
"descriptor"
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java#L356-L370 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java | ClassDescriptor.setClassOfObject | public void setClassOfObject(Class c)
{
m_Class = c;
isAbstract = Modifier.isAbstract(m_Class.getModifiers());
// TODO : Shouldn't the HashMap in DescriptorRepository be updated as well?
} | java | public void setClassOfObject(Class c)
{
m_Class = c;
isAbstract = Modifier.isAbstract(m_Class.getModifiers());
// TODO : Shouldn't the HashMap in DescriptorRepository be updated as well?
} | [
"public",
"void",
"setClassOfObject",
"(",
"Class",
"c",
")",
"{",
"m_Class",
"=",
"c",
";",
"isAbstract",
"=",
"Modifier",
".",
"isAbstract",
"(",
"m_Class",
".",
"getModifiers",
"(",
")",
")",
";",
"// TODO : Shouldn't the HashMap in DescriptorRepository be update... | sets the class object described by this descriptor.
@param c the class to describe | [
"sets",
"the",
"class",
"object",
"described",
"by",
"this",
"descriptor",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java#L399-L404 | train |
kuali/ojb-1.0.4 | src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java | ClassDescriptor.addFieldDescriptor | public void addFieldDescriptor(FieldDescriptor fld)
{
fld.setClassDescriptor(this); // BRJ
if (m_FieldDescriptions == null)
{
m_FieldDescriptions = new FieldDescriptor[1];
m_FieldDescriptions[0] = fld;
}
else
{
int size = ... | java | public void addFieldDescriptor(FieldDescriptor fld)
{
fld.setClassDescriptor(this); // BRJ
if (m_FieldDescriptions == null)
{
m_FieldDescriptions = new FieldDescriptor[1];
m_FieldDescriptions[0] = fld;
}
else
{
int size = ... | [
"public",
"void",
"addFieldDescriptor",
"(",
"FieldDescriptor",
"fld",
")",
"{",
"fld",
".",
"setClassDescriptor",
"(",
"this",
")",
";",
"// BRJ\r",
"if",
"(",
"m_FieldDescriptions",
"==",
"null",
")",
"{",
"m_FieldDescriptions",
"=",
"new",
"FieldDescriptor",
... | adds a FIELDDESCRIPTOR to this ClassDescriptor.
@param fld | [
"adds",
"a",
"FIELDDESCRIPTOR",
"to",
"this",
"ClassDescriptor",
"."
] | 9a544372f67ce965f662cdc71609dd03683c8f04 | https://github.com/kuali/ojb-1.0.4/blob/9a544372f67ce965f662cdc71609dd03683c8f04/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java#L410-L435 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.