id
int32
0
165k
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
68,600
OpenLiberty/open-liberty
dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/PartyRole.java
PartyRole.setPrimaryRolePlayer
public void setPrimaryRolePlayer(com.ibm.wsspi.security.wim.model.RolePlayer value) { this.primaryRolePlayer = value; }
java
public void setPrimaryRolePlayer(com.ibm.wsspi.security.wim.model.RolePlayer value) { this.primaryRolePlayer = value; }
[ "public", "void", "setPrimaryRolePlayer", "(", "com", ".", "ibm", ".", "wsspi", ".", "security", ".", "wim", ".", "model", ".", "RolePlayer", "value", ")", "{", "this", ".", "primaryRolePlayer", "=", "value", ";", "}" ]
Sets the value of the primaryRolePlayer property. @param value allowed object is {@link com.ibm.wsspi.security.wim.model.RolePlayer }
[ "Sets", "the", "value", "of", "the", "primaryRolePlayer", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/PartyRole.java#L104-L106
68,601
OpenLiberty/open-liberty
dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/PartyRole.java
PartyRole.getRelatedRolePlayer
public List<com.ibm.wsspi.security.wim.model.RolePlayer> getRelatedRolePlayer() { if (relatedRolePlayer == null) { relatedRolePlayer = new ArrayList<com.ibm.wsspi.security.wim.model.RolePlayer>(); } return this.relatedRolePlayer; }
java
public List<com.ibm.wsspi.security.wim.model.RolePlayer> getRelatedRolePlayer() { if (relatedRolePlayer == null) { relatedRolePlayer = new ArrayList<com.ibm.wsspi.security.wim.model.RolePlayer>(); } return this.relatedRolePlayer; }
[ "public", "List", "<", "com", ".", "ibm", ".", "wsspi", ".", "security", ".", "wim", ".", "model", ".", "RolePlayer", ">", "getRelatedRolePlayer", "(", ")", "{", "if", "(", "relatedRolePlayer", "==", "null", ")", "{", "relatedRolePlayer", "=", "new", "Ar...
Gets the value of the relatedRolePlayer property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the relatedRolePlayer property. <p> F...
[ "Gets", "the", "value", "of", "the", "relatedRolePlayer", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/PartyRole.java#L134-L139
68,602
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel.osgi/src/com/ibm/ws/logging/internal/osgi/hpel/AbstractHPELConfigService.java
AbstractHPELConfigService.stop
void stop() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Stopping the HPEL managed service"); } // disconnect from the config admin this.configRef.unregister(); }
java
void stop() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Stopping the HPEL managed service"); } // disconnect from the config admin this.configRef.unregister(); }
[ "void", "stop", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".", "event", "(", "tc", ",", "\"Stopping the HPEL managed service\"", ")", ";", "}", "// disconn...
Stop this service and free any allocated resources when the owning bundle is being stopped.
[ "Stop", "this", "service", "and", "free", "any", "allocated", "resources", "when", "the", "owning", "bundle", "is", "being", "stopped", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel.osgi/src/com/ibm/ws/logging/internal/osgi/hpel/AbstractHPELConfigService.java#L82-L88
68,603
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/parser/JSParser.java
JSParser.reconcile
private static void reconcile(JSType top, List defs, Map refs) { List unres = (List) refs.get(top.getFeatureName()); if (unres != null) for (Iterator iter = unres.iterator(); iter.hasNext(); ) ((JSDynamic) iter.next()).setExpectedType(top); for (Iterator iter = defs.iterator(); iter.hasNext();...
java
private static void reconcile(JSType top, List defs, Map refs) { List unres = (List) refs.get(top.getFeatureName()); if (unres != null) for (Iterator iter = unres.iterator(); iter.hasNext(); ) ((JSDynamic) iter.next()).setExpectedType(top); for (Iterator iter = defs.iterator(); iter.hasNext();...
[ "private", "static", "void", "reconcile", "(", "JSType", "top", ",", "List", "defs", ",", "Map", "refs", ")", "{", "List", "unres", "=", "(", "List", ")", "refs", ".", "get", "(", "top", ".", "getFeatureName", "(", ")", ")", ";", "if", "(", "unres"...
Subroutine to resolve dangling "expected" references
[ "Subroutine", "to", "resolve", "dangling", "expected", "references" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/parser/JSParser.java#L94-L106
68,604
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/parser/JSParser.java
JSParser.addRef
private static void addRef(Map refs, String key, JSDynamic unres) { List thisKey = (List) refs.get(key); if (thisKey == null) { thisKey = new ArrayList(); refs.put(key, thisKey); } thisKey.add(unres); }
java
private static void addRef(Map refs, String key, JSDynamic unres) { List thisKey = (List) refs.get(key); if (thisKey == null) { thisKey = new ArrayList(); refs.put(key, thisKey); } thisKey.add(unres); }
[ "private", "static", "void", "addRef", "(", "Map", "refs", ",", "String", "key", ",", "JSDynamic", "unres", ")", "{", "List", "thisKey", "=", "(", "List", ")", "refs", ".", "get", "(", "key", ")", ";", "if", "(", "thisKey", "==", "null", ")", "{", ...
Subroutine to enter a dangling "expected" reference in the refs map
[ "Subroutine", "to", "enter", "a", "dangling", "expected", "reference", "in", "the", "refs", "map" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/parser/JSParser.java#L111-L118
68,605
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/strategies/writeable/AddThenHideOldStrategy.java
AddThenHideOldStrategy.getNewerResource
private RepositoryResource getNewerResource(RepositoryResource res1, RepositoryResource res2) throws RepositoryResourceValidationException { // if one of the resources is beta and the other not, return the non-beta one RepositoryResource singleNonBetaResource = returnNonBetaResourceOrNull(res1, res2); ...
java
private RepositoryResource getNewerResource(RepositoryResource res1, RepositoryResource res2) throws RepositoryResourceValidationException { // if one of the resources is beta and the other not, return the non-beta one RepositoryResource singleNonBetaResource = returnNonBetaResourceOrNull(res1, res2); ...
[ "private", "RepositoryResource", "getNewerResource", "(", "RepositoryResource", "res1", ",", "RepositoryResource", "res2", ")", "throws", "RepositoryResourceValidationException", "{", "// if one of the resources is beta and the other not, return the non-beta one", "RepositoryResource", ...
Return the higher version of the resource or the first one if this cannot be determined. For Products this is based off the ProductVersion and for everything else it is based of the appliesTo information. For resources that have the same appliesTo version the version field is used to determine which to return. If the...
[ "Return", "the", "higher", "version", "of", "the", "resource", "or", "the", "first", "one", "if", "this", "cannot", "be", "determined", ".", "For", "Products", "this", "is", "based", "off", "the", "ProductVersion", "and", "for", "everything", "else", "it", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/strategies/writeable/AddThenHideOldStrategy.java#L243-L283
68,606
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/strategies/writeable/AddThenHideOldStrategy.java
AddThenHideOldStrategy.compareNonProductResourceAppliesTo
private RepositoryResource compareNonProductResourceAppliesTo(RepositoryResource res1, RepositoryResource res2) { // all types other than INSTALLS or TOOLS use appliesTo to determine which is the higher level String res1AppliesTo = ((ApplicableToProduct) res1).getAppliesTo(); String res2Applies...
java
private RepositoryResource compareNonProductResourceAppliesTo(RepositoryResource res1, RepositoryResource res2) { // all types other than INSTALLS or TOOLS use appliesTo to determine which is the higher level String res1AppliesTo = ((ApplicableToProduct) res1).getAppliesTo(); String res2Applies...
[ "private", "RepositoryResource", "compareNonProductResourceAppliesTo", "(", "RepositoryResource", "res1", ",", "RepositoryResource", "res2", ")", "{", "// all types other than INSTALLS or TOOLS use appliesTo to determine which is the higher level", "String", "res1AppliesTo", "=", "(", ...
This routine handles non product resources @param res1 - a non-product resource @param res2 - a non-product resource @return the newer resource
[ "This", "routine", "handles", "non", "product", "resources" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/strategies/writeable/AddThenHideOldStrategy.java#L327-L366
68,607
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/strategies/writeable/AddThenHideOldStrategy.java
AddThenHideOldStrategy.getNonProductResourceWithHigherVersion
private RepositoryResource getNonProductResourceWithHigherVersion(RepositoryResource res1, RepositoryResource res2) { if (res1.getVersion() == null || res2.getVersion() == null) { return res1; // don't have two versions so can't compare } // have two String versions .. convert them...
java
private RepositoryResource getNonProductResourceWithHigherVersion(RepositoryResource res1, RepositoryResource res2) { if (res1.getVersion() == null || res2.getVersion() == null) { return res1; // don't have two versions so can't compare } // have two String versions .. convert them...
[ "private", "RepositoryResource", "getNonProductResourceWithHigherVersion", "(", "RepositoryResource", "res1", ",", "RepositoryResource", "res2", ")", "{", "if", "(", "res1", ".", "getVersion", "(", ")", "==", "null", "||", "res2", ".", "getVersion", "(", ")", "=="...
Return the resource with the highest version for when the appliesTo versions are equal @param res1 resource to compare @param res2 resource to compare @return RepositoryResource with the higher version field
[ "Return", "the", "resource", "with", "the", "highest", "version", "for", "when", "the", "appliesTo", "versions", "are", "equal" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/strategies/writeable/AddThenHideOldStrategy.java#L375-L398
68,608
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/strategies/writeable/AddThenHideOldStrategy.java
AddThenHideOldStrategy.getMinAndMaxAppliesToVersionFromAppliesTo
private MinAndMaxVersion getMinAndMaxAppliesToVersionFromAppliesTo(String appliesTo) { List<AppliesToFilterInfo> res1Filters = AppliesToProcessor.parseAppliesToHeader(appliesTo); Version4Digit highestVersion = null; Version4Digit lowestVersion = null; for (AppliesToFilterInfo f : res1Fi...
java
private MinAndMaxVersion getMinAndMaxAppliesToVersionFromAppliesTo(String appliesTo) { List<AppliesToFilterInfo> res1Filters = AppliesToProcessor.parseAppliesToHeader(appliesTo); Version4Digit highestVersion = null; Version4Digit lowestVersion = null; for (AppliesToFilterInfo f : res1Fi...
[ "private", "MinAndMaxVersion", "getMinAndMaxAppliesToVersionFromAppliesTo", "(", "String", "appliesTo", ")", "{", "List", "<", "AppliesToFilterInfo", ">", "res1Filters", "=", "AppliesToProcessor", ".", "parseAppliesToHeader", "(", "appliesTo", ")", ";", "Version4Digit", "...
Parse an appliesTo to get the lowest and highest version that this asset applies to and return an object describing this. @param apliesTo the appliesTo String @return MinAndMaxVersion object describing the range of levels supported
[ "Parse", "an", "appliesTo", "to", "get", "the", "lowest", "and", "highest", "version", "that", "this", "asset", "applies", "to", "and", "return", "an", "object", "describing", "this", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/strategies/writeable/AddThenHideOldStrategy.java#L407-L426
68,609
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ResourceAdapterService.java
ResourceAdapterService.rarFileExists
public boolean rarFileExists() { final File zipFile = new File(rarFilePath); return AccessController.doPrivileged(new PrivilegedAction<Boolean>() { @Override public Boolean run() { return zipFile.exists(); } }); }
java
public boolean rarFileExists() { final File zipFile = new File(rarFilePath); return AccessController.doPrivileged(new PrivilegedAction<Boolean>() { @Override public Boolean run() { return zipFile.exists(); } }); }
[ "public", "boolean", "rarFileExists", "(", ")", "{", "final", "File", "zipFile", "=", "new", "File", "(", "rarFilePath", ")", ";", "return", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "Boolean", ">", "(", ")", "{", "@", "...
Check that resource adapter path exists @return true if path exists, false if it does not
[ "Check", "that", "resource", "adapter", "path", "exists" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ResourceAdapterService.java#L187-L195
68,610
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ResourceAdapterService.java
ResourceAdapterService.getClassLoader
public ClassLoader getClassLoader() throws UnableToAdaptException, MalformedURLException { lock.readLock().lock(); try { if (classloader != null) return classloader; } finally { lock.readLock().unlock(); } if (!rarFileExists()) ...
java
public ClassLoader getClassLoader() throws UnableToAdaptException, MalformedURLException { lock.readLock().lock(); try { if (classloader != null) return classloader; } finally { lock.readLock().unlock(); } if (!rarFileExists()) ...
[ "public", "ClassLoader", "getClassLoader", "(", ")", "throws", "UnableToAdaptException", ",", "MalformedURLException", "{", "lock", ".", "readLock", "(", ")", ".", "lock", "(", ")", ";", "try", "{", "if", "(", "classloader", "!=", "null", ")", "return", "cla...
Returns the class loader for the resource adapter. @return class loader @throws UnableToAdaptException @throws MalformedURLException
[ "Returns", "the", "class", "loader", "for", "the", "resource", "adapter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ResourceAdapterService.java#L204-L223
68,611
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ResourceAdapterService.java
ResourceAdapterService.getProtectionDomain
private ProtectionDomain getProtectionDomain(Container rarContainer) throws UnableToAdaptException, MalformedURLException { PermissionCollection perms = new Permissions(); CodeSource codeSource; try { // codesource must start file:/// // assume loc starts with 0 or 1 / ...
java
private ProtectionDomain getProtectionDomain(Container rarContainer) throws UnableToAdaptException, MalformedURLException { PermissionCollection perms = new Permissions(); CodeSource codeSource; try { // codesource must start file:/// // assume loc starts with 0 or 1 / ...
[ "private", "ProtectionDomain", "getProtectionDomain", "(", "Container", "rarContainer", ")", "throws", "UnableToAdaptException", ",", "MalformedURLException", "{", "PermissionCollection", "perms", "=", "new", "Permissions", "(", ")", ";", "CodeSource", "codeSource", ";", ...
Create a protection domain for the given RA, that includes the effective server java security permissions as well as those defined in the RA's permissions.xml. @param rarContainer resource adapter container object @return ProtectionDomain object configured for the resource adapter @throws UnableToAdaptException @throw...
[ "Create", "a", "protection", "domain", "for", "the", "given", "RA", "that", "includes", "the", "effective", "server", "java", "security", "permissions", "as", "well", "as", "those", "defined", "in", "the", "RA", "s", "permissions", ".", "xml", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ResourceAdapterService.java#L386-L427
68,612
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ResourceAdapterService.java
ResourceAdapterService.deleteBundleCacheDir
private boolean deleteBundleCacheDir(File path) { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (FileUtils.fileExists(path)) { if (trace && tc.isDebugEnabled()) { Tr.debug(this, tc, "Path specified exists: " + path.getPath()); } } else { ...
java
private boolean deleteBundleCacheDir(File path) { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (FileUtils.fileExists(path)) { if (trace && tc.isDebugEnabled()) { Tr.debug(this, tc, "Path specified exists: " + path.getPath()); } } else { ...
[ "private", "boolean", "deleteBundleCacheDir", "(", "File", "path", ")", "{", "final", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "FileUtils", ".", "fileExists", "(", "path", ")", ")", "{", "if", "(", "t...
Deletes the directory and its contents or the file that is specified @param path to cache directory to delete @return true if path was deleted or if it did not exist
[ "Deletes", "the", "directory", "and", "its", "contents", "or", "the", "file", "that", "is", "specified" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ResourceAdapterService.java#L484-L527
68,613
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/UnifiedClassLoader.java
UnifiedClassLoader.addTransformer
@Override public boolean addTransformer(final ClassFileTransformer cft) { boolean added = false; for (ClassLoader loader : followOnClassLoaders) { if (loader instanceof SpringLoader) { added |= ((SpringLoader) loader).addTransformer(cft); } } r...
java
@Override public boolean addTransformer(final ClassFileTransformer cft) { boolean added = false; for (ClassLoader loader : followOnClassLoaders) { if (loader instanceof SpringLoader) { added |= ((SpringLoader) loader).addTransformer(cft); } } r...
[ "@", "Override", "public", "boolean", "addTransformer", "(", "final", "ClassFileTransformer", "cft", ")", "{", "boolean", "added", "=", "false", ";", "for", "(", "ClassLoader", "loader", ":", "followOnClassLoaders", ")", "{", "if", "(", "loader", "instanceof", ...
Spring to register the given ClassFileTransformer on this ClassLoader
[ "Spring", "to", "register", "the", "given", "ClassFileTransformer", "on", "this", "ClassLoader" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/UnifiedClassLoader.java#L45-L54
68,614
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/UnifiedClassLoader.java
UnifiedClassLoader.getThrowawayClassLoader
@Override public ClassLoader getThrowawayClassLoader() { ClassLoader newParent = getThrowawayVersion(getParent()); ClassLoader[] newFollowOns = new ClassLoader[followOnClassLoaders.size()]; for (int i = 0; i < newFollowOns.length; i++) { newFollowOns[i] = getThrowawayVersion(foll...
java
@Override public ClassLoader getThrowawayClassLoader() { ClassLoader newParent = getThrowawayVersion(getParent()); ClassLoader[] newFollowOns = new ClassLoader[followOnClassLoaders.size()]; for (int i = 0; i < newFollowOns.length; i++) { newFollowOns[i] = getThrowawayVersion(foll...
[ "@", "Override", "public", "ClassLoader", "getThrowawayClassLoader", "(", ")", "{", "ClassLoader", "newParent", "=", "getThrowawayVersion", "(", "getParent", "(", ")", ")", ";", "ClassLoader", "[", "]", "newFollowOns", "=", "new", "ClassLoader", "[", "followOnClas...
Special method used by Spring to obtain a throwaway class loader for this ClassLoader
[ "Special", "method", "used", "by", "Spring", "to", "obtain", "a", "throwaway", "class", "loader", "for", "this", "ClassLoader" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/UnifiedClassLoader.java#L59-L67
68,615
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/logging/MyfacesLogger.java
MyfacesLogger.throwing
public void throwing( Level level, String sourceClass, String sourceMethod, Throwable thrown ) { logp(level, sourceClass, sourceMethod, null, thrown); }
java
public void throwing( Level level, String sourceClass, String sourceMethod, Throwable thrown ) { logp(level, sourceClass, sourceMethod, null, thrown); }
[ "public", "void", "throwing", "(", "Level", "level", ",", "String", "sourceClass", ",", "String", "sourceMethod", ",", "Throwable", "thrown", ")", "{", "logp", "(", "level", ",", "sourceClass", ",", "sourceMethod", ",", "null", ",", "thrown", ")", ";", "}"...
Log throwing an exception. Comparing to Java Logging function Logger.throwing(sourceClass, sourceMethod, thrown) this function takes one more parameter "level" so that developers can specify the logging level of an exception. Developers should pass value for the "level" parameter using following convention, <p> Leve...
[ "Log", "throwing", "an", "exception", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/logging/MyfacesLogger.java#L937-L945
68,616
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java
TransactionToDispatchableMap.addDispatchableForLocalTransaction
public Dispatchable addDispatchableForLocalTransaction(int clientTransactionId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "addDispatchableForLocalTransaction", "" + clientTransactionId); if (idToFirstLevelEntryMap.containsKey(clientTransactionId)) { final SIErrorException ...
java
public Dispatchable addDispatchableForLocalTransaction(int clientTransactionId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "addDispatchableForLocalTransaction", "" + clientTransactionId); if (idToFirstLevelEntryMap.containsKey(clientTransactionId)) { final SIErrorException ...
[ "public", "Dispatchable", "addDispatchableForLocalTransaction", "(", "int", "clientTransactionId", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"addDispatchableForLocalTransaction\"", ",", "...
Adds a dispatchable for use with a specific local transaction. Typically this is done by the done by the TCP channel thread when it determines it is about to pass the transmission relating to the start of a local transaction to the receive listener dispatcher. @param clientTransactionId Identifies the local transactio...
[ "Adds", "a", "dispatchable", "for", "use", "with", "a", "specific", "local", "transaction", ".", "Typically", "this", "is", "done", "by", "the", "done", "by", "the", "TCP", "channel", "thread", "when", "it", "determines", "it", "is", "about", "to", "pass",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java#L61-L79
68,617
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java
TransactionToDispatchableMap.addEnlistedDispatchableForGlobalTransaction
public Dispatchable addEnlistedDispatchableForGlobalTransaction(int clientXAResourceId, XidProxy xid) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "addEnlistedDispatchableForGlobalTransaction", new Object[] { "" + clientXAResourceId }); AbstractFirstLevelMapEntry firstLevelEntry = null; ...
java
public Dispatchable addEnlistedDispatchableForGlobalTransaction(int clientXAResourceId, XidProxy xid) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "addEnlistedDispatchableForGlobalTransaction", new Object[] { "" + clientXAResourceId }); AbstractFirstLevelMapEntry firstLevelEntry = null; ...
[ "public", "Dispatchable", "addEnlistedDispatchableForGlobalTransaction", "(", "int", "clientXAResourceId", ",", "XidProxy", "xid", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"addEnlisted...
Adds a dispatchable for use with a specific SIXAResource, which is currently enlisted in a global transaction. Typically this is done by the TCP channel thread when it determines that it is about to pass the transmission relating to the XA_START of enlistment into a global transaction to the receive listener dispatcher...
[ "Adds", "a", "dispatchable", "for", "use", "with", "a", "specific", "SIXAResource", "which", "is", "currently", "enlisted", "in", "a", "global", "transaction", ".", "Typically", "this", "is", "done", "by", "the", "TCP", "channel", "thread", "when", "it", "de...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java#L94-L130
68,618
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java
TransactionToDispatchableMap.getDispatchable
public Dispatchable getDispatchable(int clientId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getDispatchable", "" + clientId); AbstractFirstLevelMapEntry firstLevelEntry = null; if (idToFirstLevelEntryMap.containsKey(clientId)) { firstLevelEntry = ...
java
public Dispatchable getDispatchable(int clientId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getDispatchable", "" + clientId); AbstractFirstLevelMapEntry firstLevelEntry = null; if (idToFirstLevelEntryMap.containsKey(clientId)) { firstLevelEntry = ...
[ "public", "Dispatchable", "getDispatchable", "(", "int", "clientId", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getDispatchable\"", ",", "\"\"", "+", "clientId", ")", ";", "Abst...
Obtains a dispatchable for the specified client side transaction ID. The dispatchable returned will either correspond to an in-flight local transaction or an inflight enlisted SIXAResource. If there is no corresponding dispatchable in the table the a value of null is returned. @param clientId the client id to obtain a...
[ "Obtains", "a", "dispatchable", "for", "the", "specified", "client", "side", "transaction", "ID", ".", "The", "dispatchable", "returned", "will", "either", "correspond", "to", "an", "in", "-", "flight", "local", "transaction", "or", "an", "inflight", "enlisted",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java#L141-L162
68,619
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java
TransactionToDispatchableMap.removeDispatchableForLocalTransaction
public Dispatchable removeDispatchableForLocalTransaction(int clientId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "removeDispatchableForLocalTransaction", "" + clientId); AbstractFirstLevelMapEntry firstLevelEntry = null; if (idToFirstLevelEntryMap.containsKey(clientId)) { ...
java
public Dispatchable removeDispatchableForLocalTransaction(int clientId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "removeDispatchableForLocalTransaction", "" + clientId); AbstractFirstLevelMapEntry firstLevelEntry = null; if (idToFirstLevelEntryMap.containsKey(clientId)) { ...
[ "public", "Dispatchable", "removeDispatchableForLocalTransaction", "(", "int", "clientId", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"removeDispatchableForLocalTransaction\"", ",", "\"\""...
Removes, from the table, the dispatchable corresponding to a local transaction. @param clientId The client transaction id corresponding to the dispatchable to remove @return the removed dispatchable or null if no entry could be found for the specified clientId parameter.
[ "Removes", "from", "the", "table", "the", "dispatchable", "corresponding", "to", "a", "local", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java#L172-L201
68,620
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java
TransactionToDispatchableMap.removeAllDispatchablesForTransaction
public void removeAllDispatchablesForTransaction(int clientId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "removeAllDispatchablesForTransaction", clientId); idToFirstLevelEntryMap.remove(clientId); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "removeAllDispatchab...
java
public void removeAllDispatchablesForTransaction(int clientId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "removeAllDispatchablesForTransaction", clientId); idToFirstLevelEntryMap.remove(clientId); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "removeAllDispatchab...
[ "public", "void", "removeAllDispatchablesForTransaction", "(", "int", "clientId", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"removeAllDispatchablesForTransaction\"", ",", "clientId", ")...
In the event that the connection is going down, we need to ensure that the dispatchable table is cleared of all references to transactions that were created by that connection. @param clientId
[ "In", "the", "event", "that", "the", "connection", "is", "going", "down", "we", "need", "to", "ensure", "that", "the", "dispatchable", "table", "is", "cleared", "of", "all", "references", "to", "transactions", "that", "were", "created", "by", "that", "connec...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java#L209-L217
68,621
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java
TransactionToDispatchableMap.addDispatchableForOptimizedLocalTransaction
public Dispatchable addDispatchableForOptimizedLocalTransaction(int transactionId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "addDispatchableForOptimizedLocalTransaction", "" + transactionId); final Dispatchable result = addDispatchableForLocalTransaction(transactionId); if (t...
java
public Dispatchable addDispatchableForOptimizedLocalTransaction(int transactionId) { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "addDispatchableForOptimizedLocalTransaction", "" + transactionId); final Dispatchable result = addDispatchableForLocalTransaction(transactionId); if (t...
[ "public", "Dispatchable", "addDispatchableForOptimizedLocalTransaction", "(", "int", "transactionId", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"addDispatchableForOptimizedLocalTransaction\""...
Adds a new dispatchable to the map for an optimized local transaction. @param transactionId @return
[ "Adds", "a", "new", "dispatchable", "to", "the", "map", "for", "an", "optimized", "local", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java#L272-L279
68,622
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java
TransactionToDispatchableMap.getTotalDispatchables
public int getTotalDispatchables() { int count = 0; Iterator i = idToFirstLevelEntryMap.iterator(); while (i.hasNext()) ++count; return count; }
java
public int getTotalDispatchables() { int count = 0; Iterator i = idToFirstLevelEntryMap.iterator(); while (i.hasNext()) ++count; return count; }
[ "public", "int", "getTotalDispatchables", "(", ")", "{", "int", "count", "=", "0", ";", "Iterator", "i", "=", "idToFirstLevelEntryMap", ".", "iterator", "(", ")", ";", "while", "(", "i", ".", "hasNext", "(", ")", ")", "++", "count", ";", "return", "cou...
For unit test use only! @return the total number of dispatchables currently held within the table.
[ "For", "unit", "test", "use", "only!" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/TransactionToDispatchableMap.java#L435-L441
68,623
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java
RepositoryResourceImpl.createNewResource
@SuppressWarnings("unchecked") protected <T extends RepositoryResourceImpl> T createNewResource() { T result; if (null == getType()) { result = (T) createTestResource(getRepositoryConnection()); } else { result = ResourceFactory.getInstance().createResource(getType()...
java
@SuppressWarnings("unchecked") protected <T extends RepositoryResourceImpl> T createNewResource() { T result; if (null == getType()) { result = (T) createTestResource(getRepositoryConnection()); } else { result = ResourceFactory.getInstance().createResource(getType()...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "protected", "<", "T", "extends", "RepositoryResourceImpl", ">", "T", "createNewResource", "(", ")", "{", "T", "result", ";", "if", "(", "null", "==", "getType", "(", ")", ")", "{", "result", "=", "(", ...
Creates a new resource using the same logon infomation as this resource @param <T> @return
[ "Creates", "a", "new", "resource", "using", "the", "same", "logon", "infomation", "as", "this", "resource" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java#L207-L217
68,624
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java
RepositoryResourceImpl.matches
public MatchResult matches(ProductDefinition def) { Collection<AppliesToFilterInfo> atfiList = _asset.getWlpInformation().getAppliesToFilterInfo(); if (atfiList == null || atfiList.isEmpty()) { return MatchResult.NOT_APPLICABLE; } MatchResult matchResult = MatchResult.MATCHED...
java
public MatchResult matches(ProductDefinition def) { Collection<AppliesToFilterInfo> atfiList = _asset.getWlpInformation().getAppliesToFilterInfo(); if (atfiList == null || atfiList.isEmpty()) { return MatchResult.NOT_APPLICABLE; } MatchResult matchResult = MatchResult.MATCHED...
[ "public", "MatchResult", "matches", "(", "ProductDefinition", "def", ")", "{", "Collection", "<", "AppliesToFilterInfo", ">", "atfiList", "=", "_asset", ".", "getWlpInformation", "(", ")", ".", "getAppliesToFilterInfo", "(", ")", ";", "if", "(", "atfiList", "=="...
Check if this resources matches the supplied product definition @param def The product definition to check against @return A {@link MatchResult} that says whether the resource matches the product definition, and if not the reason why the match failed.
[ "Check", "if", "this", "resources", "matches", "the", "supplied", "product", "definition" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java#L245-L280
68,625
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java
RepositoryResourceImpl.readAttachmentsFromAsset
private synchronized void readAttachmentsFromAsset(Asset ass) { Collection<Attachment> attachments = ass.getAttachments(); _attachments = new HashMap<String, AttachmentResourceImpl>(); if (attachments != null) { for (Attachment at : attachments) { _attachments.put(at...
java
private synchronized void readAttachmentsFromAsset(Asset ass) { Collection<Attachment> attachments = ass.getAttachments(); _attachments = new HashMap<String, AttachmentResourceImpl>(); if (attachments != null) { for (Attachment at : attachments) { _attachments.put(at...
[ "private", "synchronized", "void", "readAttachmentsFromAsset", "(", "Asset", "ass", ")", "{", "Collection", "<", "Attachment", ">", "attachments", "=", "ass", ".", "getAttachments", "(", ")", ";", "_attachments", "=", "new", "HashMap", "<", "String", ",", "Att...
Read the attachments from the supplied asset and create an AttachmentResource to represent them and then store them in our AttachmentResource list @param ass @throws RepositoryBackenAttachment
[ "Read", "the", "attachments", "from", "the", "supplied", "asset", "and", "create", "an", "AttachmentResource", "to", "represent", "them", "and", "then", "store", "them", "in", "our", "AttachmentResource", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java#L298-L312
68,626
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java
RepositoryResourceImpl.updateRequired
public UpdateType updateRequired(RepositoryResourceImpl matching) { if (null == matching) { // No matching asset found return UpdateType.ADD; } if (equivalentWithoutAttachments(matching)) { return UpdateType.NOTHING; } else { // As we are...
java
public UpdateType updateRequired(RepositoryResourceImpl matching) { if (null == matching) { // No matching asset found return UpdateType.ADD; } if (equivalentWithoutAttachments(matching)) { return UpdateType.NOTHING; } else { // As we are...
[ "public", "UpdateType", "updateRequired", "(", "RepositoryResourceImpl", "matching", ")", "{", "if", "(", "null", "==", "matching", ")", "{", "// No matching asset found", "return", "UpdateType", ".", "ADD", ";", "}", "if", "(", "equivalentWithoutAttachments", "(", ...
Decide whether an attachment needs updating. @return boolean - whether the attachment needs updating
[ "Decide", "whether", "an", "attachment", "needs", "updating", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java#L924-L939
68,627
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java
RepositoryResourceImpl.createMatchingData
public RepositoryResourceMatchingData createMatchingData() { RepositoryResourceMatchingData matchingData = new RepositoryResourceMatchingData(); matchingData.setName(getName()); matchingData.setProviderName(getProviderName()); matchingData.setType(getType()); return matchingData;...
java
public RepositoryResourceMatchingData createMatchingData() { RepositoryResourceMatchingData matchingData = new RepositoryResourceMatchingData(); matchingData.setName(getName()); matchingData.setProviderName(getProviderName()); matchingData.setType(getType()); return matchingData;...
[ "public", "RepositoryResourceMatchingData", "createMatchingData", "(", ")", "{", "RepositoryResourceMatchingData", "matchingData", "=", "new", "RepositoryResourceMatchingData", "(", ")", ";", "matchingData", ".", "setName", "(", "getName", "(", ")", ")", ";", "matchingD...
Creates an object which can be used to compare with another resource's to determine if they represent the same asset. @return
[ "Creates", "an", "object", "which", "can", "be", "used", "to", "compare", "with", "another", "resource", "s", "to", "determine", "if", "they", "represent", "the", "same", "asset", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java#L947-L953
68,628
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java
RepositoryResourceImpl.findMatchingResource
public List<RepositoryResourceImpl> findMatchingResource() throws RepositoryResourceValidationException, RepositoryBackendException, RepositoryBadDataException, RepositoryResourceNoConnectionException { List<RepositoryResourceImpl> matchingRes; try { matchingRes = performMatching(); ...
java
public List<RepositoryResourceImpl> findMatchingResource() throws RepositoryResourceValidationException, RepositoryBackendException, RepositoryBadDataException, RepositoryResourceNoConnectionException { List<RepositoryResourceImpl> matchingRes; try { matchingRes = performMatching(); ...
[ "public", "List", "<", "RepositoryResourceImpl", ">", "findMatchingResource", "(", ")", "throws", "RepositoryResourceValidationException", ",", "RepositoryBackendException", ",", "RepositoryBadDataException", ",", "RepositoryResourceNoConnectionException", "{", "List", "<", "Re...
This method tries to find out if there is a match for "this" resource already in massive. @return A list of resources that were found in massive which has the same name, provider and type as this resource, an empty list otherwise. @throws RepositoryResourceValidationException If the resource fails a validation check @...
[ "This", "method", "tries", "to", "find", "out", "if", "there", "is", "a", "match", "for", "this", "resource", "already", "in", "massive", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java#L1028-L1045
68,629
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java
RepositoryResourceImpl.copyFieldsFrom
protected void copyFieldsFrom(RepositoryResourceImpl fromResource, boolean includeAttachmentInfo) { setName(fromResource.getName()); // part of the identification so locked setDescription(fromResource.getDescription()); setShortDescription(fromResource.getShortDescription()); setProvider...
java
protected void copyFieldsFrom(RepositoryResourceImpl fromResource, boolean includeAttachmentInfo) { setName(fromResource.getName()); // part of the identification so locked setDescription(fromResource.getDescription()); setShortDescription(fromResource.getShortDescription()); setProvider...
[ "protected", "void", "copyFieldsFrom", "(", "RepositoryResourceImpl", "fromResource", ",", "boolean", "includeAttachmentInfo", ")", "{", "setName", "(", "fromResource", ".", "getName", "(", ")", ")", ";", "// part of the identification so locked", "setDescription", "(", ...
Resources should override this method to copy fields that should be used as part of an update @param fromResource
[ "Resources", "should", "override", "this", "method", "to", "copy", "fields", "that", "should", "be", "used", "as", "part", "of", "an", "update" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java#L1053-L1075
68,630
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java
RepositoryResourceImpl.overWriteAssetData
public void overWriteAssetData(RepositoryResourceImpl fromResource, boolean includeAttachmentInfo) throws RepositoryResourceValidationException { // Make sure we are dealing with the same type....this // should never happen if (!fromResource.getClass().getName().equals(getClass().getName())) { ...
java
public void overWriteAssetData(RepositoryResourceImpl fromResource, boolean includeAttachmentInfo) throws RepositoryResourceValidationException { // Make sure we are dealing with the same type....this // should never happen if (!fromResource.getClass().getName().equals(getClass().getName())) { ...
[ "public", "void", "overWriteAssetData", "(", "RepositoryResourceImpl", "fromResource", ",", "boolean", "includeAttachmentInfo", ")", "throws", "RepositoryResourceValidationException", "{", "// Make sure we are dealing with the same type....this", "// should never happen", "if", "(", ...
This method copies the fields from "this" that we care about to the "fromResource". Then we set our asset to point to the one in "fromResource". In effect this means we get all the details from the "fromResource" and override fields we care about and store the merged result in our asset. This is used when we have read...
[ "This", "method", "copies", "the", "fields", "from", "this", "that", "we", "care", "about", "to", "the", "fromResource", ".", "Then", "we", "set", "our", "asset", "to", "point", "to", "the", "one", "in", "fromResource", ".", "In", "effect", "this", "mean...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java#L1092-L1105
68,631
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java
RepositoryResourceImpl.moveToState
public void moveToState(State state) throws RepositoryBackendException, RepositoryResourceException { if (getState() == null) { return; } int counter = 0; while (getState() != state) { counter++; StateAction nextAction = getState().getNextAction(state)...
java
public void moveToState(State state) throws RepositoryBackendException, RepositoryResourceException { if (getState() == null) { return; } int counter = 0; while (getState() != state) { counter++; StateAction nextAction = getState().getNextAction(state)...
[ "public", "void", "moveToState", "(", "State", "state", ")", "throws", "RepositoryBackendException", ",", "RepositoryResourceException", "{", "if", "(", "getState", "(", ")", "==", "null", ")", "{", "return", ";", "}", "int", "counter", "=", "0", ";", "while...
Moves the resource to the desired state @param resource @param state @throws RepositoryBackendException @throws RepositoryResourceException
[ "Moves", "the", "resource", "to", "the", "desired", "state" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java#L1318-L1332
68,632
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java
RepositoryResourceImpl.equivalent
public boolean equivalent(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; RepositoryResourceImpl other = (RepositoryResourceImpl) obj; if (_asset == null) { ...
java
public boolean equivalent(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; RepositoryResourceImpl other = (RepositoryResourceImpl) obj; if (_asset == null) { ...
[ "public", "boolean", "equivalent", "(", "Object", "obj", ")", "{", "if", "(", "this", "==", "obj", ")", "return", "true", ";", "if", "(", "obj", "==", "null", ")", "return", "false", ";", "if", "(", "getClass", "(", ")", "!=", "obj", ".", "getClass...
Checks if the two resources are equivalent by checking if the assets are equivalent. @param obj @return
[ "Checks", "if", "the", "two", "resources", "are", "equivalent", "by", "checking", "if", "the", "assets", "are", "equivalent", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java#L1474-L1488
68,633
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java
RepositoryResourceImpl.getCRC
private static long getCRC(InputStream is) throws IOException { CheckedInputStream check = new CheckedInputStream(is, new CRC32()); BufferedInputStream in = new BufferedInputStream(check); while (in.read() != -1) { // Read file in completely } long crc = check.getChec...
java
private static long getCRC(InputStream is) throws IOException { CheckedInputStream check = new CheckedInputStream(is, new CRC32()); BufferedInputStream in = new BufferedInputStream(check); while (in.read() != -1) { // Read file in completely } long crc = check.getChec...
[ "private", "static", "long", "getCRC", "(", "InputStream", "is", ")", "throws", "IOException", "{", "CheckedInputStream", "check", "=", "new", "CheckedInputStream", "(", "is", ",", "new", "CRC32", "(", ")", ")", ";", "BufferedInputStream", "in", "=", "new", ...
Get the CRC of a file from an InputStream @param is The input stream to obtain the CRC from @return a long representing the CRC value of the data read from the supplied input stream @throws IOException
[ "Get", "the", "CRC", "of", "a", "file", "from", "an", "InputStream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/RepositoryResourceImpl.java#L1548-L1556
68,634
OpenLiberty/open-liberty
dev/com.ibm.ws.anno/src/com/ibm/ws/anno/util/internal/UtilImpl_BidirectionalMap.java
UtilImpl_BidirectionalMap.record
public boolean record(String holderName, String heldName) { return i_record(internHolder(holderName, Util_InternMap.DO_FORCE), internHeld(heldName, Util_InternMap.DO_FORCE)); }
java
public boolean record(String holderName, String heldName) { return i_record(internHolder(holderName, Util_InternMap.DO_FORCE), internHeld(heldName, Util_InternMap.DO_FORCE)); }
[ "public", "boolean", "record", "(", "String", "holderName", ",", "String", "heldName", ")", "{", "return", "i_record", "(", "internHolder", "(", "holderName", ",", "Util_InternMap", ".", "DO_FORCE", ")", ",", "internHeld", "(", "heldName", ",", "Util_InternMap",...
Or rely on the caller to know to make no store calls?
[ "Or", "rely", "on", "the", "caller", "to", "know", "to", "make", "no", "store", "calls?" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/util/internal/UtilImpl_BidirectionalMap.java#L257-L260
68,635
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/utils/FileLogHolder.java
FileLogHolder.getTc
private static TraceComponent getTc() { if (tc == null) { tc = Tr.register(FileLogHolder.class, null, "com.ibm.ws.logging.internal.resources.LoggingMessages"); } return tc; }
java
private static TraceComponent getTc() { if (tc == null) { tc = Tr.register(FileLogHolder.class, null, "com.ibm.ws.logging.internal.resources.LoggingMessages"); } return tc; }
[ "private", "static", "TraceComponent", "getTc", "(", ")", "{", "if", "(", "tc", "==", "null", ")", "{", "tc", "=", "Tr", ".", "register", "(", "FileLogHolder", ".", "class", ",", "null", ",", "\"com.ibm.ws.logging.internal.resources.LoggingMessages\"", ")", ";...
This method will get an instance of TraceComponent @return
[ "This", "method", "will", "get", "an", "instance", "of", "TraceComponent" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/utils/FileLogHolder.java#L107-L112
68,636
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/utils/FileLogHolder.java
FileLogHolder.getPrimaryStream
private PrintStream getPrimaryStream(boolean showError) { File primaryFile = getPrimaryFile(); setStreamFromFile(primaryFile, false, primaryFile.length(), showError); return currentPrintStream; }
java
private PrintStream getPrimaryStream(boolean showError) { File primaryFile = getPrimaryFile(); setStreamFromFile(primaryFile, false, primaryFile.length(), showError); return currentPrintStream; }
[ "private", "PrintStream", "getPrimaryStream", "(", "boolean", "showError", ")", "{", "File", "primaryFile", "=", "getPrimaryFile", "(", ")", ";", "setStreamFromFile", "(", "primaryFile", ",", "false", ",", "primaryFile", ".", "length", "(", ")", ",", "showError"...
This assume that the primary file exists. @param showError @return
[ "This", "assume", "that", "the", "primary", "file", "exists", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/utils/FileLogHolder.java#L468-L472
68,637
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ManagedServiceFactoryTracker.java
ManagedServiceFactoryTracker.addingService
@Override public ManagedServiceFactory addingService(ServiceReference<ManagedServiceFactory> reference) { String[] factoryPids = getServicePid(reference); if (factoryPids == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "handleReg...
java
@Override public ManagedServiceFactory addingService(ServiceReference<ManagedServiceFactory> reference) { String[] factoryPids = getServicePid(reference); if (factoryPids == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "handleReg...
[ "@", "Override", "public", "ManagedServiceFactory", "addingService", "(", "ServiceReference", "<", "ManagedServiceFactory", ">", "reference", ")", "{", "String", "[", "]", "factoryPids", "=", "getServicePid", "(", "reference", ")", ";", "if", "(", "factoryPids", "...
Processes registered ManagedServiceFactory and updates each with their own configuration properties. @param reference - ServiceReference for MangedServiceFactory
[ "Processes", "registered", "ManagedServiceFactory", "and", "updates", "each", "with", "their", "own", "configuration", "properties", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ManagedServiceFactoryTracker.java#L66-L89
68,638
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ManagedServiceFactoryTracker.java
ManagedServiceFactoryTracker.removedService
@Override public void removedService(ServiceReference<ManagedServiceFactory> reference, ManagedServiceFactory service) { String[] factoryPids = getServicePid(reference); if (factoryPids == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debu...
java
@Override public void removedService(ServiceReference<ManagedServiceFactory> reference, ManagedServiceFactory service) { String[] factoryPids = getServicePid(reference); if (factoryPids == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debu...
[ "@", "Override", "public", "void", "removedService", "(", "ServiceReference", "<", "ManagedServiceFactory", ">", "reference", ",", "ManagedServiceFactory", "service", ")", "{", "String", "[", "]", "factoryPids", "=", "getServicePid", "(", "reference", ")", ";", "i...
MangedServiceFactory service removed. Process removal and unget service from its context. @param reference @param service
[ "MangedServiceFactory", "service", "removed", ".", "Process", "removal", "and", "unget", "service", "from", "its", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ManagedServiceFactoryTracker.java#L131-L149
68,639
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container/src/com/ibm/ws/jpa/container/osgi/internal/OSGiJPAPUnitInfo.java
OSGiJPAPUnitInfo.getContainerRootParent
private Container getContainerRootParent(Container base) { Container puBase = base.getEnclosingContainer(); while (puBase != null && !puBase.isRoot()) { puBase = puBase.getEnclosingContainer(); } if (puBase != null && puBase.isRoot()) { Container parent = puBase.g...
java
private Container getContainerRootParent(Container base) { Container puBase = base.getEnclosingContainer(); while (puBase != null && !puBase.isRoot()) { puBase = puBase.getEnclosingContainer(); } if (puBase != null && puBase.isRoot()) { Container parent = puBase.g...
[ "private", "Container", "getContainerRootParent", "(", "Container", "base", ")", "{", "Container", "puBase", "=", "base", ".", "getEnclosingContainer", "(", ")", ";", "while", "(", "puBase", "!=", "null", "&&", "!", "puBase", ".", "isRoot", "(", ")", ")", ...
Navigates to the root of the base container and returns the parent container @param base @return
[ "Navigates", "to", "the", "root", "of", "the", "base", "container", "and", "returns", "the", "parent", "container" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container/src/com/ibm/ws/jpa/container/osgi/internal/OSGiJPAPUnitInfo.java#L225-L237
68,640
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlTextRendererBase.java
HtmlTextRendererBase.isAutocompleteOff
protected boolean isAutocompleteOff(FacesContext facesContext, UIComponent component) { if (component instanceof HtmlInputText) { String autocomplete = ((HtmlInputText)component).getAutocomplete(); if (autocomplete != null) { return autocomplete.eq...
java
protected boolean isAutocompleteOff(FacesContext facesContext, UIComponent component) { if (component instanceof HtmlInputText) { String autocomplete = ((HtmlInputText)component).getAutocomplete(); if (autocomplete != null) { return autocomplete.eq...
[ "protected", "boolean", "isAutocompleteOff", "(", "FacesContext", "facesContext", ",", "UIComponent", "component", ")", "{", "if", "(", "component", "instanceof", "HtmlInputText", ")", "{", "String", "autocomplete", "=", "(", "(", "HtmlInputText", ")", "component", ...
If autocomplete is "on" or not set, do not render it
[ "If", "autocomplete", "is", "on", "or", "not", "set", "do", "not", "render", "it" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlTextRendererBase.java#L313-L325
68,641
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java
JsLocalizer.updateLpMaps
private MasterEntry updateLpMaps(LWMConfig lp) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "updateLpMaps", lp); } SIBLocalizationPoint lpConfig = ((SIBLocalizationPoint) lp); // Create a new LocalizationDefinition and update the lpMap...
java
private MasterEntry updateLpMaps(LWMConfig lp) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "updateLpMaps", lp); } SIBLocalizationPoint lpConfig = ((SIBLocalizationPoint) lp); // Create a new LocalizationDefinition and update the lpMap...
[ "private", "MasterEntry", "updateLpMaps", "(", "LWMConfig", "lp", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"updateLpMaps\"", ...
Update the given SIBLocalizationPoint in the internal data structures lpMap lpMap contains all types of SIBLocalizationPoints. @param lp Localization point to add. @return masterEntry the masterMap entry
[ "Update", "the", "given", "SIBLocalizationPoint", "in", "the", "internal", "data", "structures", "lpMap" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java#L257-L284
68,642
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java
JsLocalizer.addLocalizationPoint
public boolean addLocalizationPoint(LWMConfig lp, DestinationDefinition dd) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "addLocalizationPoint", lp); } boolean valid = false; LocalizationDefinition ld = ((JsAdminFactoryImpl) jsaf).cre...
java
public boolean addLocalizationPoint(LWMConfig lp, DestinationDefinition dd) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "addLocalizationPoint", lp); } boolean valid = false; LocalizationDefinition ld = ((JsAdminFactoryImpl) jsaf).cre...
[ "public", "boolean", "addLocalizationPoint", "(", "LWMConfig", "lp", ",", "DestinationDefinition", "dd", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", ...
Add a single localization point to this JsLocalizer object and tell MP about it. This method is used by dynamic config in tWAS. @param lp @param dd @return boolean success Whether the LP was successfully added
[ "Add", "a", "single", "localization", "point", "to", "this", "JsLocalizer", "object", "and", "tell", "MP", "about", "it", ".", "This", "method", "is", "used", "by", "dynamic", "config", "in", "tWAS", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java#L294-L324
68,643
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java
JsLocalizer.isNewDestination
private boolean isNewDestination(String key) { Object dd = null; try { dd = _me.getSIBDestinationByUuid(_me.getBusName(), key, false); } catch (Exception e) { // No FFDC code needed } return (dd == null); }
java
private boolean isNewDestination(String key) { Object dd = null; try { dd = _me.getSIBDestinationByUuid(_me.getBusName(), key, false); } catch (Exception e) { // No FFDC code needed } return (dd == null); }
[ "private", "boolean", "isNewDestination", "(", "String", "key", ")", "{", "Object", "dd", "=", "null", ";", "try", "{", "dd", "=", "_me", ".", "getSIBDestinationByUuid", "(", "_me", ".", "getBusName", "(", ")", ",", "key", ",", "false", ")", ";", "}", ...
Check the old destination cache, if the destination is not found then it has just been created. This method assumes that the destination is in the new cache - this is not checked. @param key @return true if getSIBDestinationByUuid fails to return anything
[ "Check", "the", "old", "destination", "cache", "if", "the", "destination", "is", "not", "found", "then", "it", "has", "just", "been", "created", ".", "This", "method", "assumes", "that", "the", "destination", "is", "in", "the", "new", "cache", "-", "this",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java#L334-L345
68,644
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java
JsLocalizer.alterLocalizationPoint
public void alterLocalizationPoint(BaseDestination destination,LWMConfig lp) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "alterLocalizationPoint", lp); } boolean valid = true; DestinationDefinition dd = null; ...
java
public void alterLocalizationPoint(BaseDestination destination,LWMConfig lp) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "alterLocalizationPoint", lp); } boolean valid = true; DestinationDefinition dd = null; ...
[ "public", "void", "alterLocalizationPoint", "(", "BaseDestination", "destination", ",", "LWMConfig", "lp", ")", "throws", "Exception", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", ...
Modify the given localization point and tell MP. The parameter is a new SIBLocalizationPoint which will replace the existing object inside of this. This method is used by dynamic config. @param lp New localizationPoint
[ "Modify", "the", "given", "localization", "point", "and", "tell", "MP", ".", "The", "parameter", "is", "a", "new", "SIBLocalizationPoint", "which", "will", "replace", "the", "existing", "object", "inside", "of", "this", ".", "This", "method", "is", "used", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java#L355-L418
68,645
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java
JsLocalizer.getMasterMapKey
private String getMasterMapKey(LWMConfig lp) { String key = null; String lpIdentifier = ((SIBLocalizationPoint) lp).getIdentifier(); key = lpIdentifier.substring(0, lpIdentifier.indexOf("@")); return key; }
java
private String getMasterMapKey(LWMConfig lp) { String key = null; String lpIdentifier = ((SIBLocalizationPoint) lp).getIdentifier(); key = lpIdentifier.substring(0, lpIdentifier.indexOf("@")); return key; }
[ "private", "String", "getMasterMapKey", "(", "LWMConfig", "lp", ")", "{", "String", "key", "=", "null", ";", "String", "lpIdentifier", "=", "(", "(", "SIBLocalizationPoint", ")", "lp", ")", ".", "getIdentifier", "(", ")", ";", "key", "=", "lpIdentifier", "...
Returns the name of the destination associated with the supplied localization point. @param lp a localization point proxy. @return the identifier of the destination associated with the supplied localization point proxy.
[ "Returns", "the", "name", "of", "the", "destination", "associated", "with", "the", "supplied", "localization", "point", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java#L498-L504
68,646
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java
JsLocalizer.deleteDestLocalizations
private void deleteDestLocalizations(JsBus bus) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "deleteDestLocalizations", this); } Iterator i = alterDestinations.iterator(); while (i.hasNext()) { String key = (String) i.ne...
java
private void deleteDestLocalizations(JsBus bus) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "deleteDestLocalizations", this); } Iterator i = alterDestinations.iterator(); while (i.hasNext()) { String key = (String) i.ne...
[ "private", "void", "deleteDestLocalizations", "(", "JsBus", "bus", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"deleteDestLocaliz...
Tell MP about all deleted LPs that previously existed on locations which have also been deleted.
[ "Tell", "MP", "about", "all", "deleted", "LPs", "that", "previously", "existed", "on", "locations", "which", "have", "also", "been", "deleted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsLocalizer.java#L642-L677
68,647
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/LoggingConfigUtils.java
LoggingConfigUtils.getLogDirectory
static File getLogDirectory(Object newValue, File defaultDirectory) { File newDirectory = defaultDirectory; // If a value was specified, try creating a file with it if (newValue != null && newValue instanceof String) { newDirectory = new File((String) newValue); } ...
java
static File getLogDirectory(Object newValue, File defaultDirectory) { File newDirectory = defaultDirectory; // If a value was specified, try creating a file with it if (newValue != null && newValue instanceof String) { newDirectory = new File((String) newValue); } ...
[ "static", "File", "getLogDirectory", "(", "Object", "newValue", ",", "File", "defaultDirectory", ")", "{", "File", "newDirectory", "=", "defaultDirectory", ";", "// If a value was specified, try creating a file with it", "if", "(", "newValue", "!=", "null", "&&", "newVa...
Find, create, and validate the log directory. @param newValue New parameter value to parse/evaluate @param defaultValue Starting/Previous log directory-- this value might *also* be null. @return defaultValue if the newValue is null or is was badly formatted, or the converted new value
[ "Find", "create", "and", "validate", "the", "log", "directory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/LoggingConfigUtils.java#L40-L65
68,648
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/LoggingConfigUtils.java
LoggingConfigUtils.getStringValue
public static String getStringValue(Object newValue, String defaultValue) { if (newValue == null) return defaultValue; return (String) newValue; }
java
public static String getStringValue(Object newValue, String defaultValue) { if (newValue == null) return defaultValue; return (String) newValue; }
[ "public", "static", "String", "getStringValue", "(", "Object", "newValue", ",", "String", "defaultValue", ")", "{", "if", "(", "newValue", "==", "null", ")", "return", "defaultValue", ";", "return", "(", "String", ")", "newValue", ";", "}" ]
If the value is null, return the defaultValue. Otherwise return the new value.
[ "If", "the", "value", "is", "null", "return", "the", "defaultValue", ".", "Otherwise", "return", "the", "new", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/LoggingConfigUtils.java#L120-L125
68,649
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/LoggingConfigUtils.java
LoggingConfigUtils.getFormatValue
public static TraceFormat getFormatValue(Object newValue, TraceFormat defaultValue) { if (newValue != null && newValue instanceof String) { String strValue = ((String) newValue).toUpperCase(); try { return TraceFormat.valueOf(strValue); } catch (Exception e) {...
java
public static TraceFormat getFormatValue(Object newValue, TraceFormat defaultValue) { if (newValue != null && newValue instanceof String) { String strValue = ((String) newValue).toUpperCase(); try { return TraceFormat.valueOf(strValue); } catch (Exception e) {...
[ "public", "static", "TraceFormat", "getFormatValue", "(", "Object", "newValue", ",", "TraceFormat", "defaultValue", ")", "{", "if", "(", "newValue", "!=", "null", "&&", "newValue", "instanceof", "String", ")", "{", "String", "strValue", "=", "(", "(", "String"...
Convert the property value to a TraceFormat type @param s String value @return TraceFormat, BASIC is the default.
[ "Convert", "the", "property", "value", "to", "a", "TraceFormat", "type" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/LoggingConfigUtils.java#L163-L173
68,650
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/LoggingConfigUtils.java
LoggingConfigUtils.getStringFromCollection
public static String getStringFromCollection(Collection<String> values) { StringBuilder builder = new StringBuilder(); if (values != null) { for (String value : values) { builder.append(value).append(','); } if (builder.charAt(builder.length() - 1) == ...
java
public static String getStringFromCollection(Collection<String> values) { StringBuilder builder = new StringBuilder(); if (values != null) { for (String value : values) { builder.append(value).append(','); } if (builder.charAt(builder.length() - 1) == ...
[ "public", "static", "String", "getStringFromCollection", "(", "Collection", "<", "String", ">", "values", ")", "{", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "if", "(", "values", "!=", "null", ")", "{", "for", "(", "String", "...
Convert a collection of String values back into a comma separated list @param values The collection of strings
[ "Convert", "a", "collection", "of", "String", "values", "back", "into", "a", "comma", "separated", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/LoggingConfigUtils.java#L256-L266
68,651
OpenLiberty/open-liberty
dev/com.ibm.json4j/src/com/ibm/json/java/internal/Tokenizer.java
Tokenizer.readNumber
private Number readNumber() throws IOException { StringBuffer sb = new StringBuffer(); int l = lineNo; int c = colNo; while (isDigitChar(lastChar)) { sb.append((char)lastChar); readChar(); } // convert it! ...
java
private Number readNumber() throws IOException { StringBuffer sb = new StringBuffer(); int l = lineNo; int c = colNo; while (isDigitChar(lastChar)) { sb.append((char)lastChar); readChar(); } // convert it! ...
[ "private", "Number", "readNumber", "(", ")", "throws", "IOException", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "int", "l", "=", "lineNo", ";", "int", "c", "=", "colNo", ";", "while", "(", "isDigitChar", "(", "lastChar", ")", ...
Method to read a number from the JSON string. (-)(1-9)(0-9)* : decimal (-)0(0-7)* : octal (-)0(x|X)(0-9|a-f|A-F)* : hex [digits][.digits][(E|e)[(+|-)]digits] @returns The number as the wrapper Java Number type. @throws IOException Thrown in invalid numbers or unexpected end of JSON string
[ "Method", "to", "read", "a", "number", "from", "the", "JSON", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/java/internal/Tokenizer.java#L253-L314
68,652
OpenLiberty/open-liberty
dev/com.ibm.json4j/src/com/ibm/json/java/internal/Tokenizer.java
Tokenizer.readIdentifier
private String readIdentifier() throws IOException { StringBuffer sb = new StringBuffer(); while ((-1 != lastChar) && Character.isLetter((char)lastChar)) { sb.append((char)lastChar); readChar(); } return sb.toString(); }
java
private String readIdentifier() throws IOException { StringBuffer sb = new StringBuffer(); while ((-1 != lastChar) && Character.isLetter((char)lastChar)) { sb.append((char)lastChar); readChar(); } return sb.toString(); }
[ "private", "String", "readIdentifier", "(", ")", "throws", "IOException", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "while", "(", "(", "-", "1", "!=", "lastChar", ")", "&&", "Character", ".", "isLetter", "(", "(", "char", ")",...
Method to read a partular character string. only really need to handle 'null', 'true', and 'false'
[ "Method", "to", "read", "a", "partular", "character", "string", ".", "only", "really", "need", "to", "handle", "null", "true", "and", "false" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/java/internal/Tokenizer.java#L409-L419
68,653
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java
MessagingSecurityUtility.createAuthenticationData
public static AuthenticationData createAuthenticationData(String userName, UserRegistry userRegistry) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", userName); } AuthenticationData authData = new WSAuthent...
java
public static AuthenticationData createAuthenticationData(String userName, UserRegistry userRegistry) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", userName); } AuthenticationData authData = new WSAuthent...
[ "public", "static", "AuthenticationData", "createAuthenticationData", "(", "String", "userName", ",", "UserRegistry", "userRegistry", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{"...
Create the AuthenticationData from the UserName @param userName @return
[ "Create", "the", "AuthenticationData", "from", "the", "UserName" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java#L64-L79
68,654
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java
MessagingSecurityUtility.createAuthenticationData
public static AuthenticationData createAuthenticationData(byte[] token) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", token); } AuthenticationData authData = new WSAuthenticationData(); authData.s...
java
public static AuthenticationData createAuthenticationData(byte[] token) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", token); } AuthenticationData authData = new WSAuthenticationData(); authData.s...
[ "public", "static", "AuthenticationData", "createAuthenticationData", "(", "byte", "[", "]", "token", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "...
Create AuthenticationData object from the Token passed @param token @return
[ "Create", "AuthenticationData", "object", "from", "the", "Token", "passed" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java#L87-L97
68,655
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java
MessagingSecurityUtility.createAuthenticationData
public static AuthenticationData createAuthenticationData(String userName, String password) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", new Object[] { userName, "Password Not Traced" }); } Authenticatio...
java
public static AuthenticationData createAuthenticationData(String userName, String password) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", new Object[] { userName, "Password Not Traced" }); } Authenticatio...
[ "public", "static", "AuthenticationData", "createAuthenticationData", "(", "String", "userName", ",", "String", "password", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr...
Create AuthenticationData Object from the UserName and Password passed @param userName @param password @return
[ "Create", "AuthenticationData", "Object", "from", "the", "UserName", "and", "Password", "passed" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java#L106-L121
68,656
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java
MessagingSecurityUtility.createAuthenticationData
public static AuthenticationData createAuthenticationData(Certificate[] certs, UserRegistry userRegistry) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", certs); } AuthenticationData authData = new WSAuthen...
java
public static AuthenticationData createAuthenticationData(Certificate[] certs, UserRegistry userRegistry) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", certs); } AuthenticationData authData = new WSAuthen...
[ "public", "static", "AuthenticationData", "createAuthenticationData", "(", "Certificate", "[", "]", "certs", ",", "UserRegistry", "userRegistry", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", "...
Create AuthenticationData object from the Certificate @param certs @param userRegistry @return
[ "Create", "AuthenticationData", "object", "from", "the", "Certificate" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java#L130-L151
68,657
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java
MessagingSecurityUtility.getDefaultRealm
private static String getDefaultRealm(UserRegistry _userRegistry) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "getDefaultRealm"); } String realm = DEFAULT_REALM; if (_userRegistry != null) { realm = _userRegist...
java
private static String getDefaultRealm(UserRegistry _userRegistry) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "getDefaultRealm"); } String realm = DEFAULT_REALM; if (_userRegistry != null) { realm = _userRegist...
[ "private", "static", "String", "getDefaultRealm", "(", "UserRegistry", "_userRegistry", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",",...
Get the Default Realm @param _userRegistry @return
[ "Get", "the", "Default", "Realm" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java#L159-L171
68,658
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java
MessagingSecurityUtility.getUniqueUserName
public static String getUniqueUserName(Subject subject) throws MessagingSecurityException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "getUniqueUserName", subject); } if (subject == null) { return null; } ...
java
public static String getUniqueUserName(Subject subject) throws MessagingSecurityException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "getUniqueUserName", subject); } if (subject == null) { return null; } ...
[ "public", "static", "String", "getUniqueUserName", "(", "Subject", "subject", ")", "throws", "MessagingSecurityException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", "."...
This method returns the unique name of the user that was being authenticated. This is a best can do process and a user name may not be available, in which case null should be returned. This method should not return an empty string. @param subject the WAS authenticated subject @return The name of the user being authen...
[ "This", "method", "returns", "the", "unique", "name", "of", "the", "user", "that", "was", "being", "authenticated", ".", "This", "is", "a", "best", "can", "do", "process", "and", "a", "user", "name", "may", "not", "be", "available", "in", "which", "case"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java#L185-L208
68,659
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java
MessagingSecurityUtility.isUnauthenticated
public static boolean isUnauthenticated(Subject subject) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "isUnauthenticated", subject); } boolean result = subjectHelper.isUnauthenticated(subject); if (TraceComponent.isAnyTraci...
java
public static boolean isUnauthenticated(Subject subject) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "isUnauthenticated", subject); } boolean result = subjectHelper.isUnauthenticated(subject); if (TraceComponent.isAnyTraci...
[ "public", "static", "boolean", "isUnauthenticated", "(", "Subject", "subject", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS...
Check if the Subject is Authenticated @param subject @return true if Subject is not authenticated
[ "Check", "if", "the", "Subject", "is", "Authenticated" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/utility/MessagingSecurityUtility.java#L238-L247
68,660
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ThreadLocalStack.java
ThreadLocalStack.pop
public E pop() throws EmptyStackException { E answer = peek(); // Throws EmptyStackException if there's nothing there _elements.get().remove(_elements.get().size()-1); return answer; }
java
public E pop() throws EmptyStackException { E answer = peek(); // Throws EmptyStackException if there's nothing there _elements.get().remove(_elements.get().size()-1); return answer; }
[ "public", "E", "pop", "(", ")", "throws", "EmptyStackException", "{", "E", "answer", "=", "peek", "(", ")", ";", "// Throws EmptyStackException if there's nothing there", "_elements", ".", "get", "(", ")", ".", "remove", "(", "_elements", ".", "get", "(", ")",...
Pop and return the top element of the stack for this thread @return The previously top element of the stack for this thread @throws EmptyStackException is thrown if the stack for this thread is empty
[ "Pop", "and", "return", "the", "top", "element", "of", "the", "stack", "for", "this", "thread" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ThreadLocalStack.java#L88-L93
68,661
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/TaskInfo.java
TaskInfo.deserializeThreadContext
public ThreadContextDescriptor deserializeThreadContext(Map<String, String> execProps) throws IOException, ClassNotFoundException { return threadContextBytes == null ? null : ThreadContextDeserializer.deserialize(threadContextBytes, execProps); }
java
public ThreadContextDescriptor deserializeThreadContext(Map<String, String> execProps) throws IOException, ClassNotFoundException { return threadContextBytes == null ? null : ThreadContextDeserializer.deserialize(threadContextBytes, execProps); }
[ "public", "ThreadContextDescriptor", "deserializeThreadContext", "(", "Map", "<", "String", ",", "String", ">", "execProps", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "return", "threadContextBytes", "==", "null", "?", "null", ":", "ThreadContex...
Returns the thread context that was captured at the point when the task was submitted. @param execProps execution properties for the persistent task. @return the thread context that was captured at the point when the task was submitted. @throws IOException @throws ClassNotFoundException
[ "Returns", "the", "thread", "context", "that", "was", "captured", "at", "the", "point", "when", "the", "task", "was", "submitted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/TaskInfo.java#L151-L153
68,662
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/metadata/builder/HandlerChainInfoBuilder.java
HandlerChainInfoBuilder.buildHandlerChainInfoFromXML
public static HandlerChainInfo buildHandlerChainInfoFromXML(HandlerChain hChain) { HandlerChainInfo hcInfo = new HandlerChainInfo(); // set Service QName if (hChain.getServiceNamePattern() != null) { hcInfo.setServiceNamePattern(new QName(hChain.getServiceNamePattern().getNamespaceUR...
java
public static HandlerChainInfo buildHandlerChainInfoFromXML(HandlerChain hChain) { HandlerChainInfo hcInfo = new HandlerChainInfo(); // set Service QName if (hChain.getServiceNamePattern() != null) { hcInfo.setServiceNamePattern(new QName(hChain.getServiceNamePattern().getNamespaceUR...
[ "public", "static", "HandlerChainInfo", "buildHandlerChainInfoFromXML", "(", "HandlerChain", "hChain", ")", "{", "HandlerChainInfo", "hcInfo", "=", "new", "HandlerChainInfo", "(", ")", ";", "// set Service QName", "if", "(", "hChain", ".", "getServiceNamePattern", "(", ...
Build the handlerChain info from web.xml @param hChain @return
[ "Build", "the", "handlerChain", "info", "from", "web", ".", "xml" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/metadata/builder/HandlerChainInfoBuilder.java#L82-L106
68,663
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/metadata/builder/HandlerChainInfoBuilder.java
HandlerChainInfoBuilder.buildHandlerInfoFromXML
public static HandlerInfo buildHandlerInfoFromXML(com.ibm.ws.javaee.dd.common.wsclient.Handler handler) { HandlerInfo hInfo = new HandlerInfo(); hInfo.setHandlerClass(handler.getHandlerClassName()); hInfo.setHandlerName(handler.getHandlerName()); for (ParamValue pv : handler.getInitPar...
java
public static HandlerInfo buildHandlerInfoFromXML(com.ibm.ws.javaee.dd.common.wsclient.Handler handler) { HandlerInfo hInfo = new HandlerInfo(); hInfo.setHandlerClass(handler.getHandlerClassName()); hInfo.setHandlerName(handler.getHandlerName()); for (ParamValue pv : handler.getInitPar...
[ "public", "static", "HandlerInfo", "buildHandlerInfoFromXML", "(", "com", ".", "ibm", ".", "ws", ".", "javaee", ".", "dd", ".", "common", ".", "wsclient", ".", "Handler", "handler", ")", "{", "HandlerInfo", "hInfo", "=", "new", "HandlerInfo", "(", ")", ";"...
Build the handler info from web.xml @param handler @return
[ "Build", "the", "handler", "info", "from", "web", ".", "xml" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/metadata/builder/HandlerChainInfoBuilder.java#L114-L131
68,664
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/metadata/builder/HandlerChainInfoBuilder.java
HandlerChainInfoBuilder.resolveHandlerChainFileName
protected URL resolveHandlerChainFileName(String clzName, String fileName) { URL handlerFile = null; InputStream in = null; String handlerChainFileName = fileName; URL baseUrl = classLoader.getResource(getClassResourceName(clzName)); try { //if the filename start wi...
java
protected URL resolveHandlerChainFileName(String clzName, String fileName) { URL handlerFile = null; InputStream in = null; String handlerChainFileName = fileName; URL baseUrl = classLoader.getResource(getClassResourceName(clzName)); try { //if the filename start wi...
[ "protected", "URL", "resolveHandlerChainFileName", "(", "String", "clzName", ",", "String", "fileName", ")", "{", "URL", "handlerFile", "=", "null", ";", "InputStream", "in", "=", "null", ";", "String", "handlerChainFileName", "=", "fileName", ";", "URL", "baseU...
Resolve handler chain configuration file associated with the given class @param clzName @param fileName @return A URL object or null if no resource with this name is found
[ "Resolve", "handler", "chain", "configuration", "file", "associated", "with", "the", "given", "class" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/metadata/builder/HandlerChainInfoBuilder.java#L356-L383
68,665
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/metadata/builder/HandlerChainInfoBuilder.java
HandlerChainInfoBuilder.sortHandlers
@SuppressWarnings("rawtypes") public static List<Handler> sortHandlers(List<Handler> handlers) { List<LogicalHandler<?>> logicalHandlers = new ArrayList<LogicalHandler<?>>(); List<Handler<?>> protocolHandlers = new ArrayList<Handler<?>>(); for (Handler<?> handler : handlers) { ...
java
@SuppressWarnings("rawtypes") public static List<Handler> sortHandlers(List<Handler> handlers) { List<LogicalHandler<?>> logicalHandlers = new ArrayList<LogicalHandler<?>>(); List<Handler<?>> protocolHandlers = new ArrayList<Handler<?>>(); for (Handler<?> handler : handlers) { ...
[ "@", "SuppressWarnings", "(", "\"rawtypes\"", ")", "public", "static", "List", "<", "Handler", ">", "sortHandlers", "(", "List", "<", "Handler", ">", "handlers", ")", "{", "List", "<", "LogicalHandler", "<", "?", ">", ">", "logicalHandlers", "=", "new", "A...
sorts the handlers into correct order. All of the logical handlers first followed by the protocol handlers @param handlers @return sorted list of handlers
[ "sorts", "the", "handlers", "into", "correct", "order", ".", "All", "of", "the", "logical", "handlers", "first", "followed", "by", "the", "protocol", "handlers" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/metadata/builder/HandlerChainInfoBuilder.java#L438-L456
68,666
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ApplicationClassloadingServiceFactory.java
ApplicationClassloadingServiceFactory.buildServicePropsAndFilterTargets
private Dictionary<String, Object> buildServicePropsAndFilterTargets(String pid, Dictionary<String, Object> config) throws IOException, InvalidSyntaxException { Dictionary<String, Object> result = new Hashtable<String, Object>(); // we will use this later to discover the properties configured in this c...
java
private Dictionary<String, Object> buildServicePropsAndFilterTargets(String pid, Dictionary<String, Object> config) throws IOException, InvalidSyntaxException { Dictionary<String, Object> result = new Hashtable<String, Object>(); // we will use this later to discover the properties configured in this c...
[ "private", "Dictionary", "<", "String", ",", "Object", ">", "buildServicePropsAndFilterTargets", "(", "String", "pid", ",", "Dictionary", "<", "String", ",", "Object", ">", "config", ")", "throws", "IOException", ",", "InvalidSyntaxException", "{", "Dictionary", "...
Add the properties for this new service to allow other components locate this service @throws InvalidSyntaxException @throws IOException
[ "Add", "the", "properties", "for", "this", "new", "service", "to", "allow", "other", "components", "locate", "this", "service" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ApplicationClassloadingServiceFactory.java#L119-L172
68,667
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ApplicationClassloadingServiceFactory.java
ApplicationClassloadingServiceFactory.buildTargetString
private String buildTargetString(List<String> privateLibraries) { StringBuilder filter = new StringBuilder(); filter.append("(&"); for (String lib : privateLibraries) filter.append(String.format("(|(%s=%s)(%s=%s))", LibraryStatusService.LIBRARY_IDS, lib, LibraryStatusService.LIBRARY_...
java
private String buildTargetString(List<String> privateLibraries) { StringBuilder filter = new StringBuilder(); filter.append("(&"); for (String lib : privateLibraries) filter.append(String.format("(|(%s=%s)(%s=%s))", LibraryStatusService.LIBRARY_IDS, lib, LibraryStatusService.LIBRARY_...
[ "private", "String", "buildTargetString", "(", "List", "<", "String", ">", "privateLibraries", ")", "{", "StringBuilder", "filter", "=", "new", "StringBuilder", "(", ")", ";", "filter", ".", "append", "(", "\"(&\"", ")", ";", "for", "(", "String", "lib", "...
This filter will cause the new application classloading service to block until these libraries are active Each library is added twice as it may be an automatic librari in which case its pid will not yet be known so we use the id.
[ "This", "filter", "will", "cause", "the", "new", "application", "classloading", "service", "to", "block", "until", "these", "libraries", "are", "active", "Each", "library", "is", "added", "twice", "as", "it", "may", "be", "an", "automatic", "librari", "in", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ApplicationClassloadingServiceFactory.java#L179-L191
68,668
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/logging/internal/StackFinder.java
StackFinder.matchCaller
@SuppressWarnings("unchecked") public Class<Object> matchCaller(String className) { // Walk the stack backwards to find the calling class: don't // want to use Class.forName, because we want the class as loaded // by it's original classloader Class<Object> stack[] = (Class<Object>[])...
java
@SuppressWarnings("unchecked") public Class<Object> matchCaller(String className) { // Walk the stack backwards to find the calling class: don't // want to use Class.forName, because we want the class as loaded // by it's original classloader Class<Object> stack[] = (Class<Object>[])...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "Class", "<", "Object", ">", "matchCaller", "(", "String", "className", ")", "{", "// Walk the stack backwards to find the calling class: don't", "// want to use Class.forName, because we want the class as loaded", "//...
Return the class if the given classname is found on the stack. @param fragment @return boolean
[ "Return", "the", "class", "if", "the", "given", "classname", "is", "found", "on", "the", "stack", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/logging/internal/StackFinder.java#L101-L114
68,669
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.timer.persistent/src/com/ibm/ws/ejbcontainer/timer/persistent/osgi/internal/EJBPersistentTimerRuntimeImpl.java
EJBPersistentTimerRuntimeImpl.getAllowCachedTimerData
protected int getAllowCachedTimerData(J2EEName j2eeName) { Integer allowCachedTimerData = null; Map<String, Integer> localAllowCachedTimerDataMap = allowCachedTimerDataMap; if (localAllowCachedTimerDataMap != null) { allowCachedTimerData = localAllowCachedTimerDataMap.get(j2eeName.to...
java
protected int getAllowCachedTimerData(J2EEName j2eeName) { Integer allowCachedTimerData = null; Map<String, Integer> localAllowCachedTimerDataMap = allowCachedTimerDataMap; if (localAllowCachedTimerDataMap != null) { allowCachedTimerData = localAllowCachedTimerDataMap.get(j2eeName.to...
[ "protected", "int", "getAllowCachedTimerData", "(", "J2EEName", "j2eeName", ")", "{", "Integer", "allowCachedTimerData", "=", "null", ";", "Map", "<", "String", ",", "Integer", ">", "localAllowCachedTimerDataMap", "=", "allowCachedTimerDataMap", ";", "if", "(", "loc...
Return the allowed cached timer data setting for the specified bean.
[ "Return", "the", "allowed", "cached", "timer", "data", "setting", "for", "the", "specified", "bean", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.timer.persistent/src/com/ibm/ws/ejbcontainer/timer/persistent/osgi/internal/EJBPersistentTimerRuntimeImpl.java#L445-L455
68,670
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/NullNotificationService.java
NullNotificationService.batchUpdate
public void batchUpdate(HashMap invalidateIdEvents, HashMap invalidateTemplateEvents, ArrayList pushEntryEvents, ArrayList aliasEntryEvents, CacheUnit cacheUnit) { //CCC // nothing to do for NullNotification }
java
public void batchUpdate(HashMap invalidateIdEvents, HashMap invalidateTemplateEvents, ArrayList pushEntryEvents, ArrayList aliasEntryEvents, CacheUnit cacheUnit) { //CCC // nothing to do for NullNotification }
[ "public", "void", "batchUpdate", "(", "HashMap", "invalidateIdEvents", ",", "HashMap", "invalidateTemplateEvents", ",", "ArrayList", "pushEntryEvents", ",", "ArrayList", "aliasEntryEvents", ",", "CacheUnit", "cacheUnit", ")", "{", "//CCC", "// nothing to do for NullNotifica...
This applies a set of invalidations and new entries to this CacheUnit, including the local internal cache and external caches registered with this CacheUnit. @param invalidateIdEvents A Vector of invalidate by id events. @param invalidateTemplateEvents A Vector of invalidate by template events. @param pushEntryEvents ...
[ "This", "applies", "a", "set", "of", "invalidations", "and", "new", "entries", "to", "this", "CacheUnit", "including", "the", "local", "internal", "cache", "and", "external", "caches", "registered", "with", "this", "CacheUnit", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/NullNotificationService.java#L35-L37
68,671
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxExecutionContextHandler.java
TxExecutionContextHandler.getTxWrapper
public static JCATranWrapper getTxWrapper(Xid xid, boolean addAssociation) throws XAException { if (tc.isEntryEnabled()) Tr.entry(tc, "getTxWrapper", new Object[] { xid, addAssociation}); final ByteArray key = new ByteArray(xid.getGlobalTransactionId()); final JCATranWrapper txWrapper; ...
java
public static JCATranWrapper getTxWrapper(Xid xid, boolean addAssociation) throws XAException { if (tc.isEntryEnabled()) Tr.entry(tc, "getTxWrapper", new Object[] { xid, addAssociation}); final ByteArray key = new ByteArray(xid.getGlobalTransactionId()); final JCATranWrapper txWrapper; ...
[ "public", "static", "JCATranWrapper", "getTxWrapper", "(", "Xid", "xid", ",", "boolean", "addAssociation", ")", "throws", "XAException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getTxWrapper\"", ",", ...
Given an Xid, returns the corresponding JCATranWrapper from the table of imported transactions, or null if no entry exists. @param xid @param addAssociation @return @throws XAException
[ "Given", "an", "Xid", "returns", "the", "corresponding", "JCATranWrapper", "from", "the", "table", "of", "imported", "transactions", "or", "null", "if", "no", "entry", "exists", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxExecutionContextHandler.java#L215-L252
68,672
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxExecutionContextHandler.java
TxExecutionContextHandler.findTxWrapper
protected JCATranWrapper findTxWrapper(int timeout, Xid xid, String providerId) throws WorkCompletedException { if (tc.isEntryEnabled()) Tr.entry(tc, "findTxWrapper", new Object[] { timeout, xid, providerId }); final JCATranWrapper txWrapper; final ByteArray key = new ByteArray(xid.getGloba...
java
protected JCATranWrapper findTxWrapper(int timeout, Xid xid, String providerId) throws WorkCompletedException { if (tc.isEntryEnabled()) Tr.entry(tc, "findTxWrapper", new Object[] { timeout, xid, providerId }); final JCATranWrapper txWrapper; final ByteArray key = new ByteArray(xid.getGloba...
[ "protected", "JCATranWrapper", "findTxWrapper", "(", "int", "timeout", ",", "Xid", "xid", ",", "String", "providerId", ")", "throws", "WorkCompletedException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", ...
Retrieve a JCATranWrapper from the table. Insert it first if it wasn't already there. Returns null if association already existed or if transaction has been prepared. @param timeout @param xid @return
[ "Retrieve", "a", "JCATranWrapper", "from", "the", "table", ".", "Insert", "it", "first", "if", "it", "wasn", "t", "already", "there", ".", "Returns", "null", "if", "association", "already", "existed", "or", "if", "transaction", "has", "been", "prepared", "."...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxExecutionContextHandler.java#L262-L338
68,673
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxExecutionContextHandler.java
TxExecutionContextHandler.createWrapper
protected JCATranWrapper createWrapper(int timeout, Xid xid, JCARecoveryData jcard) throws WorkCompletedException /* @512190C*/ { return new JCATranWrapperImpl(timeout, xid, jcard); // @D240298C }
java
protected JCATranWrapper createWrapper(int timeout, Xid xid, JCARecoveryData jcard) throws WorkCompletedException /* @512190C*/ { return new JCATranWrapperImpl(timeout, xid, jcard); // @D240298C }
[ "protected", "JCATranWrapper", "createWrapper", "(", "int", "timeout", ",", "Xid", "xid", ",", "JCARecoveryData", "jcard", ")", "throws", "WorkCompletedException", "/* @512190C*/", "{", "return", "new", "JCATranWrapperImpl", "(", "timeout", ",", "xid", ",", "jcard",...
Overridden in WAS
[ "Overridden", "in", "WAS" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxExecutionContextHandler.java#L341-L344
68,674
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxExecutionContextHandler.java
TxExecutionContextHandler.addTxn
public static void addTxn(TransactionImpl txn) { if (tc.isEntryEnabled()) Tr.entry(tc, "addTxn", txn); final ByteArray key = new ByteArray(txn.getXid().getGlobalTransactionId()); synchronized (txnTable) { if (!txnTable.containsKey(key)) { txn...
java
public static void addTxn(TransactionImpl txn) { if (tc.isEntryEnabled()) Tr.entry(tc, "addTxn", txn); final ByteArray key = new ByteArray(txn.getXid().getGlobalTransactionId()); synchronized (txnTable) { if (!txnTable.containsKey(key)) { txn...
[ "public", "static", "void", "addTxn", "(", "TransactionImpl", "txn", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"addTxn\"", ",", "txn", ")", ";", "final", "ByteArray", "key", "=", "new", "By...
To be called by recovery manager @param txn
[ "To", "be", "called", "by", "recovery", "manager" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxExecutionContextHandler.java#L350-L365
68,675
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java
_ArrayMap.getKey
@SuppressWarnings("unchecked") public K getKey(int index) { if ((index < 0) || (index >= size())) { throw new IndexOutOfBoundsException(); } return (K) _array[index * 2]; }
java
@SuppressWarnings("unchecked") public K getKey(int index) { if ((index < 0) || (index >= size())) { throw new IndexOutOfBoundsException(); } return (K) _array[index * 2]; }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "K", "getKey", "(", "int", "index", ")", "{", "if", "(", "(", "index", "<", "0", ")", "||", "(", "index", ">=", "size", "(", ")", ")", ")", "{", "throw", "new", "IndexOutOfBoundsException", ...
Returns the key at a specific index in the map.
[ "Returns", "the", "key", "at", "a", "specific", "index", "in", "the", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java#L108-L116
68,676
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java
_ArrayMap.getValue
@SuppressWarnings("unchecked") public V getValue(int index) { if ((index < 0) || (index >= size())) { throw new IndexOutOfBoundsException(); } return (V) _array[index * 2 + 1]; }
java
@SuppressWarnings("unchecked") public V getValue(int index) { if ((index < 0) || (index >= size())) { throw new IndexOutOfBoundsException(); } return (V) _array[index * 2 + 1]; }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "V", "getValue", "(", "int", "index", ")", "{", "if", "(", "(", "index", "<", "0", ")", "||", "(", "index", ">=", "size", "(", ")", ")", ")", "{", "throw", "new", "IndexOutOfBoundsException"...
Returns the value at a specific index in the map.
[ "Returns", "the", "value", "at", "a", "specific", "index", "in", "the", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java#L121-L129
68,677
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java
_ArrayMap.get
static public Object get(Object[] array, Object key) { Object o = getByIdentity(array, key); if (o != null) { return o; } return getByEquality(array, key); }
java
static public Object get(Object[] array, Object key) { Object o = getByIdentity(array, key); if (o != null) { return o; } return getByEquality(array, key); }
[ "static", "public", "Object", "get", "(", "Object", "[", "]", "array", ",", "Object", "key", ")", "{", "Object", "o", "=", "getByIdentity", "(", "array", ",", "key", ")", ";", "if", "(", "o", "!=", "null", ")", "{", "return", "o", ";", "}", "retu...
Gets the object stored with the given key. Scans first by object identity, then by object equality.
[ "Gets", "the", "object", "stored", "with", "the", "given", "key", ".", "Scans", "first", "by", "object", "identity", "then", "by", "object", "equality", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java#L135-L144
68,678
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java
_ArrayMap.getByIdentity
static public Object getByIdentity(Object[] array, Object key) { if (array != null) { int length = array.length; for (int i = 0; i < length; i += 2) { if (array[i] == key) { return array[i + 1]; }...
java
static public Object getByIdentity(Object[] array, Object key) { if (array != null) { int length = array.length; for (int i = 0; i < length; i += 2) { if (array[i] == key) { return array[i + 1]; }...
[ "static", "public", "Object", "getByIdentity", "(", "Object", "[", "]", "array", ",", "Object", "key", ")", "{", "if", "(", "array", "!=", "null", ")", "{", "int", "length", "=", "array", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", ...
Gets the object stored with the given key, using only object identity.
[ "Gets", "the", "object", "stored", "with", "the", "given", "key", "using", "only", "object", "identity", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java#L150-L165
68,679
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java
_ArrayMap.getByEquality
static public Object getByEquality(Object[] array, Object key) { if (array != null) { int length = array.length; for (int i = 0; i < length; i += 2) { Object targetKey = array[i]; if (targetKey == null) { ...
java
static public Object getByEquality(Object[] array, Object key) { if (array != null) { int length = array.length; for (int i = 0; i < length; i += 2) { Object targetKey = array[i]; if (targetKey == null) { ...
[ "static", "public", "Object", "getByEquality", "(", "Object", "[", "]", "array", ",", "Object", "key", ")", "{", "if", "(", "array", "!=", "null", ")", "{", "int", "length", "=", "array", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", ...
Gets the object stored with the given key, using only object equality.
[ "Gets", "the", "object", "stored", "with", "the", "given", "key", "using", "only", "object", "equality", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java#L171-L192
68,680
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java
_ArrayMap.keys
@SuppressWarnings("unchecked") public Iterator<K> keys() { int size = _size; if (size == 0) { return null; } ArrayList<K> keyList = new ArrayList<K>(); int i = (size - 1) * 2; while (i >= 0) { keyList.add((K) _array[i]); ...
java
@SuppressWarnings("unchecked") public Iterator<K> keys() { int size = _size; if (size == 0) { return null; } ArrayList<K> keyList = new ArrayList<K>(); int i = (size - 1) * 2; while (i >= 0) { keyList.add((K) _array[i]); ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "Iterator", "<", "K", ">", "keys", "(", ")", "{", "int", "size", "=", "_size", ";", "if", "(", "size", "==", "0", ")", "{", "return", "null", ";", "}", "ArrayList", "<", "K", ">", "keyLi...
Returns an enumeration of the keys in this map. the Iterator methods on the returned object to fetch the elements sequentially.
[ "Returns", "an", "enumeration", "of", "the", "keys", "in", "this", "map", ".", "the", "Iterator", "methods", "on", "the", "returned", "object", "to", "fetch", "the", "elements", "sequentially", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java#L313-L330
68,681
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java
_ArrayMap.getKeys
public static Iterator<Object> getKeys(Object[] array) { if (array == null) { return null; } ArrayList<Object> keyList = new ArrayList<Object>(); int i = array.length - 2; while (i >= 0) { keyList.add(array[i]); i = i - 2; ...
java
public static Iterator<Object> getKeys(Object[] array) { if (array == null) { return null; } ArrayList<Object> keyList = new ArrayList<Object>(); int i = array.length - 2; while (i >= 0) { keyList.add(array[i]); i = i - 2; ...
[ "public", "static", "Iterator", "<", "Object", ">", "getKeys", "(", "Object", "[", "]", "array", ")", "{", "if", "(", "array", "==", "null", ")", "{", "return", "null", ";", "}", "ArrayList", "<", "Object", ">", "keyList", "=", "new", "ArrayList", "<...
Returns an Iterator of keys in the array.
[ "Returns", "an", "Iterator", "of", "keys", "in", "the", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java#L335-L349
68,682
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java
_ArrayMap.getValues
public static Iterator<Object> getValues(Object[] array) { if (array == null) { return null; } ArrayList<Object> valueList = new ArrayList<Object>(); int i = array.length - 1; while (i >= 0) { valueList.add(array[i]); i = i ...
java
public static Iterator<Object> getValues(Object[] array) { if (array == null) { return null; } ArrayList<Object> valueList = new ArrayList<Object>(); int i = array.length - 1; while (i >= 0) { valueList.add(array[i]); i = i ...
[ "public", "static", "Iterator", "<", "Object", ">", "getValues", "(", "Object", "[", "]", "array", ")", "{", "if", "(", "array", "==", "null", ")", "{", "return", "null", ";", "}", "ArrayList", "<", "Object", ">", "valueList", "=", "new", "ArrayList", ...
Returns an Iterator of values in the array.
[ "Returns", "an", "Iterator", "of", "values", "in", "the", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java#L354-L368
68,683
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java
_ArrayMap.clear
@Override public void clear() { int size = _size; if (size > 0) { size = size * 2; for (int i = 0; i < size; i++) { _array[i] = null; } _size = 0; } }
java
@Override public void clear() { int size = _size; if (size > 0) { size = size * 2; for (int i = 0; i < size; i++) { _array[i] = null; } _size = 0; } }
[ "@", "Override", "public", "void", "clear", "(", ")", "{", "int", "size", "=", "_size", ";", "if", "(", "size", ">", "0", ")", "{", "size", "=", "size", "*", "2", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++",...
Removes all elements from the ArrayMap.
[ "Removes", "all", "elements", "from", "the", "ArrayMap", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ArrayMap.java#L584-L598
68,684
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/AuthorizationCodeHandler.java
AuthorizationCodeHandler.sendErrorJSON
private void sendErrorJSON(HttpServletResponse response, int statusCode, String errorCode, String errorDescription) { final String error = "error"; final String error_description = "error_description"; try { if (errorCode != null) { response.setStatus(statusCode); ...
java
private void sendErrorJSON(HttpServletResponse response, int statusCode, String errorCode, String errorDescription) { final String error = "error"; final String error_description = "error_description"; try { if (errorCode != null) { response.setStatus(statusCode); ...
[ "private", "void", "sendErrorJSON", "(", "HttpServletResponse", "response", ",", "int", "statusCode", ",", "String", "errorCode", ",", "String", "errorDescription", ")", "{", "final", "String", "error", "=", "\"error\"", ";", "final", "String", "error_description", ...
refactored from Oauth SendErrorJson. Only usable for sending an http400.
[ "refactored", "from", "Oauth", "SendErrorJson", ".", "Only", "usable", "for", "sending", "an", "http400", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/AuthorizationCodeHandler.java#L175-L207
68,685
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.first
public boolean first() throws SQLException { try { if (dsConfig.get().beginTranForResultSetScrollingAPIs) getConnectionWrapper().beginTransactionIfNecessary(); return rsetImpl.first(); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.i...
java
public boolean first() throws SQLException { try { if (dsConfig.get().beginTranForResultSetScrollingAPIs) getConnectionWrapper().beginTransactionIfNecessary(); return rsetImpl.first(); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.i...
[ "public", "boolean", "first", "(", ")", "throws", "SQLException", "{", "try", "{", "if", "(", "dsConfig", ".", "get", "(", ")", ".", "beginTranForResultSetScrollingAPIs", ")", "getConnectionWrapper", "(", ")", ".", "beginTransactionIfNecessary", "(", ")", ";", ...
Moves the cursor to the first row in the result set. @return true if the cursor is on a valid row; false if there are no rows in the result set @throws SQLException if a database access error occurs or the result set type is TYPE_FORWARD_ONLY
[ "Moves", "the", "cursor", "to", "the", "first", "row", "in", "the", "result", "set", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L308-L321
68,686
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.getArray
public Array getArray(int arg0) throws SQLException { try { Array ra = rsetImpl.getArray(arg0); if (ra != null && freeResourcesOnClose) arrays.add(ra); return ra; } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rs...
java
public Array getArray(int arg0) throws SQLException { try { Array ra = rsetImpl.getArray(arg0); if (ra != null && freeResourcesOnClose) arrays.add(ra); return ra; } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rs...
[ "public", "Array", "getArray", "(", "int", "arg0", ")", "throws", "SQLException", "{", "try", "{", "Array", "ra", "=", "rsetImpl", ".", "getArray", "(", "arg0", ")", ";", "if", "(", "ra", "!=", "null", "&&", "freeResourcesOnClose", ")", "arrays", ".", ...
Gets an SQL ARRAY value from the current row of this ResultSet object. @param i - the first column is 1, the second is 2, ... @return an Array object representing the SQL ARRAY value in the specified column.
[ "Gets", "an", "SQL", "ARRAY", "value", "from", "the", "current", "row", "of", "this", "ResultSet", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L330-L343
68,687
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.getBlob
public Blob getBlob(int arg0) throws SQLException { try { Blob blob = rsetImpl.getBlob(arg0); if (blob != null && freeResourcesOnClose) blobs.add(blob); return blob; } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws...
java
public Blob getBlob(int arg0) throws SQLException { try { Blob blob = rsetImpl.getBlob(arg0); if (blob != null && freeResourcesOnClose) blobs.add(blob); return blob; } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws...
[ "public", "Blob", "getBlob", "(", "int", "arg0", ")", "throws", "SQLException", "{", "try", "{", "Blob", "blob", "=", "rsetImpl", ".", "getBlob", "(", "arg0", ")", ";", "if", "(", "blob", "!=", "null", "&&", "freeResourcesOnClose", ")", "blobs", ".", "...
Gets a BLOB value in the current row of this ResultSet object. @param i - the first column is 1, the second is 2, ... @return a Blob object representing the SQL BLOB value in the specified column.
[ "Gets", "a", "BLOB", "value", "in", "the", "current", "row", "of", "this", "ResultSet", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L518-L531
68,688
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.getCharacterStream
public Reader getCharacterStream(int arg0) throws SQLException { try { Reader reader = rsetImpl.getCharacterStream(arg0); if (reader != null && freeResourcesOnClose) resources.add(reader); return reader; } catch (SQLException ex) { FFDCF...
java
public Reader getCharacterStream(int arg0) throws SQLException { try { Reader reader = rsetImpl.getCharacterStream(arg0); if (reader != null && freeResourcesOnClose) resources.add(reader); return reader; } catch (SQLException ex) { FFDCF...
[ "public", "Reader", "getCharacterStream", "(", "int", "arg0", ")", "throws", "SQLException", "{", "try", "{", "Reader", "reader", "=", "rsetImpl", ".", "getCharacterStream", "(", "arg0", ")", ";", "if", "(", "reader", "!=", "null", "&&", "freeResourcesOnClose"...
Gets the value of a column in the current row as a java.io.Reader. @param columnIndex - the first column is 1, the second is 2, ...
[ "Gets", "the", "value", "of", "a", "column", "in", "the", "current", "row", "as", "a", "java", ".", "io", ".", "Reader", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L682-L695
68,689
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.getClob
public Clob getClob(int arg0) throws SQLException { try { Clob clob = rsetImpl.getClob(arg0); if (clob != null && freeResourcesOnClose) clobs.add(clob); return clob; } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws...
java
public Clob getClob(int arg0) throws SQLException { try { Clob clob = rsetImpl.getClob(arg0); if (clob != null && freeResourcesOnClose) clobs.add(clob); return clob; } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws...
[ "public", "Clob", "getClob", "(", "int", "arg0", ")", "throws", "SQLException", "{", "try", "{", "Clob", "clob", "=", "rsetImpl", ".", "getClob", "(", "arg0", ")", ";", "if", "(", "clob", "!=", "null", "&&", "freeResourcesOnClose", ")", "clobs", ".", "...
Gets a CLOB value in the current row of this ResultSet object. @param i - the first column is 1, the second is 2, ... @return a Clob object representing the SQL CLOB value in the specified column.
[ "Gets", "a", "CLOB", "value", "in", "the", "current", "row", "of", "this", "ResultSet", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L726-L739
68,690
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.getCursorName
public String getCursorName() throws SQLException { try { return rsetImpl.getCursorName(); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getCursorName", "1129", this); throw WSJdbcUtil.mapException(this, ex); ...
java
public String getCursorName() throws SQLException { try { return rsetImpl.getCursorName(); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getCursorName", "1129", this); throw WSJdbcUtil.mapException(this, ex); ...
[ "public", "String", "getCursorName", "(", ")", "throws", "SQLException", "{", "try", "{", "return", "rsetImpl", ".", "getCursorName", "(", ")", ";", "}", "catch", "(", "SQLException", "ex", ")", "{", "FFDCFilter", ".", "processException", "(", "ex", ",", "...
Gets the name of the SQL cursor used by this ResultSet. In SQL, a result table is retrieved through a cursor that is named. The current row of a result can be updated or deleted using a positioned update/delete statement that references the cursor name. To insure that the cursor has the proper isolation level to suppo...
[ "Gets", "the", "name", "of", "the", "SQL", "cursor", "used", "by", "this", "ResultSet", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L810-L820
68,691
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.getFetchDirection
public int getFetchDirection() throws SQLException { try { return rsetImpl.getFetchDirection(); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getFetchDirection", "1336", this); throw WSJdbcUtil.mapException(this...
java
public int getFetchDirection() throws SQLException { try { return rsetImpl.getFetchDirection(); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getFetchDirection", "1336", this); throw WSJdbcUtil.mapException(this...
[ "public", "int", "getFetchDirection", "(", ")", "throws", "SQLException", "{", "try", "{", "return", "rsetImpl", ".", "getFetchDirection", "(", ")", ";", "}", "catch", "(", "SQLException", "ex", ")", "{", "FFDCFilter", ".", "processException", "(", "ex", ","...
Returns the fetch direction for this result set. @return the current fetch direction for this result set @throws SQLException if a database access error occurs.
[ "Returns", "the", "fetch", "direction", "for", "this", "result", "set", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L955-L965
68,692
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.getMetaData
public ResultSetMetaData getMetaData() throws SQLException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "getMetaData"); // First, check if a ResultSetMetaData wrapper for this ResultSet already exists. ResultSetMetaData rsetMData = null; try // get a meta data { ...
java
public ResultSetMetaData getMetaData() throws SQLException { if (tc.isEntryEnabled()) Tr.entry(this, tc, "getMetaData"); // First, check if a ResultSetMetaData wrapper for this ResultSet already exists. ResultSetMetaData rsetMData = null; try // get a meta data { ...
[ "public", "ResultSetMetaData", "getMetaData", "(", ")", "throws", "SQLException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "this", ",", "tc", ",", "\"getMetaData\"", ")", ";", "// First, check if a ResultSetMetaData wr...
Retrieves the number, types and properties of a ResultSet's columns. @return the description of a ResultSet's columns @throws SQLException if a database access error occurs.
[ "Retrieves", "the", "number", "types", "and", "properties", "of", "a", "ResultSet", "s", "columns", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L1154-L1180
68,693
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.getObject
public Object getObject(String arg0) throws SQLException { try { Object result = rsetImpl.getObject(arg0); addFreedResources(result); return result; } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.ge...
java
public Object getObject(String arg0) throws SQLException { try { Object result = rsetImpl.getObject(arg0); addFreedResources(result); return result; } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.ge...
[ "public", "Object", "getObject", "(", "String", "arg0", ")", "throws", "SQLException", "{", "try", "{", "Object", "result", "=", "rsetImpl", ".", "getObject", "(", "arg0", ")", ";", "addFreedResources", "(", "result", ")", ";", "return", "result", ";", "}"...
Gets the value of a column in the current row as a Java object. This method will return the value of the given column as a Java object. The type of the Java object will be the default Java object type corresponding to the column's SQL type, following the mapping for built-in types specified in the JDBC spec. This met...
[ "Gets", "the", "value", "of", "a", "column", "in", "the", "current", "row", "as", "a", "Java", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L1460-L1474
68,694
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.getStatement
public Statement getStatement() throws SQLException { // The parent of a ResultSet may be a Statement or a MetaData. // For ResultSets created by MetaDatas, the getStatement method should return null, // unless the result set is closed. if (state == State.CLOSED || parentWrapper == null...
java
public Statement getStatement() throws SQLException { // The parent of a ResultSet may be a Statement or a MetaData. // For ResultSets created by MetaDatas, the getStatement method should return null, // unless the result set is closed. if (state == State.CLOSED || parentWrapper == null...
[ "public", "Statement", "getStatement", "(", ")", "throws", "SQLException", "{", "// The parent of a ResultSet may be a Statement or a MetaData.", "// For ResultSets created by MetaDatas, the getStatement method should return null,", "// unless the result set is closed.", "if", "(", "state"...
Returns the Statement that produced this ResultSet object. If the result set was generated some other way, such as by a DatabaseMetaData method, this method returns null. @return the Statment that produced the result set or null if the result set was produced some other way @throws SQLException if a database access er...
[ "Returns", "the", "Statement", "that", "produced", "this", "ResultSet", "object", ".", "If", "the", "result", "set", "was", "generated", "some", "other", "way", "such", "as", "by", "a", "DatabaseMetaData", "method", "this", "method", "returns", "null", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L1741-L1753
68,695
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.getWarnings
public SQLWarning getWarnings() throws SQLException { try { return rsetImpl.getWarnings(); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getWarnings", "2345", this); throw WSJdbcUtil.mapException(this, ex); ...
java
public SQLWarning getWarnings() throws SQLException { try { return rsetImpl.getWarnings(); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getWarnings", "2345", this); throw WSJdbcUtil.mapException(this, ex); ...
[ "public", "SQLWarning", "getWarnings", "(", ")", "throws", "SQLException", "{", "try", "{", "return", "rsetImpl", ".", "getWarnings", "(", ")", ";", "}", "catch", "(", "SQLException", "ex", ")", "{", "FFDCFilter", ".", "processException", "(", "ex", ",", "...
The first warning reported by calls on this ResultSet is returned. Subsequent ResultSet warnings will be chained to this SQLWarning. The warning chain is automatically cleared each time a new row is read. Note: This warning chain only covers warnings caused by ResultSet methods. Any warning caused by statement method...
[ "The", "first", "warning", "reported", "by", "calls", "on", "this", "ResultSet", "is", "returned", ".", "Subsequent", "ResultSet", "warnings", "will", "be", "chained", "to", "this", "SQLWarning", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L2039-L2049
68,696
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.setFetchDirection
public void setFetchDirection(int direction) throws SQLException { if (tc.isDebugEnabled()) Tr.debug(this, tc, "setFetchDirection", AdapterUtil.getFetchDirectionString(direction)); try { rsetImpl.setFetchDirection(direction); } catch (SQLException ex) { FFDCF...
java
public void setFetchDirection(int direction) throws SQLException { if (tc.isDebugEnabled()) Tr.debug(this, tc, "setFetchDirection", AdapterUtil.getFetchDirectionString(direction)); try { rsetImpl.setFetchDirection(direction); } catch (SQLException ex) { FFDCF...
[ "public", "void", "setFetchDirection", "(", "int", "direction", ")", "throws", "SQLException", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ",", "tc", ",", "\"setFetchDirection\"", ",", "AdapterUtil", ".", "g...
Gives a hint as to the direction in which the rows in this result set will be processed. The initial value is determined by the statement that produced the result set. The fetch direction may be changed at any time. @param direction fetch direction @throws SQLException if a database access error occurs or the result s...
[ "Gives", "a", "hint", "as", "to", "the", "direction", "in", "which", "the", "rows", "in", "this", "result", "set", "will", "be", "processed", ".", "The", "initial", "value", "is", "determined", "by", "the", "statement", "that", "produced", "the", "result",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L2434-L2447
68,697
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.setFetchSize
public void setFetchSize(int rows) throws SQLException { if (tc.isDebugEnabled()) Tr.debug(this, tc, "setFetchSize", rows); try { rsetImpl.setFetchSize(rows); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultS...
java
public void setFetchSize(int rows) throws SQLException { if (tc.isDebugEnabled()) Tr.debug(this, tc, "setFetchSize", rows); try { rsetImpl.setFetchSize(rows); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultS...
[ "public", "void", "setFetchSize", "(", "int", "rows", ")", "throws", "SQLException", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ",", "tc", ",", "\"setFetchSize\"", ",", "rows", ")", ";", "try", "{", "...
Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for this result set. If the fetch size specified is zero, the JDBC driver ignores the value and is free to make its own best guess as to what the fetch size should be. The default value is set by the...
[ "Gives", "the", "JDBC", "driver", "a", "hint", "as", "to", "the", "number", "of", "rows", "that", "should", "be", "fetched", "from", "the", "database", "when", "more", "rows", "are", "needed", "for", "this", "result", "set", ".", "If", "the", "fetch", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L2459-L2472
68,698
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.updateBinaryStream
public void updateBinaryStream(String arg0, InputStream arg1, int arg2) throws SQLException { try { rsetImpl.updateBinaryStream(arg0, arg1, arg2); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.updateBinaryStream", "3075", t...
java
public void updateBinaryStream(String arg0, InputStream arg1, int arg2) throws SQLException { try { rsetImpl.updateBinaryStream(arg0, arg1, arg2); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.updateBinaryStream", "3075", t...
[ "public", "void", "updateBinaryStream", "(", "String", "arg0", ",", "InputStream", "arg1", ",", "int", "arg2", ")", "throws", "SQLException", "{", "try", "{", "rsetImpl", ".", "updateBinaryStream", "(", "arg0", ",", "arg1", ",", "arg2", ")", ";", "}", "cat...
Updates a column with a binary stream value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database. @param columnName - the name of the colum...
[ "Updates", "a", "column", "with", "a", "binary", "stream", "value", ".", "The", "updateXXX", "methods", "are", "used", "to", "update", "column", "values", "in", "the", "current", "row", "or", "the", "insert", "row", ".", "The", "updateXXX", "methods", "do"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L2824-L2834
68,699
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.updateCharacterStream
public void updateCharacterStream(String arg0, Reader arg1, int arg2) throws SQLException { try { rsetImpl.updateCharacterStream(arg0, arg1, arg2); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.updateCharacterStream", "3317...
java
public void updateCharacterStream(String arg0, Reader arg1, int arg2) throws SQLException { try { rsetImpl.updateCharacterStream(arg0, arg1, arg2); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.updateCharacterStream", "3317...
[ "public", "void", "updateCharacterStream", "(", "String", "arg0", ",", "Reader", "arg1", ",", "int", "arg2", ")", "throws", "SQLException", "{", "try", "{", "rsetImpl", ".", "updateCharacterStream", "(", "arg0", ",", "arg1", ",", "arg2", ")", ";", "}", "ca...
Updates a column with a character stream value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database. @param columnName - the name of the co...
[ "Updates", "a", "column", "with", "a", "character", "stream", "value", ".", "The", "updateXXX", "methods", "are", "used", "to", "update", "column", "values", "in", "the", "current", "row", "or", "the", "insert", "row", ".", "The", "updateXXX", "methods", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L3258-L3268