- java.lang.Object
-
- com.pervasive.datarush.coercion.LiveConnectAdvice
-
public final class LiveConnectAdvice extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LiveConnectAdviceautoImport(Class<?> javaClass)Create a new LiveConnectAdvice to automatically import the given class.booleanequals(Object o)StringgetImportAs()Returns the alias to use if auto-importing.Class<?>getJavaClass()Returns the java class that this advice describesinthashCode()booleanisAutoImport()Returns whether to automatically import this class.LiveConnectAdvicewithAutoImport(boolean autoImport)Returns a new advice object, equivalent to this, but with auto-import set to the specified value.LiveConnectAdvicewithImportAs(String importAs)Returns a new advice object, equivalent to this, but with import-as set to the specified value.
-
-
-
Method Detail
-
autoImport
public static LiveConnectAdvice autoImport(Class<?> javaClass)
Create a new LiveConnectAdvice to automatically import the given class.- Parameters:
javaClass- the class- Returns:
- a new LiveConnectAdvice
-
withAutoImport
public LiveConnectAdvice withAutoImport(boolean autoImport)
Returns a new advice object, equivalent to this, but with auto-import set to the specified value.- Parameters:
autoImport- whether to automatically import- Returns:
- a new advice object
-
withImportAs
public LiveConnectAdvice withImportAs(String importAs)
Returns a new advice object, equivalent to this, but with import-as set to the specified value.- Parameters:
importAs- the alias to use for importing. by default this is the short name of the class- Returns:
- a new advice object
-
getJavaClass
public Class<?> getJavaClass()
Returns the java class that this advice describes- Returns:
- the java class that this advice describes
-
getImportAs
public String getImportAs()
Returns the alias to use if auto-importing. By default this is the short name of the class.- Returns:
- the alias to use if auto-importing
-
isAutoImport
public boolean isAutoImport()
Returns whether to automatically import this class.- Returns:
- whether to automatically import this class.
-
-