Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_42566577
o2oa
提交
47bda3aa
o2oa
项目概览
weixin_42566577
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
47bda3aa
编写于
12月 06, 2022
作者:
Z
zhourui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove program.
上级
4d560d0c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
5 addition
and
182 deletion
+5
-182
o2server/x_base_core_project/src/main/java/com/x/base/core/project/x_query_assemble_designer.java
...va/com/x/base/core/project/x_query_assemble_designer.java
+1
-1
o2server/x_base_core_project/src/main/java/com/x/base/core/project/x_query_assemble_surface.java
...ava/com/x/base/core/project/x_query_assemble_surface.java
+2
-2
o2server/x_base_core_project/src/main/java/com/x/base/core/project/x_query_service_processing.java
...a/com/x/base/core/project/x_query_service_processing.java
+2
-2
o2server/x_query_core_entity/src/main/java/com/x/query/core/entity/PersistenceProperties.java
...n/java/com/x/query/core/entity/PersistenceProperties.java
+0
-7
o2server/x_query_core_entity/src/main/java/com/x/query/core/entity/program/Argument.java
...c/main/java/com/x/query/core/entity/program/Argument.java
+0
-93
o2server/x_query_core_express/src/main/java/com/x/query/core/express/program/Arguments.java
...main/java/com/x/query/core/express/program/Arguments.java
+0
-77
未找到文件。
o2server/x_base_core_project/src/main/java/com/x/base/core/project/x_query_assemble_designer.java
浏览文件 @
47bda3aa
...
...
@@ -6,7 +6,7 @@ import com.x.base.core.project.annotation.ModuleCategory;
import
com.x.base.core.project.annotation.ModuleType
;
@Module
(
type
=
ModuleType
.
ASSEMBLE
,
category
=
ModuleCategory
.
OFFICIAL
,
name
=
"数据查询设计"
,
packageName
=
"com.x.query.assemble.designer"
,
containerEntities
=
{
"com.x.query.core.entity.
program.Argument"
,
"com.x.query.core.entity.
Item"
,
"com.x.query.core.entity.Query"
,
"com.x.query.core.entity.Item"
,
"com.x.query.core.entity.Query"
,
"com.x.query.core.entity.View"
,
"com.x.query.core.entity.Stat"
,
// "com.x.query.core.entity.Reveal",
"com.x.query.core.entity.neural.Entry"
,
"com.x.query.core.entity.neural.InText"
,
...
...
o2server/x_base_core_project/src/main/java/com/x/base/core/project/x_query_assemble_surface.java
浏览文件 @
47bda3aa
...
...
@@ -6,8 +6,8 @@ import com.x.base.core.project.annotation.ModuleCategory;
import
com.x.base.core.project.annotation.ModuleType
;
@Module
(
type
=
ModuleType
.
ASSEMBLE
,
category
=
ModuleCategory
.
OFFICIAL
,
name
=
"数据查询"
,
packageName
=
"com.x.query.assemble.surface"
,
containerEntities
=
{
"com.x.query.core.entity.
program.Argument"
,
"com.x.query.core.entity.
Item"
,
"com.x.query.core.entity.Query"
,
"com.x.query.core.entity.View"
,
"com.x.query.core.entity.Stat"
,
"com.x.query.core.entity.Item"
,
"com.x.query.core.entity.Query"
,
"com.x.query.core.entity.View"
,
"com.x.query.core.entity.Stat"
,
// "com.x.query.core.entity.Reveal",
// "com.x.query.core.entity.segment.Word", "com.x.query.core.entity.segment.Entry",
"com.x.query.core.entity.neural.Entry"
,
"com.x.query.core.entity.neural.InText"
,
...
...
o2server/x_base_core_project/src/main/java/com/x/base/core/project/x_query_service_processing.java
浏览文件 @
47bda3aa
...
...
@@ -6,8 +6,8 @@ import com.x.base.core.project.annotation.ModuleCategory;
import
com.x.base.core.project.annotation.ModuleType
;
@Module
(
type
=
ModuleType
.
SERVICE
,
category
=
ModuleCategory
.
OFFICIAL
,
name
=
"数据查询服务"
,
packageName
=
"com.x.query.service.processing"
,
containerEntities
=
{
"com.x.query.core.entity.
program.Argument"
,
"com.x.query.core.entity.
Item"
,
"com.x.query.core.entity.Query"
,
"com.x.query.core.entity.View"
,
"com.x.query.core.entity.Stat"
,
"com.x.query.core.entity.Item"
,
"com.x.query.core.entity.Query"
,
"com.x.query.core.entity.View"
,
"com.x.query.core.entity.Stat"
,
// "com.x.query.core.entity.Reveal",
// "com.x.query.core.entity.segment.Word", "com.x.query.core.entity.segment.Entry",
"com.x.query.core.entity.neural.Entry"
,
"com.x.query.core.entity.neural.InText"
,
...
...
o2server/x_query_core_entity/src/main/java/com/x/query/core/entity/PersistenceProperties.java
浏览文件 @
47bda3aa
...
...
@@ -50,13 +50,6 @@ public final class PersistenceProperties extends AbstractPersistenceProperties {
}
public
static
class
Program
{
public
static
class
Argument
{
public
static
final
String
table
=
"QRY_PGM_ARGUMENT"
;
}
}
public
static
class
Neural
{
public
static
class
Model
{
...
...
o2server/x_query_core_entity/src/main/java/com/x/query/core/entity/program/Argument.java
已删除
100644 → 0
浏览文件 @
4d560d0c
package
com.x.query.core.entity.program
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Inheritance
;
import
javax.persistence.InheritanceType
;
import
javax.persistence.Table
;
import
javax.persistence.UniqueConstraint
;
import
org.apache.openjpa.persistence.jdbc.Index
;
import
com.x.base.core.entity.JpaObject
;
import
com.x.base.core.entity.SliceJpaObject
;
import
com.x.base.core.entity.annotation.CheckPersist
;
import
com.x.base.core.entity.annotation.CitationNotExist
;
import
com.x.base.core.entity.annotation.ContainerEntity
;
import
com.x.base.core.entity.annotation.Flag
;
import
com.x.base.core.project.annotation.FieldDescribe
;
import
com.x.query.core.entity.PersistenceProperties
;
import
io.swagger.v3.oas.annotations.media.Schema
;
@Deprecated
(
forRemoval
=
true
)
@Schema
(
name
=
"Argument"
,
description
=
"数据中心参数."
)
@Entity
@ContainerEntity
(
dumpSize
=
1000
,
type
=
ContainerEntity
.
Type
.
content
,
reference
=
ContainerEntity
.
Reference
.
strong
)
@Table
(
name
=
PersistenceProperties
.
Program
.
Argument
.
table
,
uniqueConstraints
=
{
@UniqueConstraint
(
name
=
PersistenceProperties
.
Program
.
Argument
.
table
+
JpaObject
.
IndexNameMiddle
+
JpaObject
.
DefaultUniqueConstraintSuffix
,
columnNames
=
{
JpaObject
.
IDCOLUMN
,
JpaObject
.
CREATETIMECOLUMN
,
JpaObject
.
UPDATETIMECOLUMN
,
JpaObject
.
SEQUENCECOLUMN
})
})
@Inheritance
(
strategy
=
InheritanceType
.
TABLE_PER_CLASS
)
public
class
Argument
extends
SliceJpaObject
{
private
static
final
long
serialVersionUID
=
-
2947673429928571227L
;
private
static
final
String
TABLE
=
PersistenceProperties
.
Program
.
Argument
.
table
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
@FieldDescribe
(
"数据库主键,自动生成."
)
@Id
@Column
(
length
=
length_id
,
name
=
ColumnNamePrefix
+
id_FIELDNAME
)
private
String
id
=
createId
();
/* 以上为 JpaObject 默认字段 */
public
void
onPersist
()
throws
Exception
{
}
/* 更新运行方法 */
/* flag标志位 */
/* Entity 默认字段结束 */
public
static
final
String
name_FIELDNAME
=
"name"
;
@Flag
@FieldDescribe
(
"名称."
)
@Column
(
length
=
length_255B
,
name
=
ColumnNamePrefix
+
name_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
name_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
false
,
simplyString
=
true
,
citationNotExists
=
@CitationNotExist
(
type
=
Argument
.
class
,
fields
=
{
id_FIELDNAME
,
name_FIELDNAME
}))
private
String
name
;
public
static
final
String
stringValue_FIELDNAME
=
"stringValue"
;
@FieldDescribe
(
"业务数据String值01."
)
@Column
(
length
=
length_255B
,
name
=
ColumnNamePrefix
+
stringValue_FIELDNAME
)
@Index
(
name
=
TABLE
+
IndexNameMiddle
+
stringValue_FIELDNAME
)
@CheckPersist
(
allowEmpty
=
true
)
private
String
stringValue
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getStringValue
()
{
return
stringValue
;
}
public
void
setStringValue
(
String
stringValue
)
{
this
.
stringValue
=
stringValue
;
}
}
\ No newline at end of file
o2server/x_query_core_express/src/main/java/com/x/query/core/express/program/Arguments.java
已删除
100644 → 0
浏览文件 @
4d560d0c
package
com.x.query.core.express.program
;
import
com.x.base.core.container.EntityManagerContainer
;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.entity.annotation.CheckPersistType
;
import
com.x.query.core.entity.program.Argument
;
public
class
Arguments
{
private
static
final
String
CRAWLUPDATEWORKCOMPLETED
=
"crawlUpdateWorkCompleted"
;
private
static
final
String
CRAWLUPDATEWORK
=
"crawlUpdateWork"
;
private
static
final
String
CRAWLUPDATECMS
=
"crawlUpdateCms"
;
public
static
String
getCrawlUpdateWorkCompleted
()
throws
Exception
{
return
get
(
CRAWLUPDATEWORKCOMPLETED
,
String
.
class
);
}
public
static
void
setCrawlUpdateWorkCompleted
(
String
value
)
throws
Exception
{
set
(
CRAWLUPDATEWORKCOMPLETED
,
value
,
String
.
class
);
}
public
static
String
getCrawlUpdateWork
()
throws
Exception
{
return
get
(
CRAWLUPDATEWORK
,
String
.
class
);
}
public
static
void
setCrawlUpdateWork
(
String
value
)
throws
Exception
{
set
(
CRAWLUPDATEWORK
,
value
,
String
.
class
);
}
public
static
String
getCrawlUpdateCms
()
throws
Exception
{
return
get
(
CRAWLUPDATECMS
,
String
.
class
);
}
public
static
void
setCrawlUpdateCms
(
String
value
)
throws
Exception
{
set
(
CRAWLUPDATECMS
,
value
,
String
.
class
);
}
private
static
<
T
>
T
get
(
String
name
,
Class
<
T
>
cls
)
throws
Exception
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
Argument
argument
=
emc
.
firstEqual
(
Argument
.
class
,
Argument
.
name_FIELDNAME
,
name
);
if
(
null
==
argument
)
{
return
null
;
}
if
(
String
.
class
.
isAssignableFrom
(
cls
))
{
return
(
T
)
argument
.
getStringValue
();
}
else
{
}
}
return
null
;
}
private
synchronized
static
<
T
>
T
set
(
String
name
,
Object
value
,
Class
<
T
>
cls
)
throws
Exception
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
emc
.
beginTransaction
(
Argument
.
class
);
Argument
argument
=
emc
.
firstEqual
(
Argument
.
class
,
Argument
.
name_FIELDNAME
,
name
);
if
(
null
==
argument
)
{
argument
=
new
Argument
();
argument
.
setName
(
name
);
setValue
(
argument
,
value
,
cls
);
emc
.
persist
(
argument
,
CheckPersistType
.
all
);
}
else
{
setValue
(
argument
,
value
,
cls
);
}
emc
.
commit
();
}
return
null
;
}
private
static
<
T
>
void
setValue
(
Argument
argument
,
Object
value
,
Class
<
T
>
cls
)
throws
Exception
{
if
(
String
.
class
.
isAssignableFrom
(
cls
))
{
argument
.
setStringValue
(
value
.
toString
());
}
else
{
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录