public final class ServiceVdbGenerator extends Object implements TeiidSqlConstants.Tokens
Modifier and Type | Field and Description |
---|---|
static String |
JOIN_FULL_OUTER
Full Outer Join type
|
static String |
JOIN_INNER
Inner Join Type
|
static String |
JOIN_LEFT_OUTER
Left Outer Join type
|
static String |
JOIN_RIGHT_OUTER
Right Outer Join type
|
ALL_COLS, DOLLAR, EQ, GE, GT, ID_ESCAPE_CHAR, LE, LOGICAL_AND, LOGICAL_OR, LT, NE, QMARK, TICK
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PREFIX_PATTERN, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
Constructor and Description |
---|
ServiceVdbGenerator(WorkspaceManager wsManager)
Constructs a ServiceVdbGenerator instance
|
Modifier and Type | Method and Description |
---|---|
String |
getODataViewDdl(Repository.UnitOfWork uow,
ViewDefinition viewDef)
Public method to generate the view DDL for a view definition
|
static Model |
getViewModel(Repository.UnitOfWork uow,
Vdb serviceVdb)
Method returns the view model for a service VDB
|
void |
refreshServiceVdb(Repository.UnitOfWork uow,
Vdb serviceVdb,
ViewEditorState[] editorStates)
This method creates a new service VDB given a list of editor states each containing a view definition.
|
public static final String JOIN_INNER
public static final String JOIN_LEFT_OUTER
public static final String JOIN_RIGHT_OUTER
public static final String JOIN_FULL_OUTER
public ServiceVdbGenerator(WorkspaceManager wsManager)
wsManager
- the WorkspaceManager (cannot be null
and must be started)public void refreshServiceVdb(Repository.UnitOfWork uow, Vdb serviceVdb, ViewEditorState[] editorStates) throws KException
uow
- the transactionserviceVdb
- the vdbeditorStates
- the array of view editor statesKException
- if problem occurspublic String getODataViewDdl(Repository.UnitOfWork uow, ViewDefinition viewDef) throws KException
uow
- the transactionviewDef
- the view definitionKException
- if problem occurspublic static Model getViewModel(Repository.UnitOfWork uow, Vdb serviceVdb) throws KException
uow
- the transactionserviceVdb
- the service VDBKException
- if problem occursCopyright © 2013–2019. All rights reserved.