- 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 LiveConnectAdvice
autoImport(Class<?> javaClass)
Create a new LiveConnectAdvice to automatically import the given class.boolean
equals(Object o)
String
getImportAs()
Returns the alias to use if auto-importing.Class<?>
getJavaClass()
Returns the java class that this advice describesint
hashCode()
boolean
isAutoImport()
Returns whether to automatically import this class.LiveConnectAdvice
withAutoImport(boolean autoImport)
Returns a new advice object, equivalent to this, but with auto-import set to the specified value.LiveConnectAdvice
withImportAs(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.
-
-