Package system.management
Class SelectQuery
- java.lang.Object
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class SelectQuery extends WqlObjectQuery
The base .NET class managing System.Management.SelectQuery, System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Management.SelectQuery
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Managementstatic java.lang.String
className
Qualified class name: System.Management.SelectQuerystatic org.mases.jcobridge.JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SelectQuery()
SelectQuery(boolean isSchemaQuery, java.lang.String condition)
SelectQuery(java.lang.Object instance)
Internal constructor.SelectQuery(java.lang.String queryOrClassName)
SelectQuery(java.lang.String className, java.lang.String condition)
SelectQuery(java.lang.String className, java.lang.String condition, java.lang.String[] selectedProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SelectQuery
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoSelectQuery
, a cast assert is made to check if types are compatible.NetObject
Clone()
java.lang.String
getClassName()
java.lang.String
getCondition()
boolean
getIsSchemaQuery()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectorg.mases.jcobridge.JCType
getJCOType()
Returns the instantiated class TypeStringCollection
getSelectedProperties()
void
setClassName(java.lang.String ClassName)
void
setCondition(java.lang.String Condition)
void
setIsSchemaQuery(boolean IsSchemaQuery)
void
setJCOInstance(org.mases.jcobridge.JCObject instance)
void
setSelectedProperties(StringCollection SelectedProperties)
-
Methods inherited from class system.management.ManagementQuery
getQueryLanguage, getQueryString, setQueryLanguage, setQueryString
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Management- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Management.SelectQuery- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Constructor Detail
-
SelectQuery
public SelectQuery(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
SelectQuery
public SelectQuery() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, ArgumentOutOfRangeException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, ManagementException, NotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
ArgumentOutOfRangeException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
ManagementException
NotSupportedException
IndexOutOfRangeException
-
SelectQuery
public SelectQuery(boolean isSchemaQuery, java.lang.String condition) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, MissingManifestResourceException, NotImplementedException, EventSourceException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
MissingManifestResourceException
NotImplementedException
EventSourceException
ArgumentOutOfRangeException
ObjectDisposedException
-
SelectQuery
public SelectQuery(java.lang.String queryOrClassName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, ArgumentOutOfRangeException, ObjectDisposedException, MissingManifestResourceException, NotImplementedException, ManagementException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
TypeLoadException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
ArgumentOutOfRangeException
ObjectDisposedException
MissingManifestResourceException
NotImplementedException
ManagementException
IndexOutOfRangeException
-
SelectQuery
public SelectQuery(java.lang.String className, java.lang.String condition) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
IndexOutOfRangeException
-
SelectQuery
public SelectQuery(java.lang.String className, java.lang.String condition, java.lang.String[] selectedProperties) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
IndexOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classWqlObjectQuery
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classWqlObjectQuery
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classWqlObjectQuery
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classWqlObjectQuery
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstance
in classWqlObjectQuery
-
getJCOType
public org.mases.jcobridge.JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classWqlObjectQuery
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static SelectQuery cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoSelectQuery
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SelectQuery
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Clone
public NetObject Clone() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
- Overrides:
Clone
in classWqlObjectQuery
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
IndexOutOfRangeException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
AbandonedMutexException
-
getIsSchemaQuery
public boolean getIsSchemaQuery() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setIsSchemaQuery
public void setIsSchemaQuery(boolean IsSchemaQuery) throws java.lang.Throwable, ArgumentOutOfRangeException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
IndexOutOfRangeException
-
getSelectedProperties
public StringCollection getSelectedProperties() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSelectedProperties
public void setSelectedProperties(StringCollection SelectedProperties) throws java.lang.Throwable, ArgumentOutOfRangeException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
IndexOutOfRangeException
-
getClassName
public java.lang.String getClassName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setClassName
public void setClassName(java.lang.String ClassName) throws java.lang.Throwable, ArgumentOutOfRangeException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
IndexOutOfRangeException
-
getCondition
public java.lang.String getCondition() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCondition
public void setCondition(java.lang.String Condition) throws java.lang.Throwable, ArgumentOutOfRangeException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
IndexOutOfRangeException
-
-