public class CRDInfo
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_TYPE_BV |
static int |
CACHE_TYPE_BVANDDETAIL |
static int |
CACHE_TYPE_DETAIL |
static int |
QUERY_TYPE_HIERARCHICAL
Property of CRD type of Hierarchical Data Source
|
static int |
QUERY_TYPE_IMPORTED_SQL
Property of CRD type of Imported SQLs.
|
static int |
QUERY_TYPE_PARAMETER
The parameters which type is 'Bind with Single Column' or 'Bind with
Cascading Columns'
|
static int |
QUERY_TYPE_QUERY
Property of CRD type of Query.
|
static int |
QUERY_TYPE_QUEYR
Deprecated.
As of v10.1, replaced by QUERY_TYPE_QUERY.
|
static int |
QUERY_TYPE_STORED_PROCEDURE
Property of CRD type of Stored Procedures.
|
static int |
QUERY_TYPE_USER_DEFINED
Property of CRD type of User Defined.
|
static short |
STATUS_BUILDING
Indicates a cube's status is building (value=2).
|
static short |
STATUS_COMPLETED
Indicates a cube's status is completed (value=4).
|
static short |
STATUS_DISABLED
Indicates a cube's status is disabled (value=5).
|
static short |
STATUS_PENDING
Indicates a cube's status is pending (value=1).
|
static short |
STATUS_UPDATING
Indicates a cube's status is updating (value=3).
|
| Constructor and Description |
|---|
CRDInfo(java.lang.String catalogPath,
java.lang.String dataSource,
int queryType,
java.lang.String queryName)
Constructs
CRDInfo with specified catalog path, data source name, query type and query name. |
CRDInfo(java.lang.String catalogPath,
java.lang.String dataSource,
int queryType,
java.lang.String queryName,
int cacheType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares the object if equals to this.
|
int |
getCacheType() |
java.lang.String |
getCatalogName()
Gets catalog name of this
CRDInfo. |
java.lang.String |
getCatalogPath()
Gets catalog path of this
CRDInfo. |
CRDInfoKey |
getCRDKey()
Gets
CRD key. |
long |
getCreatedTime()
Gets created time of this
CRDInfo. |
java.lang.String |
getDataSource()
Gets data source of this
CRDInfo. |
java.util.Date |
getLastModified()
Gets last modified of this
CRDInfo. |
java.lang.String |
getLoginUser() |
java.lang.String |
getParamFile()
Gets parameter file of running
CRD to generate result. |
java.util.Map<java.lang.String,java.lang.String[]> |
getParamValues()
Returns parameter values.
|
java.lang.String |
getPassword()
Deprecated.
since version 13.1, replaced by
getPasswords() |
java.util.Map<java.lang.String,java.lang.String> |
getPasswords()
get passwords for jdbc type connections
|
java.lang.String |
getQueryName()
Gets query name of this
CRDInfo. |
int |
getQueryType()
Gets query type of this
CRDInfo. |
java.util.Vector<CRDRunDetail> |
getRunDetails()
get detailed info of every time crd run.
|
java.util.Map<java.lang.String,java.lang.String[]> |
getRuntimeParamValues()
Returns runtime parameter values.
|
int |
getRunTimes()
get how many times crd is run after crd created.
|
short |
getStatus()
get status of a cube, return value may be may be
STATUS_PENDING, STATUS_BUILDING, STATUS_BUILDING,
STATUS_UPDATING, STATUS_COMPLETED, or STATUS_DISABLED. |
java.lang.String |
getTaskId()
Gets task id.
|
java.lang.String |
getUserName()
Deprecated.
since version 13.1, replaced by
getUserNames() |
java.util.Map<java.lang.String,java.lang.String> |
getUserNames()
get user names for jdbc type connections
|
boolean |
isLazy()
Checks whether is lazy, true means the result will be generated when the result used firstly.
|
void |
setCacheType(int cacheType) |
void |
setCatalogPath(java.lang.String catalogPath)
Sets catalog path of this
CRDInfo catalog resource tree real path. |
void |
setCreatedTime(long createdTime)
Sets created time of this
CRDInfo. |
void |
setDataSource(java.lang.String dataSource)
Sets data source of this
CRDInfo. |
void |
setLastModified(java.util.Date lastModified)
Sets last modified of this
CRDInfo. |
void |
setLazy(boolean lazy)
Sets lazy, true means the result is generated when the result used firstly.
|
void |
setLoginUser(java.lang.String loginUser) |
void |
setParamFile(java.lang.String paramFile)
Sets parameter file of running
CRD to generate result. |
void |
setPassword(java.lang.String password)
Deprecated.
since veriso 13.1, replaced by
setPasswords(Map) |
void |
setPasswords(java.util.Map<java.lang.String,java.lang.String> passwords)
set passwords for jdbc type connections
|
void |
setQueryName(java.lang.String queryName)
Sets query name of this
CRDInfo. |
void |
setQueryType(int queryType)
Sets query type of this
CRDInfo. |
void |
setTaskId(java.lang.String taskId)
Sets task id.
|
void |
setUserName(java.lang.String userName)
Deprecated.
since version 13.1, replaced by
setUserNames(Map) |
void |
setUserNames(java.util.Map<java.lang.String,java.lang.String> userNames)
set user names for jdbc type connections
|
java.lang.String |
toString()
Converts this object to string information.
|
public static final short STATUS_PENDING
public static final short STATUS_BUILDING
public static final short STATUS_UPDATING
public static final short STATUS_COMPLETED
public static final short STATUS_DISABLED
public static final int QUERY_TYPE_QUERY
public static final int QUERY_TYPE_QUEYR
public static final int QUERY_TYPE_STORED_PROCEDURE
public static final int QUERY_TYPE_IMPORTED_SQL
public static final int QUERY_TYPE_USER_DEFINED
public static final int QUERY_TYPE_HIERARCHICAL
public static final int QUERY_TYPE_PARAMETER
public static final int CACHE_TYPE_DETAIL
public static final int CACHE_TYPE_BV
public static final int CACHE_TYPE_BVANDDETAIL
public CRDInfo(java.lang.String catalogPath,
java.lang.String dataSource,
int queryType,
java.lang.String queryName)
CRDInfo with specified catalog path, data source name, query type and query name.catalogPath - catalog path.dataSource - data source.queryType - query type.queryName - query name.public CRDInfo(java.lang.String catalogPath,
java.lang.String dataSource,
int queryType,
java.lang.String queryName,
int cacheType)
public java.lang.String getCatalogName()
CRDInfo.CRDInfo.public java.util.Date getLastModified()
CRDInfo.CRDInfo.public void setLastModified(java.util.Date lastModified)
CRDInfo.lastModified - last modified of this CRDInfo.public long getCreatedTime()
CRDInfo.CRDInfo.public void setCreatedTime(long createdTime)
CRDInfo.createdTime - createdTime of this CRDInfo.public java.lang.String getUserName()
getUserNames()public void setUserName(java.lang.String userName)
setUserNames(Map)userName - user name of data source.public java.lang.String getPassword()
getPasswords()public void setPassword(java.lang.String password)
setPasswords(Map)password - password of data sourcepublic java.util.Map<java.lang.String,java.lang.String> getUserNames()
public void setUserNames(java.util.Map<java.lang.String,java.lang.String> userNames)
userNames - user names map, key is connection name, value is user namepublic java.util.Map<java.lang.String,java.lang.String> getPasswords()
public void setPasswords(java.util.Map<java.lang.String,java.lang.String> passwords)
passwords - password map, key is connection name, value is password.public java.lang.String getParamFile()
CRD to generate result.CRD to generate result.public void setParamFile(java.lang.String paramFile)
CRD to generate result.paramFile - parameter file of running CRD to generate result.public boolean isLazy()
public void setLazy(boolean lazy)
lazy - public java.lang.String getCatalogPath()
CRDInfo.CRDInfo.public java.lang.String getDataSource()
CRDInfo.CRDInfo.public java.lang.String getQueryName()
CRDInfo.CRDInfo.public int getQueryType()
CRDInfo.CRDInfo.public void setCatalogPath(java.lang.String catalogPath)
CRDInfo catalog resource tree real path.catalogPath - catalog path, resource tree real path.public void setDataSource(java.lang.String dataSource)
CRDInfo.dataSource - data source of this CRDInfo.public void setQueryName(java.lang.String queryName)
CRDInfo.queryName - query name of this CRDInfo.public void setQueryType(int queryType)
CRDInfo.queryType - query type of this CRDInfo.public java.util.Map<java.lang.String,java.lang.String[]> getParamValues()
public java.util.Map<java.lang.String,java.lang.String[]> getRuntimeParamValues()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to be comparedpublic java.lang.String getTaskId()
public void setTaskId(java.lang.String taskId)
taskId - task id.public CRDInfoKey getCRDKey()
CRD key.CRD key.public int getCacheType()
public void setCacheType(int cacheType)
public int getRunTimes()
public java.util.Vector<CRDRunDetail> getRunDetails()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getLoginUser()
public void setLoginUser(java.lang.String loginUser)
public short getStatus()
STATUS_PENDING, STATUS_BUILDING, STATUS_BUILDING,
STATUS_UPDATING, STATUS_COMPLETED, or STATUS_DISABLED.