use esflute and update license doc
This commit is contained in:
parent
e8ced1368c
commit
6b079fc8b9
1174 changed files with 122709 additions and 154809 deletions
|
@ -1,26 +0,0 @@
|
|||
# /---------------------------------------------------------------------------
|
||||
# additionalPrimaryKeyMap: (NotRequired - Default map:{})
|
||||
#
|
||||
# If primary key does not exist in your database,
|
||||
# you can set up here as virtual primary key for DBFlute.
|
||||
# And you can use it to view objects too.
|
||||
# The names are treated as case insensitive.
|
||||
#
|
||||
# Example:
|
||||
# map:{
|
||||
# ; PK_MEMBER = map:{
|
||||
# ; tableName = MEMBER ; columnName = MEMBER_ID
|
||||
# }
|
||||
# ; PK_PURCHASE = map:{
|
||||
# ; tableName = PURCHASE ; columnName = PURCHASE_ID
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# *The line that starts with '#' means comment-out.
|
||||
#
|
||||
map:{
|
||||
#; PK_MEMBER = map:{
|
||||
# ; tableName = MEMBER ; columnName = MEMBER_ID
|
||||
#}
|
||||
}
|
||||
# ----------------/
|
|
@ -1,11 +0,0 @@
|
|||
# /---------------------------------------------------------------------------
|
||||
# allClassCopyright: (NotRequired - Default '')
|
||||
#
|
||||
# The copyright for all classes.
|
||||
# This property is NOT map style.
|
||||
# You should specify before your first generating.
|
||||
#
|
||||
#/*
|
||||
# * Copyright(c) DBFlute TestCo.,TestLtd. All Rights Reserved.
|
||||
# */
|
||||
# ----------------/
|
|
@ -51,10 +51,9 @@ map:{
|
|||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o targetContainer: (Required)
|
||||
# The target DI container.
|
||||
# If your target language is 'csharp', you can specify 'seasar' only.
|
||||
# Your possible choices are:
|
||||
#
|
||||
# spring, guice, seasar, cdi
|
||||
# spring, guice, seasar, cdi, lasta_di
|
||||
#
|
||||
; targetContainer = spring
|
||||
# - - - - - - - - - -/
|
||||
|
@ -225,4 +224,4 @@ map:{
|
|||
#; dbfluteSystemFinalTimeZone = GMT
|
||||
# - - - - - - - - - -/
|
||||
}
|
||||
# ----------------/
|
||||
# ----------------/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# /---------------------------------------------------------------------------
|
||||
# includeQueryMap: (NotRequired - Default map:{})
|
||||
# conditionBeanMap: (NotRequired - Default map:{})
|
||||
#
|
||||
# Specification:
|
||||
# map:{
|
||||
|
@ -42,20 +42,24 @@ map:{
|
|||
# [Include]
|
||||
# String columns may not be needed
|
||||
# to be set these condition-keys basically.
|
||||
; GreaterThan = map:{}
|
||||
; LessThan = map:{}
|
||||
; GreaterEqual = map:{}
|
||||
; LessEqual = map:{}
|
||||
#; GreaterThan = map:{}
|
||||
#; LessThan = map:{}
|
||||
#; GreaterEqual = map:{}
|
||||
#; LessEqual = map:{}
|
||||
|
||||
# [Exclude]
|
||||
# Common columns of String type may not be needed
|
||||
# to be set these condition-keys basically.
|
||||
; !NotEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ ; type:LONGVARCHAR ; suffix:_NAME } }
|
||||
; !InScope = map:{ $$ALL$$ = list:{ $$CommonColumn$$ ; type:LONGVARCHAR ; suffix:_NAME } }
|
||||
; !NotInScope = map:{ $$ALL$$ = list:{ $$CommonColumn$$ ; type:LONGVARCHAR ; suffix:_NAME } }
|
||||
; !PrefixSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
; !LikeSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
; !NotLikeSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !NotEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !GreaterThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !LessThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !GreaterEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !LessEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !InScope = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !NotInScope = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !PrefixSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !LikeSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !NotLikeSearch = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
}
|
||||
; Number = map:{
|
||||
# [Include]
|
||||
|
@ -64,15 +68,14 @@ map:{
|
|||
# [Exclude]
|
||||
# VersionNo column may not be needed
|
||||
# to be set these condition-keys basically.
|
||||
; !NotEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ ; DISPLAY_ORDER } }
|
||||
; !GreaterThan = map:{ $$ALL$$ = list:{ $$VersionNo$$ ; DISPLAY_ORDER } }
|
||||
; !LessThan = map:{ $$ALL$$ = list:{ $$VersionNo$$ ; DISPLAY_ORDER } }
|
||||
; !GreaterEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ ; DISPLAY_ORDER } }
|
||||
; !LessEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ ; DISPLAY_ORDER } }
|
||||
# RangeOf only valid just in case
|
||||
#; !NotEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } }
|
||||
#; !GreaterThan = map:{ $$ALL$$ = list:{ $$VersionNo$$ } }
|
||||
#; !LessThan = map:{ $$ALL$$ = list:{ $$VersionNo$$ } }
|
||||
#; !GreaterEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } }
|
||||
#; !LessEqual = map:{ $$ALL$$ = list:{ $$VersionNo$$ } }
|
||||
#; !RangeOf = map:{ $$ALL$$ = list:{ $$VersionNo$$ } }
|
||||
; !InScope = map:{ $$ALL$$ = list:{ $$VersionNo$$ ; DISPLAY_ORDER } }
|
||||
; !NotInScope = map:{ $$ALL$$ = list:{ $$VersionNo$$ ; DISPLAY_ORDER } }
|
||||
#; !InScope = map:{ $$ALL$$ = list:{ $$VersionNo$$ } }
|
||||
#; !NotInScope = map:{ $$ALL$$ = list:{ $$VersionNo$$ } }
|
||||
}
|
||||
; Date = map:{
|
||||
# [Include]
|
||||
|
@ -85,17 +88,12 @@ map:{
|
|||
# [Exclude]
|
||||
# Common columns of Date type may not be needed
|
||||
# to be set these condition-keys basically.
|
||||
; !GreaterThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
; !LessThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
; !GreaterEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
; !LessEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
# RangeOf only valid just in case
|
||||
#; !FromTo = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
; !DateFromTo = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
}
|
||||
; OrderBy = map:{
|
||||
; !Asc = map:{ $$ALL$$ = list:{ type:LONGVARCHAR } }
|
||||
; !Desc = map:{ $$ALL$$ = list:{ type:LONGVARCHAR } }
|
||||
#; !GreaterThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !LessThan = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !GreaterEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !LessEqual = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !FromTo = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
#; !DateFromTo = map:{ $$ALL$$ = list:{ $$CommonColumn$$ } }
|
||||
}
|
||||
}
|
||||
# ----------------/
|
|
@ -106,7 +106,44 @@ map:{
|
|||
# ; isSuppressProcedure=false
|
||||
# }
|
||||
#}
|
||||
|
||||
# o typeMappingMap: (NotRequired - Default map:{NUMERIC=$$AutoMapping$$ ; DECIMAL=$$AutoMapping$$})
|
||||
# If you want to change mappings from default mappings, you can specify your original mappings.
|
||||
# But it is possible that unanticipated problems occurs, so be careful!
|
||||
#; typeMappingMap = map:{
|
||||
# # AutoMapping for Numeric and Decimal, (1-9,0): INTEGER, (10-18,0): BIGINT, else: NUMERIC
|
||||
# ; NUMERIC = $$AutoMapping$$ ; DECIMAL = $$AutoMapping$$
|
||||
#}
|
||||
}
|
||||
# - - - - - - - - - -/
|
||||
}
|
||||
# ----------------/
|
||||
# ----------------/
|
||||
#
|
||||
# Default mapping as follows:
|
||||
# --------------------------------------------------------
|
||||
# | JDBC Type | Java Native | CSharp Native |
|
||||
# | ------------------------------------------------------
|
||||
# | CHAR | java.lang.String | String |
|
||||
# | VARCHAR | java.lang.String | String |
|
||||
# | LONGVARCHAR | java.lang.String | String |
|
||||
# | NUMERIC | java.math.BigDecimal | decimal? |
|
||||
# | DECIMAL | java.math.BigDecimal | decimal? |
|
||||
# | TINYINT | java.lang.Integer | int? |
|
||||
# | SMALLINT | java.lang.Integer | int? |
|
||||
# | INTEGER | java.lang.Integer | int? |
|
||||
# | BIGINT | java.lang.Long | long? |
|
||||
# | REAL | java.math.BigDecimal | decimal? |
|
||||
# | FLOAT | java.math.BigDecimal | decimal? |
|
||||
# | DOUBLE | java.math.BigDecimal | decimal? |
|
||||
# | DATE | java.util.Date | DateTime? |
|
||||
# | TIME | java.sql.Time | DateTime? |
|
||||
# | TIMESTAMP | java.sql.Timestamp | DateTime? |
|
||||
# | BIT | java.lang.Boolean | bool? |
|
||||
# | BOOLEAN | java.lang.Boolean | bool? |
|
||||
# | BINARY | byte[] | byte[] |
|
||||
# | VARBINARY | byte[] | byte[] |
|
||||
# | LONGVARBINARY | byte[] | byte[] |
|
||||
# | BLOB | byte[] | byte[] |
|
||||
# | ARRAY | *Unsupported | *Unsupported |
|
||||
# | UUID | java.util.UUID | *Unsupported |
|
||||
# --------------------------------------------------------
|
||||
|
|
|
@ -3,14 +3,6 @@
|
|||
#
|
||||
# The various settings about dependency injection(DI Container).
|
||||
#
|
||||
# {Java} Seasar Only:
|
||||
# o dbfluteDiconNamespace: (NotRequired - Default 'dbflute')
|
||||
# o dbfluteDiconPackageName (NotRequired - Default '../resources')
|
||||
# o dbfluteDiconFileName: (NotRequired - Default 'dbflute.dicon')
|
||||
# o j2eeDiconResourceName: (NotRequired - Default 'j2ee.dicon')
|
||||
# o dbfluteDiconBeforeJ2eeIncludeDefinitionMap: (NotRequired - Default map:{})
|
||||
# o dbfluteDiconOtherIncludeDefinitionMap: (NotRequired - Default map:{})
|
||||
#
|
||||
# {Java} Spring Only:
|
||||
# o dbfluteBeansPackageName (NotRequired - Default '../resources')
|
||||
# o dbfluteBeansFileName: (NotRequired - Default 'dbfluteBeans.xml')
|
||||
|
@ -18,70 +10,27 @@
|
|||
# o dbfluteBeansDefaultAttribute: (NotRequired - Default null)
|
||||
# o isDBFluteBeansGeneratedAsJavaConfig (NotRequired - Default true since 1.1)
|
||||
#
|
||||
# {Java} Seasar Only:
|
||||
# o dbfluteDiconNamespace: (NotRequired - Default 'dbflute')
|
||||
# o dbfluteDiconPackageName: (NotRequired - Default '../resources')
|
||||
# o dbfluteDiconFileName: (NotRequired - Default 'dbflute.dicon')
|
||||
# o j2eeDiconResourceName: (NotRequired - Default 'j2ee.dicon')
|
||||
#
|
||||
# {Java} Lasta Di Only:
|
||||
# o dbfluteDiXmlNamespace: (NotRequired - Default 'dbflute')
|
||||
# o dbfluteDiXmlPackageName: (NotRequired - Default '../resources')
|
||||
# o dbfluteDiXmlFileName: (NotRequired - Default 'dbflute.xml')
|
||||
# o rdbDiXmlResourceName: (NotRequired - Default 'rdb.xml')
|
||||
#
|
||||
# {CSharp} Quill(CSharp Seasar) Only:
|
||||
# o quillDataSourceName: (NotRequired - Default null)
|
||||
#
|
||||
# *The line that starts with '#' means comment-out.
|
||||
#
|
||||
map:{
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteDiconNamespace: (NotRequired - Default 'dbflute')
|
||||
# The namespace of DBFlute DI configuration.
|
||||
#
|
||||
# @SeasarOnly
|
||||
#; dbfluteDiconNamespace = dbflute
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteDiconPackageName (NotRequired - Default '../resources')
|
||||
# The package name(output directory) of DBFlute DI configuration for Seasar.
|
||||
#
|
||||
# @SeasarOnly
|
||||
#; dbfluteDiconPackageName = ../resources
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteDiconFileName: (NotRequired - Default 'dbflute.dicon')
|
||||
# The file name of DBFlute DI configuration for Seasar.
|
||||
#
|
||||
# @SeasarOnly
|
||||
#; dbfluteDiconFileName = dbflute.dicon
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o j2eeDiconResourceName: (NotRequired - Default 'j2ee.dicon')
|
||||
# The file name of J2EE DI configuration.
|
||||
#
|
||||
# @SeasarOnly
|
||||
#; j2eeDiconResourceName = j2ee.dicon
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteDiconBeforeJ2eeIncludeDefinitionMap: (NotRequired - Default map:{})
|
||||
# The include definition of DBFlute DI configuration before j2ee including.
|
||||
# e.g. map:{ jdbc-xxx.dicon = dummy }
|
||||
#
|
||||
# @SeasarOnly
|
||||
#; dbfluteDiconBeforeJ2eeIncludeDefinitionMap = map:{}
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteDiconOtherIncludeDefinitionMap: (NotRequired - Default map:{})
|
||||
# The other include definition of DBFlute DI configuration.
|
||||
# e.g. map:{ common.dicon = dummy }
|
||||
#
|
||||
# @SeasarOnly
|
||||
#; dbfluteDiconOtherIncludeDefinitionMap = map:{}
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteBeansPackageName (NotRequired - Default '../resources')
|
||||
# The package name(output directory) of DBFlute DI configuration for Spring and Lucy.
|
||||
#
|
||||
# @SpringOnly
|
||||
#; dbfluteBeansPackageName = ../resources
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# ====================================================================================
|
||||
# Spring
|
||||
# ======
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteBeansFileName: (NotRequired - Default 'dbfluteBeans.xml')
|
||||
# The file name of DBFlute DI configuration for Spring and Lucy.
|
||||
|
@ -114,6 +63,87 @@ map:{
|
|||
#; isDBFluteBeansGeneratedAsJavaConfig = false
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteBeansPackageName (NotRequired - Default '../resources')
|
||||
# The package name(output directory) of DBFlute DI configuration for Spring and Lucy.
|
||||
#
|
||||
# @SpringOnly
|
||||
#; dbfluteBeansPackageName = ../resources
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# ====================================================================================
|
||||
# Seasar
|
||||
# ======
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteDiconNamespace: (NotRequired - Default 'dbflute')
|
||||
# The namespace of DBFlute DI configuration for Seasar.
|
||||
#
|
||||
# @SeasarOnly
|
||||
#; dbfluteDiconNamespace = dbflute
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteDiconPackageName: (NotRequired - Default '../resources')
|
||||
# The package name(output directory) of DBFlute DI configuration for Seasar.
|
||||
#
|
||||
# @SeasarOnly
|
||||
#; dbfluteDiconPackageName = ../resources
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteDiconFileName: (NotRequired - Default 'dbflute.dicon')
|
||||
# The file name of DBFlute DI configuration for Seasar.
|
||||
#
|
||||
# @SeasarOnly
|
||||
#; dbfluteDiconFileName = dbflute.dicon
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o j2eeDiconResourceName: (NotRequired - Default 'j2ee.dicon')
|
||||
# The file name of J2EE DI configuration for Seasar.
|
||||
#
|
||||
# @SeasarOnly
|
||||
#; j2eeDiconResourceName = j2ee.dicon
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# ====================================================================================
|
||||
# Lasta Di
|
||||
# ========
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteDiXmlNamespace: (NotRequired - Default 'dbflute')
|
||||
# The namespace of DBFlute DI configuration for Lasta Di.
|
||||
#
|
||||
# @LastaDiOnly
|
||||
#; dbfluteDiXmlNamespace = dbflute
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteDiXmlPackageName: (NotRequired - Default '../resources')
|
||||
# The package name(output directory) of DBFlute DI configuration for Lasta Di.
|
||||
#
|
||||
# @LastaDiOnly
|
||||
#; dbfluteDiXmlPackageName = ../resources
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o dbfluteDiXmlFileName: (NotRequired - Default 'dbflute.xml')
|
||||
# The file name of DBFlute DI configuration for Lasta Di.
|
||||
#
|
||||
# @LastaDiOnly
|
||||
#; dbfluteDiXmlFileName = dbflute.xml
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o rdbDiXmlResourceName: (NotRequired - Default 'rdb.xml')
|
||||
# The file name of relational database DI configuration for Lasta Di.
|
||||
#
|
||||
# @LastaDiOnly
|
||||
#; rdbDiXmlResourceName = rdb.xml
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# ====================================================================================
|
||||
# Quill
|
||||
# =====
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o quillDataSourceName: (NotRequired - Default null)
|
||||
# The data source name of Quill(CSharp Seasar).
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
# /---------------------------------------------------------------------------
|
||||
# documentDefinitionMap: (NotRequired - Default map:{})
|
||||
# documentMap: (NotRequired - Default map:{})
|
||||
#
|
||||
# o documentOutputDirectory (NotRequired - Default './output/doc')
|
||||
# o aliasDelimiterInDbComment (NotRequired - Default '')
|
||||
# o isDbCommentOnAliasBasis (NotRequired - Default false)
|
||||
# o isEntityJavaDocDbCommentValid (NotRequired - Default true)
|
||||
# o isEntityDBMetaDbCommentValid (NotRequired - Default false)
|
||||
# o schemaHtmlFileName (NotRequired - Default 'schema-[project-name].html')
|
||||
# o isSuppressSchemaHtmlOutsideSql (NotRequired - Default false)
|
||||
# o isSuppressSchemaHtmlProcedure (NotRequired - Default false)
|
||||
# o historyHtmlFileName (NotRequired - Default 'history-[project-name].html')
|
||||
# o isCheckColumnDefOrderDiff (NotRequired - Default false)
|
||||
# o isCheckDbCommentDiff (NotRequired - Default false)
|
||||
# o isCheckProcedureDiff (NotRequired - Default false)
|
||||
# o loadDataReverseMap (NotRequired - Default map:{})
|
||||
# o schemaSyncCheckMap (NotRequired - Default map:{})
|
||||
# o documentOutputDirectory: (NotRequired - Default './output/doc')
|
||||
# o aliasDelimiterInDbComment: (NotRequired - Default '')
|
||||
# o isDbCommentOnAliasBasis: (NotRequired - Default false)
|
||||
# o isEntityJavaDocDbCommentValid: (NotRequired - Default true)
|
||||
# o isEntityDBMetaDbCommentValid: (NotRequired - Default false)
|
||||
# o schemaHtmlFileName: (NotRequired - Default 'schema-[project-name].html')
|
||||
# o isSuppressSchemaHtmlOutsideSql: (NotRequired - Default false)
|
||||
# o isSuppressSchemaHtmlProcedure: (NotRequired - Default false)
|
||||
# o historyHtmlFileName: (NotRequired - Default 'history-[project-name].html')
|
||||
# o isCheckColumnDefOrderDiff: (NotRequired - Default false)
|
||||
# o isCheckDbCommentDiff: (NotRequired - Default false)
|
||||
# o isCheckProcedureDiff: (NotRequired - Default false)
|
||||
# o loadDataReverseMap: (NotRequired - Default map:{})
|
||||
# o schemaSyncCheckMap: (NotRequired - Default map:{})
|
||||
# o propertiesHtmlMap: (NotRequired - Default map:{})
|
||||
#
|
||||
# Example:
|
||||
|
@ -54,7 +54,7 @@
|
|||
#
|
||||
map:{
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o documentOutputDirectory (NotRequired - Default './output/doc')
|
||||
# o documentOutputDirectory: (NotRequired - Default './output/doc')
|
||||
# The output directory mainly for SchemaHtml and DataXlsTemplate.
|
||||
# Basically you don't need this.
|
||||
# It is considered of value that it always exists at same plain.
|
||||
|
@ -63,7 +63,7 @@ map:{
|
|||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o aliasDelimiterInDbComment (NotRequired - Default '')
|
||||
# o aliasDelimiterInDbComment: (NotRequired - Default '')
|
||||
# If the alias exists in its DB comment like as follows:
|
||||
# member name : The name of member's full name
|
||||
# you can use the alias in DBFlute world, java-doc, SchemaHTML...
|
||||
|
@ -75,7 +75,7 @@ map:{
|
|||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o isDbCommentOnAliasBasis (NotRequired - Default false)
|
||||
# o isDbCommentOnAliasBasis: (NotRequired - Default false)
|
||||
# Is DB comment on alias basis?
|
||||
# (Is DB comment alias name when it has no alias delimiter?)
|
||||
# This property works with 'aliasDelimiterInDbComment'.
|
||||
|
@ -84,21 +84,21 @@ map:{
|
|||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o isEntityJavaDocDbCommentValid (NotRequired - Default true)
|
||||
# o isEntityJavaDocDbCommentValid: (NotRequired - Default true)
|
||||
# Does it allow DB comment to be on java-doc?
|
||||
#
|
||||
#; isEntityJavaDocDbCommentValid = true
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o isEntityDBMetaDbCommentValid (NotRequired - Default false)
|
||||
# o isEntityDBMetaDbCommentValid: (NotRequired - Default false)
|
||||
# Does it allow DB comment to be on DB meta of entity?
|
||||
#
|
||||
#; isEntityDBMetaDbCommentValid = false
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o schemaHtmlFileName (NotRequired - Default 'schema-[project-name].html')
|
||||
# o schemaHtmlFileName: (NotRequired - Default 'schema-[project-name].html')
|
||||
# The file name (not contain path) of SchemaHtml.
|
||||
# Basically you don't need this.
|
||||
# (For example, when you use Application Behavior, you need this)
|
||||
|
@ -107,7 +107,7 @@ map:{
|
|||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o isSuppressSchemaHtmlOutsideSql (NotRequired - Default false)
|
||||
# o isSuppressSchemaHtmlOutsideSql: (NotRequired - Default false)
|
||||
# Does it remove outsideSql information from SchemaHtml?
|
||||
# Basically you don't need this.
|
||||
# OutsideSql information (related to tables) is very useful.
|
||||
|
@ -116,7 +116,7 @@ map:{
|
|||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o isSuppressSchemaHtmlProcedure (NotRequired - Default false)
|
||||
# o isSuppressSchemaHtmlProcedure: (NotRequired - Default false)
|
||||
# Does it remove procedure information from SchemaHtml?
|
||||
# Basically you don't need this.
|
||||
# Procedure information is very useful.
|
||||
|
@ -125,7 +125,7 @@ map:{
|
|||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o historyHtmlFileName (NotRequired - Default 'history-[project-name].html')
|
||||
# o historyHtmlFileName: (NotRequired - Default 'history-[project-name].html')
|
||||
# The file name (not contain path) of HistoryHtml.
|
||||
# Basically you don't need this.
|
||||
# (For example, when you use Application Behavior, you need this)
|
||||
|
@ -134,7 +134,7 @@ map:{
|
|||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o isCheckColumnDefOrderDiff (NotRequired - Default false)
|
||||
# o isCheckColumnDefOrderDiff: (NotRequired - Default false)
|
||||
# Does it check differences of column-def order?
|
||||
# (except added or deleted columns)
|
||||
#
|
||||
|
@ -142,14 +142,14 @@ map:{
|
|||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o isCheckDbCommentDiff (NotRequired - Default false)
|
||||
# o isCheckDbCommentDiff: (NotRequired - Default false)
|
||||
# Does it check differences of table or column or others comment?
|
||||
#
|
||||
#; isCheckDbCommentDiff = false
|
||||
# - - - - - - - - - -/
|
||||
|
||||
# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# o isCheckProcedureDiff (NotRequired - Default false)
|
||||
# o isCheckProcedureDiff: (NotRequired - Default false)
|
||||
# Does it check differences of procedures?
|
||||
#
|
||||
#; isCheckProcedureDiff = false
|
||||
|
@ -206,16 +206,14 @@ map:{
|
|||
# o isCheckImplicitOverride: does it check implicit override? (NotRequired)
|
||||
#
|
||||
#; propertiesHtmlMap = map:{
|
||||
# ; ApplicationProperties = map:{
|
||||
# ; MaihamaEnv = map:{
|
||||
# ; baseDir = ../src
|
||||
# ; rootFile = $$baseDir$$/main/resources/application_ja.properties
|
||||
# ; rootFile = $$baseDir$$/main/resources/maihama_env.properties
|
||||
# ; environmentMap = map:{
|
||||
# ; integration = $$baseDir$$/integration/resources
|
||||
# ; production = $$baseDir$$/production/resources
|
||||
# }
|
||||
# ; diffIgnoredKeyList = list:{}
|
||||
# ; maskedKeyList = list:{}
|
||||
# ; isEnvOnlyFloatLeft = false
|
||||
# ; diffIgnoredKeyList = list:{} ; maskedKeyList = list:{} ; isEnvOnlyFloatLeft = false
|
||||
# ; extendsPropRequest = null
|
||||
# ; isCheckImplicitOverride = false
|
||||
# }
|
||||
|
|
34
dbflute_fess/dfprop/esfluteMap.dfprop
Normal file
34
dbflute_fess/dfprop/esfluteMap.dfprop
Normal file
|
@ -0,0 +1,34 @@
|
|||
map:{
|
||||
# base package of generated classes
|
||||
; basePackage = org.codelibs.fess.es
|
||||
|
||||
# base path to JSON resource, URL or relative path
|
||||
; basePath = ../src/main/config/es
|
||||
|
||||
# settings for indexes
|
||||
; indexMap = map:{
|
||||
# Index: .fess_user
|
||||
; .fess_user = map:{
|
||||
; package = user
|
||||
; esclientDiFile = esclient.xml
|
||||
; esfluteDiFile = esflute_user.xml
|
||||
}
|
||||
# Index: .fess_user
|
||||
; .fess_config = map:{
|
||||
; package = config
|
||||
; esclientDiFile = esclient.xml
|
||||
; esfluteDiFile = esflute_config.xml
|
||||
}
|
||||
# Index: .fess_user
|
||||
; fess_log = map:{
|
||||
; package = log
|
||||
; esclientDiFile = esclient.xml
|
||||
; esfluteDiFile = esflute_log.xml
|
||||
; mappingMap = map:{
|
||||
; type = map:{
|
||||
; date@dateOptionalTime = LocalDateTime
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,81 +0,0 @@
|
|||
map:{
|
||||
; ElasticsearchFessUserGen = map:{
|
||||
; resourceMap = map:{
|
||||
; resourceType = ELASTICSEARCH
|
||||
; resourceFile = ../src/main/config/es/fess_user.json
|
||||
}
|
||||
; outputMap = map:{
|
||||
; templateFile = unused
|
||||
; outputDirectory = ../src/main/java
|
||||
; package = org.codelibs.fess.es
|
||||
; className = unused
|
||||
}
|
||||
; tableMap = map:{
|
||||
; tablePath = .fess_user -> mappings -> map
|
||||
; mappingMap = map:{
|
||||
; type = map:{
|
||||
; string = String
|
||||
; integer = Integer
|
||||
; long = Long
|
||||
; float = Float
|
||||
; double = Double
|
||||
; boolean = Boolean
|
||||
; date = LocalDateTime
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
; ElasticsearchFessConfigGen = map:{
|
||||
; resourceMap = map:{
|
||||
; resourceType = ELASTICSEARCH
|
||||
; resourceFile = ../src/main/config/es/fess_config.json
|
||||
}
|
||||
; outputMap = map:{
|
||||
; templateFile = unused
|
||||
; outputDirectory = ../src/main/java
|
||||
; package = org.codelibs.fess.es
|
||||
; className = unused
|
||||
}
|
||||
; tableMap = map:{
|
||||
; tablePath = .fess_config -> mappings -> map
|
||||
; mappingMap = map:{
|
||||
; type = map:{
|
||||
; string = String
|
||||
; integer = Integer
|
||||
; long = Long
|
||||
; float = Float
|
||||
; double = Double
|
||||
; boolean = Boolean
|
||||
; date = LocalDateTime
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
; ElasticsearchFessLogGen = map:{
|
||||
; resourceMap = map:{
|
||||
; resourceType = ELASTICSEARCH
|
||||
; resourceFile = ../src/main/config/es/fess_log.json
|
||||
}
|
||||
; outputMap = map:{
|
||||
; templateFile = unused
|
||||
; outputDirectory = ../src/main/java
|
||||
; package = org.codelibs.fess.es
|
||||
; className = unused
|
||||
}
|
||||
; tableMap = map:{
|
||||
; tablePath = fess_log -> mappings -> map
|
||||
; mappingMap = map:{
|
||||
; type = map:{
|
||||
; string = String
|
||||
; integer = Integer
|
||||
; long = Long
|
||||
; float = Float
|
||||
; double = Double
|
||||
; boolean = Boolean
|
||||
; date = LocalDateTime
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
11
dbflute_fess/dfprop/sourceCopyright.dfprop
Normal file
11
dbflute_fess/dfprop/sourceCopyright.dfprop
Normal file
|
@ -0,0 +1,11 @@
|
|||
# /---------------------------------------------------------------------------
|
||||
# sourceCopyright: (NotRequired - Default '')
|
||||
#
|
||||
# The copyright for all class sources.
|
||||
# This property is NOT map style.
|
||||
# You should specify before your first generating.
|
||||
#
|
||||
#/*
|
||||
# * Copyright(c) DBFlute TestCo.,TestLtd. All Rights Reserved.
|
||||
# */
|
||||
# ----------------/
|
|
@ -1,57 +0,0 @@
|
|||
# /---------------------------------------------------------------------------
|
||||
# typeMappingMap: (NotRequired - Default map:{})
|
||||
#
|
||||
# If you want to change mappings from default mappings,
|
||||
# you can specify your original mappings.
|
||||
# But it is possible that unanticipated problems occurs, so be careful!
|
||||
#
|
||||
# About '$$AutoMapping$$':
|
||||
# If the database is Oracle, they often use this.
|
||||
# For example, if you use this for NUMERIC.
|
||||
# o Numeric( 1 - 9 , 0) is mapping to INTEGER
|
||||
# o Numeric(10 - 18 , 0) is mapping to BIGINT
|
||||
# o Numeric(19 - 38 , 0) is mapping to NUMERIC
|
||||
# o Numeric( 1 - 38 , 2) is mapping to NUMERIC
|
||||
#
|
||||
# Example:
|
||||
# map:{
|
||||
# ; INTEGER = java.lang.Integer
|
||||
# ; BIGINT = java.lang.Long
|
||||
# }
|
||||
#
|
||||
# *The line that starts with '#' means comment-out.
|
||||
#
|
||||
map:{
|
||||
# AutoMapping for Numeric and Decimal
|
||||
; NUMERIC = $$AutoMapping$$ ; DECIMAL = $$AutoMapping$$
|
||||
}
|
||||
# ----------------/
|
||||
#
|
||||
# Default mapping as follows:
|
||||
# --------------------------------------------------------
|
||||
# | JDBC Type | Java Native | CSharp Native |
|
||||
# | ------------------------------------------------------
|
||||
# | CHAR | java.lang.String | String |
|
||||
# | VARCHAR | java.lang.String | String |
|
||||
# | LONGVARCHAR | java.lang.String | String |
|
||||
# | NUMERIC | java.math.BigDecimal | decimal? |
|
||||
# | DECIMAL | java.math.BigDecimal | decimal? |
|
||||
# | TINYINT | java.lang.Integer | int? |
|
||||
# | SMALLINT | java.lang.Integer | int? |
|
||||
# | INTEGER | java.lang.Integer | int? |
|
||||
# | BIGINT | java.lang.Long | long? |
|
||||
# | REAL | java.math.BigDecimal | decimal? |
|
||||
# | FLOAT | java.math.BigDecimal | decimal? |
|
||||
# | DOUBLE | java.math.BigDecimal | decimal? |
|
||||
# | DATE | java.util.Date | DateTime? |
|
||||
# | TIME | java.sql.Time | DateTime? |
|
||||
# | TIMESTAMP | java.sql.Timestamp | DateTime? |
|
||||
# | BIT | java.lang.Boolean | bool? |
|
||||
# | BOOLEAN | java.lang.Boolean | bool? |
|
||||
# | BINARY | byte[] | byte[] |
|
||||
# | VARBINARY | byte[] | byte[] |
|
||||
# | LONGVARBINARY | byte[] | byte[] |
|
||||
# | BLOB | byte[] | byte[] |
|
||||
# | ARRAY | *Unsupported | *Unsupported |
|
||||
# | UUID | java.util.UUID | *Unsupported |
|
||||
# --------------------------------------------------------
|
Binary file not shown.
|
@ -1,173 +0,0 @@
|
|||
|
||||
$manager.info("requestList: ${requestList.size()}")
|
||||
|
||||
#foreach ($request in $requestList)
|
||||
#set ($tableMap = $request.tableMap)
|
||||
$request.enableOutputDirectory()
|
||||
$manager.makeDirectory($request.generateDirPath)
|
||||
|
||||
#if ($request.isResourceTypeJsonSchema())
|
||||
#if ($request.requestName == "JsonBeanGen")
|
||||
##
|
||||
## <<< Json Schema Gen >>>
|
||||
##
|
||||
#foreach ($table in $request.tableList)
|
||||
#set ($path = "${request.generateDirPath}/bean/bs/Bs${table.camelizedName}.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./json/BsJsonBean.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/bean/ex/${table.camelizedName}.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
#if (!$files.file(${generator.outputPath},$path).exists())
|
||||
$generator.parse("./json/ExJsonBean.vm", $path, "", "")
|
||||
#end
|
||||
#end
|
||||
#end
|
||||
#elseif ($request.isResourceTypeSolr())
|
||||
#if ($request.requestName == "SolrBeanGen")
|
||||
##
|
||||
## <<< Solr (Xml) Gen >>>
|
||||
##
|
||||
#set ($table = $request.table)
|
||||
#set ($path = "${request.generateDirPath}/bean/bs/${tableMap.baseBeanClassName}.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./solr/BsSolrBean.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/bean/ex/${tableMap.extendedBeanClassName}.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
#if (!$files.file(${generator.outputPath},$path).exists())
|
||||
$generator.parse("./solr/ExSolrBean.vm", $path, "", "")
|
||||
#end
|
||||
#end
|
||||
#elseif ($request.isResourceTypeElasticsearch())
|
||||
#if ($request.requestName.startsWith("Elasticsearch"))
|
||||
##
|
||||
## <<< Elasticsearch Schema Gen >>>
|
||||
##
|
||||
#foreach ($table in $request.tableList)
|
||||
#set ($path = "${request.generateDirPath}/bsentity/dbmeta/${table.camelizedName}Dbm.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/DBMeta.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/bsentity/Bs${table.camelizedName}.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/BsEntity.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/exentity/${table.camelizedName}.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
#if (!$files.file(${generator.outputPath},$path).exists())
|
||||
$generator.parse("./elasticsearch/ExEntity.vm", $path, "", "")
|
||||
#end
|
||||
|
||||
#set ($path = "${request.generateDirPath}/cbean/bs/Bs${table.camelizedName}CB.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/BsConditionBean.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/cbean/${table.camelizedName}CB.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
#if (!$files.file(${generator.outputPath},$path).exists())
|
||||
$generator.parse("./elasticsearch/ExConditionBean.vm", $path, "", "")
|
||||
#end
|
||||
|
||||
#set ($path = "${request.generateDirPath}/cbean/cq/bs/Bs${table.camelizedName}CQ.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/BsConditionQuery.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/cbean/cq/${table.camelizedName}CQ.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
#if (!$files.file(${generator.outputPath},$path).exists())
|
||||
$generator.parse("./elasticsearch/ExConditionQuery.vm", $path, "", "")
|
||||
#end
|
||||
|
||||
#set ($path = "${request.generateDirPath}/cbean/cf/bs/Bs${table.camelizedName}CF.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/BsConditionFilter.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/cbean/cf/${table.camelizedName}CF.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
#if (!$files.file(${generator.outputPath},$path).exists())
|
||||
$generator.parse("./elasticsearch/ExConditionFilter.vm", $path, "", "")
|
||||
#end
|
||||
|
||||
#set ($path = "${request.generateDirPath}/bsbhv/Bs${table.camelizedName}Bhv.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/BsBehavior.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/exbhv/${table.camelizedName}Bhv.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
#if (!$files.file(${generator.outputPath},$path).exists())
|
||||
$generator.parse("./elasticsearch/ExBehavior.vm", $path, "", "")
|
||||
#end
|
||||
#end
|
||||
|
||||
#if ($request.requestName == "ElasticsearchFessConfigGen")
|
||||
#set ($path = "${request.generateDirPath}/cbean/bs/AbstractConditionBean.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/AbstractConditionBean.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/cbean/cq/bs/AbstractConditionQuery.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/AbstractConditionQuery.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/cbean/cf/bs/AbstractConditionFilter.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/AbstractConditionFilter.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/bsentity/AbstractEntity.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/AbstractEntity.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/bsbhv/AbstractBehavior.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/AbstractBehavior.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/cbean/result/EsPagingResultBean.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/EsPagingResultBean.vm", $path, "", "")
|
||||
|
||||
#set ($path = "${request.generateDirPath}/cbean/sqlclause/SqlClauseEs.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse("./elasticsearch/SqlClauseEs.vm", $path, "", "")
|
||||
#end
|
||||
#end
|
||||
#else
|
||||
##
|
||||
## <<< Normal Gen >>>
|
||||
##
|
||||
#if ($request.isOnlyOneTable())
|
||||
#set ($table = $request.table)
|
||||
$request.info("parse('${request.generateFilePath}')")
|
||||
$generator.parse($request.templatePath, $request.generateFilePath, "", "")
|
||||
#else
|
||||
#foreach ($table in $request.tableList)
|
||||
#set ($path = "${request.generateDirPath}/${table.camelizedName}.java")
|
||||
$manager.makeDirectory($path)
|
||||
$request.info("parse('${path}')")
|
||||
$generator.parse($request.templatePath, $path, "", "")
|
||||
#end
|
||||
#end
|
||||
#end
|
||||
|
||||
#end
|
|
@ -1,498 +0,0 @@
|
|||
package ${request.package}.bsbhv;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import ${request.package}.bsentity.AbstractEntity;
|
||||
import ${request.package}.bsentity.AbstractEntity.DocMeta;
|
||||
import ${request.package}.bsentity.AbstractEntity.RequestOptionCall;
|
||||
import ${request.package}.cbean.bs.AbstractConditionBean;
|
||||
import ${request.package}.cbean.result.EsPagingResultBean;
|
||||
import org.dbflute.Entity;
|
||||
import org.dbflute.bhv.AbstractBehaviorWritable;
|
||||
import org.dbflute.bhv.readable.EntityRowHandler;
|
||||
import org.dbflute.bhv.writable.DeleteOption;
|
||||
import org.dbflute.bhv.writable.InsertOption;
|
||||
import org.dbflute.bhv.writable.UpdateOption;
|
||||
import org.dbflute.cbean.ConditionBean;
|
||||
import org.dbflute.cbean.coption.CursorSelectOption;
|
||||
import org.dbflute.cbean.result.ListResultBean;
|
||||
import org.dbflute.exception.IllegalBehaviorStateException;
|
||||
import org.dbflute.util.DfTypeUtil;
|
||||
import org.elasticsearch.action.bulk.BulkItemResponse;
|
||||
import org.elasticsearch.action.bulk.BulkRequestBuilder;
|
||||
import org.elasticsearch.action.bulk.BulkResponse;
|
||||
import org.elasticsearch.action.count.CountRequestBuilder;
|
||||
import org.elasticsearch.action.delete.DeleteRequestBuilder;
|
||||
import org.elasticsearch.action.delete.DeleteResponse;
|
||||
import org.elasticsearch.action.index.IndexRequestBuilder;
|
||||
import org.elasticsearch.action.index.IndexResponse;
|
||||
import org.elasticsearch.action.search.SearchRequestBuilder;
|
||||
import org.elasticsearch.action.search.SearchResponse;
|
||||
import org.elasticsearch.action.search.SearchType;
|
||||
import org.elasticsearch.action.update.UpdateRequestBuilder;
|
||||
import org.elasticsearch.client.Client;
|
||||
import org.elasticsearch.search.SearchHit;
|
||||
import org.elasticsearch.search.SearchHits;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public abstract class AbstractBehavior<ENTITY extends Entity, CB extends ConditionBean> extends AbstractBehaviorWritable<ENTITY, CB> {
|
||||
|
||||
@Resource
|
||||
protected Client client;
|
||||
|
||||
protected int sizeForDelete = 100;
|
||||
|
||||
protected String scrollForDelete = "1m";
|
||||
|
||||
protected int sizeForCursor = 100;
|
||||
|
||||
protected String scrollForCursor = "1m";
|
||||
|
||||
protected abstract String asEsIndex();
|
||||
|
||||
protected abstract String asEsIndexType();
|
||||
|
||||
protected abstract String asEsSearchType();
|
||||
|
||||
protected abstract <RESULT extends ENTITY> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType);
|
||||
|
||||
@Override
|
||||
protected int delegateSelectCountUniquely(final ConditionBean cb) {
|
||||
// TODO check response and cast problem
|
||||
final CountRequestBuilder builder = client.prepareCount(asEsIndex()).setTypes(asEsSearchType());
|
||||
return (int) ((AbstractConditionBean) cb).build(builder).execute().actionGet().getCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <RESULT extends ENTITY> List<RESULT> delegateSelectList(final ConditionBean cb, final Class<? extends RESULT> entityType) {
|
||||
// TODO check response
|
||||
final SearchRequestBuilder builder = client.prepareSearch(asEsIndex()).setTypes(asEsSearchType());
|
||||
final int from;
|
||||
final int size;
|
||||
if (cb.isFetchScopeEffective()) {
|
||||
from = cb.getFetchStartIndex();
|
||||
size = cb.getFetchSize();
|
||||
} else {
|
||||
from = 0;
|
||||
size = 10;
|
||||
}
|
||||
builder.setFrom(from);
|
||||
builder.setSize(size);
|
||||
((AbstractConditionBean) cb).request().build(builder);
|
||||
final SearchResponse response = ((AbstractConditionBean) cb).build(builder).execute().actionGet();
|
||||
|
||||
final EsPagingResultBean<RESULT> list = new EsPagingResultBean<>();
|
||||
final SearchHits searchHits = response.getHits();
|
||||
searchHits.forEach(hit -> {
|
||||
final Map<String, Object> source = hit.getSource();
|
||||
final RESULT entity = createEntity(source, entityType);
|
||||
final DocMeta docMeta = ((AbstractEntity) entity).asDocMeta();
|
||||
docMeta.id(hit.getId());
|
||||
docMeta.version(hit.getVersion());
|
||||
list.add(entity);
|
||||
});
|
||||
|
||||
list.setPageSize(size);
|
||||
list.setAllRecordCount((int) searchHits.totalHits());
|
||||
list.setCurrentPageNumber(cb.getFetchPageNumber());
|
||||
|
||||
list.setTook(response.getTookInMillis());
|
||||
list.setTotalShards(response.getTotalShards());
|
||||
list.setSuccessfulShards(response.getSuccessfulShards());
|
||||
list.setFailedShards(response.getFailedShards());
|
||||
// TODO others
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <RESULT extends ENTITY> void helpSelectCursorHandlingByPaging(CB cb, EntityRowHandler<RESULT> handler,
|
||||
Class<? extends RESULT> entityType, CursorSelectOption option) {
|
||||
delegateSelectCursor(cb, handler, entityType);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <RESULT extends ENTITY> void delegateSelectCursor(final ConditionBean cb, final EntityRowHandler<RESULT> handler,
|
||||
final Class<? extends RESULT> entityType) {
|
||||
delegateBulkRequest(cb, searchHits -> {
|
||||
searchHits.forEach(hit -> {
|
||||
if (handler.isBreakCursor()) {
|
||||
return;
|
||||
}
|
||||
final Map<String, Object> source = hit.getSource();
|
||||
final RESULT entity = createEntity(source, entityType);
|
||||
final DocMeta docMeta = ((AbstractEntity) entity).asDocMeta();
|
||||
docMeta.id(hit.getId());
|
||||
docMeta.version(hit.getVersion());
|
||||
handler.handle(entity);
|
||||
});
|
||||
|
||||
return !handler.isBreakCursor();
|
||||
});
|
||||
}
|
||||
|
||||
protected <RESULT extends ENTITY> void delegateSelectBulk(final ConditionBean cb, final EntityRowHandler<List<RESULT>> handler,
|
||||
final Class<? extends RESULT> entityType) {
|
||||
assertCBStateValid(cb);
|
||||
assertObjectNotNull("entityRowHandler", handler);
|
||||
assertSpecifyDerivedReferrerEntityProperty(cb, entityType);
|
||||
assertObjectNotNull("entityRowHandler", handler);
|
||||
delegateBulkRequest(cb, searchHits -> {
|
||||
List<RESULT> list = new ArrayList<>();
|
||||
searchHits.forEach(hit -> {
|
||||
final Map<String, Object> source = hit.getSource();
|
||||
final RESULT entity = createEntity(source, entityType);
|
||||
final DocMeta docMeta = ((AbstractEntity) entity).asDocMeta();
|
||||
docMeta.id(hit.getId());
|
||||
docMeta.version(hit.getVersion());
|
||||
list.add(entity);
|
||||
});
|
||||
|
||||
handler.handle(list);
|
||||
return !handler.isBreakCursor();
|
||||
});
|
||||
}
|
||||
|
||||
protected void delegateBulkRequest(final ConditionBean cb, Function<SearchHits, Boolean> handler) {
|
||||
final SearchRequestBuilder builder = client.prepareSearch(asEsIndex()).setTypes(asEsIndexType()).setSearchType(SearchType.SCAN)
|
||||
.setScroll(scrollForCursor).setSize(sizeForCursor);
|
||||
((AbstractConditionBean) cb).request().build(builder);
|
||||
final SearchResponse response = ((AbstractConditionBean) cb).build(builder).execute().actionGet();
|
||||
|
||||
String scrollId = response.getScrollId();
|
||||
while (scrollId != null) {
|
||||
final SearchResponse scrollResponse = client.prepareSearchScroll(scrollId).setScroll(scrollForDelete).execute().actionGet();
|
||||
scrollId = scrollResponse.getScrollId();
|
||||
final SearchHits searchHits = scrollResponse.getHits();
|
||||
final SearchHit[] hits = searchHits.getHits();
|
||||
if (hits.length == 0) {
|
||||
scrollId = null;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!handler.apply(searchHits)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Number doReadNextVal() {
|
||||
final String msg = "This table is NOT related to sequence: " + asEsIndexType();
|
||||
throw new UnsupportedOperationException(msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <RESULT extends Entity> ListResultBean<RESULT> createListResultBean(final ConditionBean cb, final List<RESULT> selectedList) {
|
||||
if (selectedList instanceof EsPagingResultBean) {
|
||||
return (ListResultBean<RESULT>) selectedList;
|
||||
}
|
||||
throw new IllegalBehaviorStateException("selectedList is not EsPagingResultBean.");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int delegateInsert(final Entity entity, final InsertOption<? extends ConditionBean> option) {
|
||||
final AbstractEntity esEntity = (AbstractEntity) entity;
|
||||
IndexRequestBuilder builder = createInsertRequest(esEntity);
|
||||
|
||||
final IndexResponse response = builder.execute().actionGet();
|
||||
esEntity.asDocMeta().id(response.getId());
|
||||
return response.isCreated() ? 1 : 0;
|
||||
}
|
||||
|
||||
protected IndexRequestBuilder createInsertRequest(final AbstractEntity esEntity) {
|
||||
final IndexRequestBuilder builder = client.prepareIndex(asEsIndex(), asEsIndexType()).setSource(esEntity.toSource());
|
||||
final RequestOptionCall<IndexRequestBuilder> indexOption = esEntity.asDocMeta().indexOption();
|
||||
if (indexOption != null) {
|
||||
indexOption.callback(builder);
|
||||
}
|
||||
return builder;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int delegateUpdate(final Entity entity, final UpdateOption<? extends ConditionBean> option) {
|
||||
final AbstractEntity esEntity = (AbstractEntity) entity;
|
||||
final IndexRequestBuilder builder = createUpdateRequest(esEntity);
|
||||
|
||||
final IndexResponse response = builder.execute().actionGet();
|
||||
long version = response.getVersion();
|
||||
if (version != -1) {
|
||||
esEntity.asDocMeta().version(version);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
protected IndexRequestBuilder createUpdateRequest(final AbstractEntity esEntity) {
|
||||
final IndexRequestBuilder builder =
|
||||
client.prepareIndex(asEsIndex(), asEsIndexType(), esEntity.asDocMeta().id()).setSource(esEntity.toSource());
|
||||
final RequestOptionCall<IndexRequestBuilder> indexOption = esEntity.asDocMeta().indexOption();
|
||||
if (indexOption != null) {
|
||||
indexOption.callback(builder);
|
||||
}
|
||||
final Long version = esEntity.asDocMeta().version();
|
||||
if (version != null && version.longValue() != -1) {
|
||||
builder.setVersion(version);
|
||||
}
|
||||
return builder;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int delegateDelete(final Entity entity, final DeleteOption<? extends ConditionBean> option) {
|
||||
final AbstractEntity esEntity = (AbstractEntity) entity;
|
||||
final DeleteRequestBuilder builder = createDeleteRequest(esEntity);
|
||||
|
||||
final DeleteResponse response = builder.execute().actionGet();
|
||||
return response.isFound() ? 1 : 0;
|
||||
}
|
||||
|
||||
protected DeleteRequestBuilder createDeleteRequest(final AbstractEntity esEntity) {
|
||||
final DeleteRequestBuilder builder = client.prepareDelete(asEsIndex(), asEsIndexType(), esEntity.asDocMeta().id());
|
||||
final RequestOptionCall<DeleteRequestBuilder> deleteOption = esEntity.asDocMeta().deleteOption();
|
||||
if (deleteOption != null) {
|
||||
deleteOption.callback(builder);
|
||||
}
|
||||
return builder;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int delegateQueryDelete(final ConditionBean cb, final DeleteOption<? extends ConditionBean> option) {
|
||||
final SearchRequestBuilder builder = client.prepareSearch(asEsIndex()).setTypes(asEsIndexType()).setSearchType(SearchType.SCAN)
|
||||
.setScroll(scrollForDelete).setSize(sizeForDelete);
|
||||
((AbstractConditionBean) cb).request().build(builder);
|
||||
final SearchResponse response = ((AbstractConditionBean) cb).build(builder).execute().actionGet();
|
||||
|
||||
int count = 0;
|
||||
String scrollId = response.getScrollId();
|
||||
while (scrollId != null) {
|
||||
final SearchResponse scrollResponse = client.prepareSearchScroll(scrollId).setScroll(scrollForDelete).execute().actionGet();
|
||||
scrollId = scrollResponse.getScrollId();
|
||||
final SearchHits searchHits = scrollResponse.getHits();
|
||||
final SearchHit[] hits = searchHits.getHits();
|
||||
if (hits.length == 0) {
|
||||
scrollId = null;
|
||||
break;
|
||||
}
|
||||
|
||||
final BulkRequestBuilder bulkRequest = client.prepareBulk();
|
||||
for (final SearchHit hit : hits) {
|
||||
bulkRequest.add(client.prepareDelete(asEsIndex(), asEsIndexType(), hit.getId()));
|
||||
}
|
||||
count += hits.length;
|
||||
final BulkResponse bulkResponse = bulkRequest.execute().actionGet();
|
||||
if (bulkResponse.hasFailures()) {
|
||||
throw new IllegalBehaviorStateException(bulkResponse.buildFailureMessage());
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
protected int[] delegateBatchInsert(final List<? extends Entity> entityList, final InsertOption<? extends ConditionBean> option) {
|
||||
if (entityList.isEmpty()) {
|
||||
return new int[] {};
|
||||
}
|
||||
return delegateBatchRequest(entityList, esEntity -> {
|
||||
return createInsertRequest(esEntity);
|
||||
});
|
||||
}
|
||||
|
||||
protected int[] delegateBatchUpdate(List<? extends Entity> entityList, UpdateOption<? extends ConditionBean> option) {
|
||||
if (entityList.isEmpty()) {
|
||||
return new int[] {};
|
||||
}
|
||||
return delegateBatchRequest(entityList, esEntity -> {
|
||||
return createUpdateRequest(esEntity);
|
||||
});
|
||||
}
|
||||
|
||||
protected int[] delegateBatchDelete(List<? extends Entity> entityList, DeleteOption<? extends ConditionBean> option) {
|
||||
if (entityList.isEmpty()) {
|
||||
return new int[] {};
|
||||
}
|
||||
return delegateBatchRequest(entityList, esEntity -> {
|
||||
return createDeleteRequest(esEntity);
|
||||
});
|
||||
}
|
||||
|
||||
protected <BUILDER> int[] delegateBatchRequest(final List<? extends Entity> entityList, Function<AbstractEntity, BUILDER> call) {
|
||||
final BulkList<? extends Entity> bulkList = (BulkList<? extends Entity>) entityList;
|
||||
final BulkRequestBuilder bulkBuilder = client.prepareBulk();
|
||||
for (final Entity entity : entityList) {
|
||||
final AbstractEntity esEntity = (AbstractEntity) entity;
|
||||
BUILDER builder = call.apply(esEntity);
|
||||
if (builder instanceof IndexRequestBuilder) {
|
||||
bulkBuilder.add((IndexRequestBuilder) builder);
|
||||
} else if (builder instanceof UpdateRequestBuilder) {
|
||||
bulkBuilder.add((UpdateRequestBuilder) builder);
|
||||
} else if (builder instanceof DeleteRequestBuilder) {
|
||||
bulkBuilder.add((DeleteRequestBuilder) builder);
|
||||
}
|
||||
}
|
||||
final RequestOptionCall<BulkRequestBuilder> builderCall = bulkList.getCall();
|
||||
if (builderCall != null) {
|
||||
builderCall.callback(bulkBuilder);
|
||||
}
|
||||
|
||||
final BulkResponse response = bulkBuilder.execute().actionGet();
|
||||
final BulkItemResponse[] itemResponses = response.getItems();
|
||||
if (itemResponses.length != entityList.size()) {
|
||||
throw new IllegalStateException("Invalid response size: " + itemResponses.length + " != " + entityList.size());
|
||||
}
|
||||
final int[] results = new int[itemResponses.length];
|
||||
for (int i = 0; i < itemResponses.length; i++) {
|
||||
final BulkItemResponse itemResponse = itemResponses[i];
|
||||
final Entity entity = entityList.get(i);
|
||||
if (entity instanceof AbstractEntity) {
|
||||
((AbstractEntity) entity).asDocMeta().id(itemResponse.getId());
|
||||
}
|
||||
results[i] = itemResponse.isFailed() ? 0 : 1;
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected UpdateOption<CB> createPlainUpdateOption() {
|
||||
UpdateOption<CB> updateOption = new UpdateOption<CB>();
|
||||
updateOption.xtoBeCompatibleBatchUpdateDefaultEveryColumn();
|
||||
return updateOption;
|
||||
}
|
||||
|
||||
public static String[] toStringArray(final Object value) {
|
||||
if (value instanceof String[]) {
|
||||
return (String[]) value;
|
||||
} else if (value instanceof List) {
|
||||
return ((List<?>) value).stream().map(v -> v.toString()).toArray(n -> new String[n]);
|
||||
}
|
||||
String str = DfTypeUtil.toString(value);
|
||||
if (str == null) {
|
||||
return null;
|
||||
}
|
||||
return new String[] { str };
|
||||
}
|
||||
|
||||
public static class BulkList<E> implements List<E> {
|
||||
|
||||
private final List<E> parent;
|
||||
|
||||
private final RequestOptionCall<BulkRequestBuilder> call;
|
||||
|
||||
public BulkList(final List<E> parent, final RequestOptionCall<BulkRequestBuilder> call) {
|
||||
this.parent = parent;
|
||||
this.call = call;
|
||||
}
|
||||
|
||||
public int size() {
|
||||
return parent.size();
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return parent.isEmpty();
|
||||
}
|
||||
|
||||
public boolean contains(final Object o) {
|
||||
return parent.contains(o);
|
||||
}
|
||||
|
||||
public Iterator<E> iterator() {
|
||||
return parent.iterator();
|
||||
}
|
||||
|
||||
public Object[] toArray() {
|
||||
return parent.toArray();
|
||||
}
|
||||
|
||||
public <T> T[] toArray(final T[] a) {
|
||||
return parent.toArray(a);
|
||||
}
|
||||
|
||||
public boolean add(final E e) {
|
||||
return parent.add(e);
|
||||
}
|
||||
|
||||
public boolean remove(final Object o) {
|
||||
return parent.remove(o);
|
||||
}
|
||||
|
||||
public boolean containsAll(final Collection<?> c) {
|
||||
return parent.containsAll(c);
|
||||
}
|
||||
|
||||
public boolean addAll(final Collection<? extends E> c) {
|
||||
return parent.addAll(c);
|
||||
}
|
||||
|
||||
public boolean addAll(final int index, final Collection<? extends E> c) {
|
||||
return parent.addAll(index, c);
|
||||
}
|
||||
|
||||
public boolean removeAll(final Collection<?> c) {
|
||||
return parent.removeAll(c);
|
||||
}
|
||||
|
||||
public boolean retainAll(final Collection<?> c) {
|
||||
return parent.retainAll(c);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
parent.clear();
|
||||
}
|
||||
|
||||
public boolean equals(final Object o) {
|
||||
return parent.equals(o);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return parent.hashCode();
|
||||
}
|
||||
|
||||
public E get(final int index) {
|
||||
return parent.get(index);
|
||||
}
|
||||
|
||||
public E set(final int index, final E element) {
|
||||
return parent.set(index, element);
|
||||
}
|
||||
|
||||
public void add(final int index, final E element) {
|
||||
parent.add(index, element);
|
||||
}
|
||||
|
||||
public E remove(final int index) {
|
||||
return parent.remove(index);
|
||||
}
|
||||
|
||||
public int indexOf(final Object o) {
|
||||
return parent.indexOf(o);
|
||||
}
|
||||
|
||||
public int lastIndexOf(final Object o) {
|
||||
return parent.lastIndexOf(o);
|
||||
}
|
||||
|
||||
public ListIterator<E> listIterator() {
|
||||
return parent.listIterator();
|
||||
}
|
||||
|
||||
public ListIterator<E> listIterator(final int index) {
|
||||
return parent.listIterator(index);
|
||||
}
|
||||
|
||||
public List<E> subList(final int fromIndex, final int toIndex) {
|
||||
return parent.subList(fromIndex, toIndex);
|
||||
}
|
||||
|
||||
public RequestOptionCall<BulkRequestBuilder> getCall() {
|
||||
return call;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,681 +0,0 @@
|
|||
package ${request.package}.cbean.bs;
|
||||
|
||||
import ${request.package}.cbean.sqlclause.SqlClauseEs;
|
||||
import org.dbflute.cbean.ConditionBean;
|
||||
import org.dbflute.cbean.chelper.HpCBPurpose;
|
||||
import org.dbflute.cbean.chelper.HpColumnSpHandler;
|
||||
import org.dbflute.cbean.coption.CursorSelectOption;
|
||||
import org.dbflute.cbean.coption.ScalarSelectOption;
|
||||
import org.dbflute.cbean.coption.StatementConfigCall;
|
||||
import org.dbflute.cbean.dream.SpecifiedColumn;
|
||||
import org.dbflute.cbean.exception.ConditionBeanExceptionThrower;
|
||||
import org.dbflute.cbean.ordering.OrderByBean;
|
||||
import org.dbflute.cbean.paging.PagingBean;
|
||||
import org.dbflute.cbean.paging.PagingInvoker;
|
||||
import org.dbflute.cbean.scoping.AndQuery;
|
||||
import org.dbflute.cbean.scoping.ModeQuery;
|
||||
import org.dbflute.cbean.scoping.OrQuery;
|
||||
import org.dbflute.cbean.scoping.UnionQuery;
|
||||
import org.dbflute.cbean.sqlclause.SqlClause;
|
||||
import org.dbflute.cbean.sqlclause.orderby.OrderByClause;
|
||||
import org.dbflute.dbmeta.DBMeta;
|
||||
import org.dbflute.dbmeta.accessory.DerivedTypeHandler;
|
||||
import org.dbflute.jdbc.StatementConfig;
|
||||
import org.dbflute.system.DBFluteSystem;
|
||||
import org.dbflute.twowaysql.style.BoundDateDisplayStyle;
|
||||
import org.elasticsearch.action.count.CountRequestBuilder;
|
||||
import org.elasticsearch.action.search.SearchRequestBuilder;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public abstract class AbstractConditionBean implements ConditionBean {
|
||||
|
||||
protected int _safetyMaxResultSize;
|
||||
|
||||
protected final SqlClause _sqlClause = new SqlClauseEs(asTableDbName());
|
||||
|
||||
private SearchRequestParams _searchRequestParams = new SearchRequestParams();
|
||||
|
||||
public abstract CountRequestBuilder build(CountRequestBuilder builder);
|
||||
|
||||
public abstract SearchRequestBuilder build(SearchRequestBuilder builder);
|
||||
|
||||
@Override
|
||||
public boolean isPaging() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPagingCountLater() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPagingReSelect() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paging(int pageSize, int pageNumber) {
|
||||
if (pageSize <= 0) {
|
||||
throwPagingPageSizeNotPlusException(pageSize, pageNumber);
|
||||
}
|
||||
fetchFirst(pageSize);
|
||||
xfetchPage(pageNumber);
|
||||
}
|
||||
|
||||
protected void throwPagingPageSizeNotPlusException(int pageSize, int pageNumber) {
|
||||
createCBExThrower().throwPagingPageSizeNotPlusException(this, pageSize, pageNumber);
|
||||
}
|
||||
|
||||
protected ConditionBeanExceptionThrower createCBExThrower() {
|
||||
return new ConditionBeanExceptionThrower();
|
||||
}
|
||||
|
||||
protected void assertObjectNotNull(String variableName, Object value) {
|
||||
if (variableName == null) {
|
||||
String msg = "The value should not be null: variableName=null value=" + value;
|
||||
throw new IllegalArgumentException(msg);
|
||||
}
|
||||
if (value == null) {
|
||||
String msg = "The value should not be null: variableName=" + variableName;
|
||||
throw new IllegalArgumentException(msg);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xsetPaging(boolean paging) {
|
||||
// Do nothing because this is unsupported on ConditionBean.
|
||||
// And it is possible that this method is called by PagingInvoker.
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enablePagingCountLater() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disablePagingCountLater() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enablePagingReSelect() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disablePagingReSelect() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public PagingBean fetchFirst(int fetchSize) {
|
||||
getSqlClause().fetchFirst(fetchSize);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PagingBean xfetchScope(int fetchStartIndex, int fetchSize) {
|
||||
getSqlClause().fetchScope(fetchStartIndex, fetchSize);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PagingBean xfetchPage(int fetchPageNumber) {
|
||||
getSqlClause().fetchPage(fetchPageNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
protected String ln() {
|
||||
return DBFluteSystem.ln();
|
||||
}
|
||||
|
||||
@Override
|
||||
public <ENTITY> PagingInvoker<ENTITY> createPagingInvoker(String tableDbName) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getFetchStartIndex() {
|
||||
return getSqlClause().getFetchStartIndex();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getFetchSize() {
|
||||
return getSqlClause().getFetchSize();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getFetchPageNumber() {
|
||||
return getSqlClause().getFetchPageNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPageStartIndex() {
|
||||
return getSqlClause().getPageStartIndex();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPageEndIndex() {
|
||||
return getSqlClause().getPageEndIndex();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFetchScopeEffective() {
|
||||
return getSqlClause().isFetchScopeEffective();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getFetchNarrowingSkipStartIndex() {
|
||||
return getPageStartIndex();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getFetchNarrowingLoopCount() {
|
||||
return getFetchSize();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFetchNarrowingSkipStartIndexEffective() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFetchNarrowingLoopCountEffective() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFetchNarrowingEffective() {
|
||||
return getSqlClause().isFetchNarrowingEffective();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xdisableFetchNarrowing() {
|
||||
// no need to disable in ConditionBean, basically for OutsideSql
|
||||
String msg = "This method is unsupported on ConditionBean!";
|
||||
throw new UnsupportedOperationException(msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xenableIgnoredFetchNarrowing() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void checkSafetyResult(int safetyMaxResultSize) {
|
||||
_safetyMaxResultSize = safetyMaxResultSize;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSafetyMaxResultSize() {
|
||||
return _safetyMaxResultSize;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getOrderByClause() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrderByClause getOrderByComponent() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrderByBean clearOrderBy() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void overTheWaves(SpecifiedColumn dreamCruiseTicket) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mysticRhythms(Object mysticBinding) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public DBMeta asDBMeta() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SqlClause getSqlClause() {
|
||||
return _sqlClause;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionBean addOrderBy_PK_Asc() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionBean addOrderBy_PK_Desc() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public HpColumnSpHandler localSp() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableInnerJoinAutoDetect() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disableInnerJoinAutoDetect() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpecifiedColumn inviteDerivedToDreamCruise(String derivedAlias) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionBean xcreateDreamCruiseCB() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xmarkAsDeparturePortForDreamCruise() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean xisDreamCruiseDeparturePort() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean xisDreamCruiseShip() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionBean xgetDreamCruiseDeparturePort() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean xhasDreamCruiseTicket() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpecifiedColumn xshowDreamCruiseTicket() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xkeepDreamCruiseJourneyLogBook(String relationPath) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xsetupSelectDreamCruiseJourneyLogBook() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xsetupSelectDreamCruiseJourneyLogBookIfUnionExists() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object xgetMysticBinding() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ignoreNullOrEmptyQuery() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
@Override
|
||||
public void checkNullOrEmptyQuery() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableEmptyStringQuery(ModeQuery noArgInLambda) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disableEmptyStringQuery() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableOverridingQuery(ModeQuery noArgInLambda) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disableOverridingQuery() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enablePagingCountLeastJoin() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disablePagingCountLeastJoin() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPagingSelectAndQuerySplit() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionBean lockForUpdate() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionBean xsetupSelectCountIgnoreFetchScope(boolean uniqueCount) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionBean xafterCareSelectCountIgnoreFetchScope() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSelectCountIgnoreFetchScope() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CursorSelectOption getCursorSelectOption() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xacceptScalarSelectOption(ScalarSelectOption option) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void configure(StatementConfigCall<StatementConfig> confLambda) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public StatementConfig getStatementConfig() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canRelationMappingCache() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableNonSpecifiedColumnAccess() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disableNonSpecifiedColumnAccess() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isNonSpecifiedColumnAccessAllowed() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableColumnNullObject() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disableColumnNullObject() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableQueryUpdateCountPreCheck() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disableQueryUpdateCountPreCheck() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isQueryUpdateCountPreCheck() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toDisplaySql() {
|
||||
// TODO
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void styleLogDateDisplay(BoundDateDisplayStyle logDateDisplayStyle) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public BoundDateDisplayStyle getLogDateDisplayStyle() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasWhereClauseOnBaseQuery() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearWhereClauseOnBaseQuery() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasSelectAllPossible() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasOrderByClause() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasUnionQueryOrUnionAllQuery() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invokeSetupSelect(String foreignPropertyNamePath) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpecifiedColumn invokeSpecifyColumn(String columnPropertyPath) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invokeOrScopeQuery(OrQuery<ConditionBean> orQuery) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invokeOrScopeQueryAndPart(AndQuery<ConditionBean> andQuery) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xregisterUnionQuerySynchronizer(UnionQuery<ConditionBean> unionQuerySynchronizer) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public DerivedTypeHandler xgetDerivedTypeHandler() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public HpCBPurpose getPurpose() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xsetupForScalarSelect() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xsetupForQueryInsert() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xsetupForSpecifiedUpdate() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xsetupForVaryingUpdate() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableThatsBadTiming() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disableThatsBadTiming() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasSpecifiedLocalColumn() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableUndefinedClassificationSelect() {
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disableUndefinedClassificationSelect() {
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUndefinedClassificationSelectAllowed() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
public SearchRequestParams request() {
|
||||
return _searchRequestParams;
|
||||
}
|
||||
|
||||
public static class SearchRequestParams {
|
||||
|
||||
private Boolean explain;
|
||||
|
||||
private Float minScore;
|
||||
|
||||
private String preference;
|
||||
|
||||
private String routing;
|
||||
|
||||
private String searchType;
|
||||
|
||||
private long timeoutInMillis = -1;
|
||||
|
||||
private Boolean version;
|
||||
|
||||
private int terminateAfter = 0;
|
||||
|
||||
public void build(SearchRequestBuilder builder) {
|
||||
if (explain != null) {
|
||||
builder.setExplain(explain);
|
||||
}
|
||||
if (minScore != null) {
|
||||
builder.setMinScore(minScore);
|
||||
}
|
||||
if (preference != null) {
|
||||
builder.setPreference(preference);
|
||||
}
|
||||
if (routing != null) {
|
||||
builder.setRouting(routing);
|
||||
}
|
||||
if (searchType != null) {
|
||||
builder.setSearchType(searchType);
|
||||
}
|
||||
if (timeoutInMillis == -1) {
|
||||
builder.setTimeout(new TimeValue(timeoutInMillis));
|
||||
}
|
||||
if (version != null) {
|
||||
builder.setVersion(version);
|
||||
}
|
||||
if (terminateAfter > 0) {
|
||||
builder.setTerminateAfter(terminateAfter);
|
||||
}
|
||||
}
|
||||
|
||||
public void setExplain(boolean explain) {
|
||||
this.explain = explain;
|
||||
}
|
||||
|
||||
public void setMinScore(float minScore) {
|
||||
this.minScore = minScore;
|
||||
}
|
||||
|
||||
public void setPreference(String preference) {
|
||||
this.preference = preference;
|
||||
}
|
||||
|
||||
public void setRouting(String routing) {
|
||||
this.routing = routing;
|
||||
}
|
||||
|
||||
public void setSearchType(String searchType) {
|
||||
this.searchType = searchType;
|
||||
}
|
||||
|
||||
public void setTimeoutInMillis(long timeoutInMillis) {
|
||||
this.timeoutInMillis = timeoutInMillis;
|
||||
}
|
||||
|
||||
public void setVersion(boolean version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public void setTerminateAfter(int terminateAfter) {
|
||||
this.terminateAfter = terminateAfter;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,216 +0,0 @@
|
|||
package ${request.package}.cbean.cf.bs;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.dbflute.cbean.ckey.ConditionKey;
|
||||
import org.elasticsearch.index.query.AndFilterBuilder;
|
||||
import org.elasticsearch.index.query.BoolFilterBuilder;
|
||||
import org.elasticsearch.index.query.ExistsFilterBuilder;
|
||||
import org.elasticsearch.index.query.FilterBuilder;
|
||||
import org.elasticsearch.index.query.FilterBuilders;
|
||||
import org.elasticsearch.index.query.IdsFilterBuilder;
|
||||
import org.elasticsearch.index.query.MatchAllFilterBuilder;
|
||||
import org.elasticsearch.index.query.MissingFilterBuilder;
|
||||
import org.elasticsearch.index.query.NotFilterBuilder;
|
||||
import org.elasticsearch.index.query.OrFilterBuilder;
|
||||
import org.elasticsearch.index.query.PrefixFilterBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilder;
|
||||
import org.elasticsearch.index.query.QueryFilterBuilder;
|
||||
import org.elasticsearch.index.query.RangeFilterBuilder;
|
||||
import org.elasticsearch.index.query.ScriptFilterBuilder;
|
||||
import org.elasticsearch.index.query.TermFilterBuilder;
|
||||
import org.elasticsearch.index.query.TermsFilterBuilder;
|
||||
|
||||
public class AbstractConditionFilter {
|
||||
protected List<FilterBuilder> filterBuilderList;
|
||||
|
||||
public boolean hasFilters() {
|
||||
return filterBuilderList != null && !filterBuilderList.isEmpty();
|
||||
}
|
||||
|
||||
public FilterBuilder getFilter() {
|
||||
if (filterBuilderList == null) {
|
||||
return null;
|
||||
} else if (filterBuilderList.size() == 1) {
|
||||
return filterBuilderList.get(0);
|
||||
}
|
||||
return FilterBuilders.andFilter(filterBuilderList.toArray(new FilterBuilder[filterBuilderList.size()]));
|
||||
}
|
||||
|
||||
public void addFilter(FilterBuilder filterBuilder) {
|
||||
regF(filterBuilder);
|
||||
}
|
||||
|
||||
public void setIds_Equal(Collection<String> idList) {
|
||||
setIds_Equal(idList, null);
|
||||
}
|
||||
|
||||
public void setIds_Equal(Collection<String> idList, ConditionOptionCall<IdsFilterBuilder> opLambda) {
|
||||
IdsFilterBuilder builder = regIdsF(idList);
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void matchAll() {
|
||||
matchAll(null);
|
||||
}
|
||||
|
||||
public void matchAll(ConditionOptionCall<MatchAllFilterBuilder> opLambda) {
|
||||
MatchAllFilterBuilder builder = FilterBuilders.matchAllFilter();
|
||||
regF(builder);
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void setScript(String script) {
|
||||
setScript(script, null);
|
||||
}
|
||||
|
||||
public void setScript(String script, ConditionOptionCall<ScriptFilterBuilder> opLambda) {
|
||||
ScriptFilterBuilder builder = regScriptF(script);
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
protected void regF(FilterBuilder builder) {
|
||||
if (filterBuilderList == null) {
|
||||
filterBuilderList = new ArrayList<>();
|
||||
}
|
||||
filterBuilderList.add(builder);
|
||||
}
|
||||
|
||||
protected TermFilterBuilder regTermF(String name, Object value) {
|
||||
TermFilterBuilder termFilter = FilterBuilders.termFilter(name, value);
|
||||
regF(termFilter);
|
||||
return termFilter;
|
||||
}
|
||||
|
||||
protected TermsFilterBuilder regTermsF(String name, Collection<?> value) {
|
||||
TermsFilterBuilder termsFilter = FilterBuilders.termsFilter(name, value);
|
||||
regF(termsFilter);
|
||||
return termsFilter;
|
||||
}
|
||||
|
||||
protected PrefixFilterBuilder regPrefixF(String name, String value) {
|
||||
PrefixFilterBuilder prefixFilter = FilterBuilders.prefixFilter(name, value);
|
||||
regF(prefixFilter);
|
||||
return prefixFilter;
|
||||
}
|
||||
|
||||
protected ExistsFilterBuilder regExistsF(String name) {
|
||||
ExistsFilterBuilder existsFilter = FilterBuilders.existsFilter(name);
|
||||
regF(existsFilter);
|
||||
return existsFilter;
|
||||
}
|
||||
|
||||
protected MissingFilterBuilder regMissingF(String name) {
|
||||
MissingFilterBuilder missingFilter = FilterBuilders.missingFilter(name);
|
||||
regF(missingFilter);
|
||||
return missingFilter;
|
||||
}
|
||||
|
||||
protected RangeFilterBuilder regRangeF(String name, ConditionKey ck, Object value) {
|
||||
for (FilterBuilder builder : filterBuilderList) {
|
||||
if (builder instanceof RangeFilterBuilder) {
|
||||
RangeFilterBuilder rangeFilterBuilder = (RangeFilterBuilder) builder;
|
||||
if (rangeFilterBuilder.toString().replaceAll("\\s", "").startsWith("{\"range\":{\"" + name + "\"")) {
|
||||
addRangeC(rangeFilterBuilder, ck, value);
|
||||
return rangeFilterBuilder;
|
||||
}
|
||||
}
|
||||
}
|
||||
RangeFilterBuilder rangeFilterBuilder = FilterBuilders.rangeFilter(name);
|
||||
addRangeC(rangeFilterBuilder, ck, value);
|
||||
regF(rangeFilterBuilder);
|
||||
return rangeFilterBuilder;
|
||||
}
|
||||
|
||||
protected void addRangeC(RangeFilterBuilder builder, ConditionKey ck, Object value) {
|
||||
if (ck.equals(ConditionKey.CK_GREATER_THAN)) {
|
||||
builder.gt(value);
|
||||
} else if (ck.equals(ConditionKey.CK_GREATER_EQUAL)) {
|
||||
builder.gte(value);
|
||||
} else if (ck.equals(ConditionKey.CK_LESS_THAN)) {
|
||||
builder.lt(value);
|
||||
} else if (ck.equals(ConditionKey.CK_LESS_EQUAL)) {
|
||||
builder.lte(value);
|
||||
}
|
||||
}
|
||||
|
||||
protected ScriptFilterBuilder regScriptF(String script) {
|
||||
ScriptFilterBuilder scriptFilter = FilterBuilders.scriptFilter(script);
|
||||
regF(scriptFilter);
|
||||
return scriptFilter;
|
||||
}
|
||||
|
||||
protected IdsFilterBuilder regIdsF(Collection<?> value) {
|
||||
IdsFilterBuilder idsFilter = FilterBuilders.idsFilter(value.toArray(new String[value.size()]));
|
||||
regF(idsFilter);
|
||||
return idsFilter;
|
||||
}
|
||||
|
||||
protected BoolFilterBuilder regBoolF(List<FilterBuilder> mustList, List<FilterBuilder> shouldList, List<FilterBuilder> mustNotList) {
|
||||
BoolFilterBuilder boolFilter = FilterBuilders.boolFilter();
|
||||
mustList.forEach(query -> {
|
||||
boolFilter.must(query);
|
||||
});
|
||||
shouldList.forEach(query -> {
|
||||
boolFilter.should(query);
|
||||
});
|
||||
mustNotList.forEach(query -> {
|
||||
boolFilter.mustNot(query);
|
||||
});
|
||||
return boolFilter;
|
||||
}
|
||||
|
||||
protected AndFilterBuilder regAndF(List<FilterBuilder> filterList) {
|
||||
AndFilterBuilder andFilter = FilterBuilders.andFilter(filterList.toArray(new FilterBuilder[filterList.size()]));
|
||||
regF(andFilter);
|
||||
return andFilter;
|
||||
}
|
||||
|
||||
protected OrFilterBuilder regOrF(List<FilterBuilder> filterList) {
|
||||
OrFilterBuilder andFilter = FilterBuilders.orFilter(filterList.toArray(new FilterBuilder[filterList.size()]));
|
||||
regF(andFilter);
|
||||
return andFilter;
|
||||
}
|
||||
|
||||
protected NotFilterBuilder regNotF(FilterBuilder filter) {
|
||||
NotFilterBuilder notFilter = FilterBuilders.notFilter(filter);
|
||||
regF(notFilter);
|
||||
return notFilter;
|
||||
}
|
||||
|
||||
protected QueryFilterBuilder regQueryF(QueryBuilder filter) {
|
||||
QueryFilterBuilder queryFilter = FilterBuilders.queryFilter(filter);
|
||||
regF(queryFilter);
|
||||
return queryFilter;
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
public interface ConditionOptionCall<OP extends FilterBuilder> {
|
||||
|
||||
/**
|
||||
* @param op The option of condition to be set up. (NotNull)
|
||||
*/
|
||||
void callback(OP op);
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
public interface BoolCall<CF extends AbstractConditionFilter> {
|
||||
|
||||
void callback(CF must, CF should, CF mustNot);
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
public interface OperatorCall<CF extends AbstractConditionFilter> {
|
||||
|
||||
void callback(CF and);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,387 +0,0 @@
|
|||
package ${request.package}.cbean.cq.bs;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import ${request.package}.cbean.cf.bs.AbstractConditionFilter;
|
||||
import org.dbflute.cbean.ConditionBean;
|
||||
import org.dbflute.cbean.ConditionQuery;
|
||||
import org.dbflute.cbean.ckey.ConditionKey;
|
||||
import org.dbflute.cbean.coption.ConditionOption;
|
||||
import org.dbflute.cbean.coption.ParameterOption;
|
||||
import org.dbflute.cbean.cvalue.ConditionValue;
|
||||
import org.dbflute.cbean.sqlclause.SqlClause;
|
||||
import org.dbflute.dbmeta.info.ColumnInfo;
|
||||
import org.dbflute.dbmeta.name.ColumnRealName;
|
||||
import org.dbflute.dbmeta.name.ColumnSqlName;
|
||||
import org.dbflute.util.Srl;
|
||||
import org.elasticsearch.index.query.BoolQueryBuilder;
|
||||
import org.elasticsearch.index.query.FilterBuilder;
|
||||
import org.elasticsearch.index.query.FilteredQueryBuilder;
|
||||
import org.elasticsearch.index.query.FuzzyQueryBuilder;
|
||||
import org.elasticsearch.index.query.MatchAllQueryBuilder;
|
||||
import org.elasticsearch.index.query.MatchQueryBuilder;
|
||||
import org.elasticsearch.index.query.PrefixQueryBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilders;
|
||||
import org.elasticsearch.index.query.QueryStringQueryBuilder;
|
||||
import org.elasticsearch.index.query.RangeQueryBuilder;
|
||||
import org.elasticsearch.index.query.TermQueryBuilder;
|
||||
import org.elasticsearch.index.query.TermsQueryBuilder;
|
||||
import org.elasticsearch.search.sort.FieldSortBuilder;
|
||||
import org.elasticsearch.search.sort.SortBuilders;
|
||||
import org.elasticsearch.search.sort.SortOrder;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public abstract class AbstractConditionQuery implements ConditionQuery {
|
||||
|
||||
protected static final String CQ_PROPERTY = "conditionQuery";
|
||||
|
||||
protected List<QueryBuilder> queryBuilderList;
|
||||
|
||||
protected List<FieldSortBuilder> fieldSortBuilderList;
|
||||
|
||||
private DocMetaCQ docMetaCQ;
|
||||
|
||||
public DocMetaCQ docMeta() {
|
||||
if (docMetaCQ == null) {
|
||||
docMetaCQ = new DocMetaCQ();
|
||||
}
|
||||
return docMetaCQ;
|
||||
}
|
||||
|
||||
public List<FieldSortBuilder> getFieldSortBuilderList() {
|
||||
return fieldSortBuilderList == null ? Collections.emptyList() : fieldSortBuilderList;
|
||||
}
|
||||
|
||||
public boolean hasQueries() {
|
||||
return queryBuilderList != null && !queryBuilderList.isEmpty();
|
||||
}
|
||||
|
||||
public QueryBuilder getQuery() {
|
||||
if (queryBuilderList == null) {
|
||||
return null;
|
||||
} else if (queryBuilderList.size() == 1) {
|
||||
return queryBuilderList.get(0);
|
||||
}
|
||||
BoolQueryBuilder boolQuery = QueryBuilders.boolQuery();
|
||||
queryBuilderList.forEach(query -> {
|
||||
boolQuery.must(query);
|
||||
});
|
||||
return boolQuery;
|
||||
}
|
||||
|
||||
public void addQuery(QueryBuilder queryBuilder) {
|
||||
regQ(queryBuilder);
|
||||
}
|
||||
|
||||
public void queryString(String queryString) {
|
||||
queryString(queryString, null);
|
||||
}
|
||||
|
||||
public void queryString(String queryString, ConditionOptionCall<QueryStringQueryBuilder> opLambda) {
|
||||
QueryStringQueryBuilder queryStringQuery = QueryBuilders.queryStringQuery(queryString);
|
||||
regQ(queryStringQuery);
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(queryStringQuery);
|
||||
}
|
||||
}
|
||||
|
||||
public void matchAll() {
|
||||
matchAll(null);
|
||||
}
|
||||
|
||||
public void matchAll(ConditionOptionCall<MatchAllQueryBuilder> opLambda) {
|
||||
MatchAllQueryBuilder builder = QueryBuilders.matchAllQuery();
|
||||
regQ(builder);
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
protected FilteredQueryBuilder regFilteredQ(QueryBuilder queryBuilder, FilterBuilder filterBuilder) {
|
||||
return QueryBuilders.filteredQuery(queryBuilder, filterBuilder);
|
||||
}
|
||||
|
||||
protected BoolQueryBuilder regBoolCQ(List<QueryBuilder> mustList, List<QueryBuilder> shouldList, List<QueryBuilder> mustNotList) {
|
||||
BoolQueryBuilder boolQuery = QueryBuilders.boolQuery();
|
||||
mustList.forEach(query -> {
|
||||
boolQuery.must(query);
|
||||
});
|
||||
shouldList.forEach(query -> {
|
||||
boolQuery.should(query);
|
||||
});
|
||||
mustNotList.forEach(query -> {
|
||||
boolQuery.mustNot(query);
|
||||
});
|
||||
return boolQuery;
|
||||
}
|
||||
|
||||
protected TermQueryBuilder regTermQ(String name, Object value) {
|
||||
TermQueryBuilder termQuery = QueryBuilders.termQuery(name, value);
|
||||
regQ(termQuery);
|
||||
return termQuery;
|
||||
}
|
||||
|
||||
protected TermsQueryBuilder regTermsQ(String name, Collection<?> value) {
|
||||
TermsQueryBuilder termsQuery = QueryBuilders.termsQuery(name, value);
|
||||
regQ(termsQuery);
|
||||
return termsQuery;
|
||||
}
|
||||
|
||||
protected MatchQueryBuilder regMatchQ(String name, Object value) {
|
||||
MatchQueryBuilder matchQuery = QueryBuilders.matchQuery(name, value);
|
||||
regQ(matchQuery);
|
||||
return matchQuery;
|
||||
}
|
||||
|
||||
protected MatchQueryBuilder regMatchPhraseQ(String name, Object value) {
|
||||
MatchQueryBuilder matchQuery = QueryBuilders.matchPhraseQuery(name, value);
|
||||
regQ(matchQuery);
|
||||
return matchQuery;
|
||||
}
|
||||
|
||||
protected MatchQueryBuilder regMatchPhrasePrefixQ(String name, Object value) {
|
||||
MatchQueryBuilder matchQuery = QueryBuilders.matchPhrasePrefixQuery(name, value);
|
||||
regQ(matchQuery);
|
||||
return matchQuery;
|
||||
}
|
||||
|
||||
protected FuzzyQueryBuilder regFuzzyQ(String name, Object value) {
|
||||
FuzzyQueryBuilder fuzzyQuery = QueryBuilders.fuzzyQuery(name, value);
|
||||
regQ(fuzzyQuery);
|
||||
return fuzzyQuery;
|
||||
}
|
||||
|
||||
protected PrefixQueryBuilder regPrefixQ(String name, String prefix) {
|
||||
PrefixQueryBuilder prefixQuery = QueryBuilders.prefixQuery(name, prefix);
|
||||
regQ(prefixQuery);
|
||||
return prefixQuery;
|
||||
}
|
||||
|
||||
protected RangeQueryBuilder regRangeQ(String name, ConditionKey ck, Object value) {
|
||||
if (queryBuilderList != null) {
|
||||
for (QueryBuilder builder : queryBuilderList) {
|
||||
if (builder instanceof RangeQueryBuilder) {
|
||||
RangeQueryBuilder rangeQueryBuilder = (RangeQueryBuilder) builder;
|
||||
if (rangeQueryBuilder.toString().replaceAll("\\s", "").startsWith("{\"range\":{\"" + name + "\"")) {
|
||||
addRangeC(rangeQueryBuilder, ck, value);
|
||||
return rangeQueryBuilder;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
RangeQueryBuilder rangeQueryBuilder = QueryBuilders.rangeQuery(name);
|
||||
addRangeC(rangeQueryBuilder, ck, value);
|
||||
regQ(rangeQueryBuilder);
|
||||
return rangeQueryBuilder;
|
||||
}
|
||||
|
||||
protected void addRangeC(RangeQueryBuilder builder, ConditionKey ck, Object value) {
|
||||
if (ck.equals(ConditionKey.CK_GREATER_THAN)) {
|
||||
builder.gt(value);
|
||||
} else if (ck.equals(ConditionKey.CK_GREATER_EQUAL)) {
|
||||
builder.gte(value);
|
||||
} else if (ck.equals(ConditionKey.CK_LESS_THAN)) {
|
||||
builder.lt(value);
|
||||
} else if (ck.equals(ConditionKey.CK_LESS_EQUAL)) {
|
||||
builder.lte(value);
|
||||
}
|
||||
}
|
||||
|
||||
protected void regQ(QueryBuilder builder) {
|
||||
if (queryBuilderList == null) {
|
||||
queryBuilderList = new ArrayList<>();
|
||||
}
|
||||
queryBuilderList.add(builder);
|
||||
}
|
||||
|
||||
protected void regOBA(String field) {
|
||||
registerOrderBy(field, true);
|
||||
}
|
||||
|
||||
protected void regOBD(String field) {
|
||||
registerOrderBy(field, false);
|
||||
}
|
||||
|
||||
protected void registerOrderBy(String field, boolean ascOrDesc) {
|
||||
if (fieldSortBuilderList == null) {
|
||||
fieldSortBuilderList = new ArrayList<>();
|
||||
}
|
||||
fieldSortBuilderList.add(SortBuilders.fieldSort(field).order(ascOrDesc ? SortOrder.ASC : SortOrder.DESC));
|
||||
}
|
||||
|
||||
@Override
|
||||
public ColumnRealName toColumnRealName(String columnDbName) {
|
||||
return ColumnRealName.create(xgetAliasName(), toColumnSqlName(columnDbName));
|
||||
}
|
||||
|
||||
@Override
|
||||
public ColumnRealName toColumnRealName(ColumnInfo columnInfo) {
|
||||
return ColumnRealName.create(xgetAliasName(), columnInfo.getColumnSqlName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public ColumnSqlName toColumnSqlName(String columnDbName) {
|
||||
return new ColumnSqlName(columnDbName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionBean xgetBaseCB() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionQuery xgetBaseQuery() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionQuery xgetReferrerQuery() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SqlClause xgetSqlClause() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int xgetNestLevel() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int xgetNextNestLevel() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBaseQuery() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String xgetForeignPropertyName() {
|
||||
// TODO
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String xgetRelationPath() {
|
||||
// TODO
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String xgetLocationBase() {
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
ConditionQuery query = this;
|
||||
while (true) {
|
||||
if (query.isBaseQuery()) {
|
||||
sb.insert(0, CQ_PROPERTY + ".");
|
||||
break;
|
||||
} else {
|
||||
final String foreignPropertyName = query.xgetForeignPropertyName();
|
||||
if (foreignPropertyName == null) {
|
||||
String msg = "The foreignPropertyName of the query should not be null:";
|
||||
msg = msg + " query=" + query;
|
||||
throw new IllegalStateException(msg);
|
||||
}
|
||||
sb.insert(0, CQ_PROPERTY + initCap(foreignPropertyName) + ".");
|
||||
}
|
||||
query = query.xgetReferrerQuery();
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
protected String initCap(String str) {
|
||||
return Srl.initCap(str);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionValue invokeValue(String columnFlexibleName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invokeQuery(String columnFlexibleName, String conditionKeyName, Object conditionValue) {
|
||||
// nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invokeQuery(String columnFlexibleName, String conditionKeyName, Object conditionValue, ConditionOption conditionOption) {
|
||||
// nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invokeQueryEqual(String columnFlexibleName, Object conditionValue) {
|
||||
// nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invokeQueryNotEqual(String columnFlexibleName, Object conditionValue) {
|
||||
// nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invokeOrderBy(String columnFlexibleName, boolean isAsc) {
|
||||
// nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionQuery invokeForeignCQ(String foreignPropertyName) {
|
||||
// TODO
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean invokeHasForeignCQ(String foreignPropertyName) {
|
||||
// TODO
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void xregisterParameterOption(ParameterOption option) {
|
||||
// nothing
|
||||
}
|
||||
|
||||
public class DocMetaCQ {
|
||||
|
||||
public void setId_Equal(String id) {
|
||||
regQ(QueryBuilders.idsQuery(asTableDbName()).addIds(id));
|
||||
}
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
public interface ConditionOptionCall<OP extends QueryBuilder> {
|
||||
|
||||
/**
|
||||
* @param op The option of condition to be set up. (NotNull)
|
||||
*/
|
||||
void callback(OP op);
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
public interface BoolCall<CQ extends AbstractConditionQuery> {
|
||||
|
||||
void callback(CQ must, CQ should, CQ mustNot);
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
public interface FilteredCall<CQ extends AbstractConditionQuery, CF extends AbstractConditionFilter> {
|
||||
|
||||
void callback(CQ query, CF filter);
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
public interface OperatorCall<CQ extends AbstractConditionQuery> {
|
||||
|
||||
void callback(CQ and);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,234 +0,0 @@
|
|||
package ${request.package}.bsentity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.dbflute.Entity;
|
||||
import org.dbflute.FunCustodial;
|
||||
import org.dbflute.dbmeta.accessory.EntityModifiedProperties;
|
||||
import org.dbflute.dbmeta.accessory.EntityUniqueDrivenProperties;
|
||||
import org.dbflute.util.DfCollectionUtil;
|
||||
import org.elasticsearch.action.delete.DeleteRequestBuilder;
|
||||
import org.elasticsearch.action.index.IndexRequestBuilder;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public abstract class AbstractEntity implements Entity, Serializable, Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
protected DocMeta docMeta;
|
||||
|
||||
protected final EntityUniqueDrivenProperties __uniqueDrivenProperties = newUniqueDrivenProperties();
|
||||
|
||||
protected final EntityModifiedProperties __modifiedProperties = newModifiedProperties();
|
||||
|
||||
protected EntityModifiedProperties __specifiedProperties;
|
||||
|
||||
public DocMeta asDocMeta() {
|
||||
if (docMeta == null) {
|
||||
docMeta = new DocMeta();
|
||||
}
|
||||
return docMeta;
|
||||
}
|
||||
|
||||
public Set<String> mymodifiedProperties() {
|
||||
return __modifiedProperties.getPropertyNames();
|
||||
}
|
||||
|
||||
public void mymodifyProperty(String propertyName) {
|
||||
registerModifiedProperty(propertyName);
|
||||
}
|
||||
|
||||
public void mymodifyPropertyCancel(String propertyName) {
|
||||
__modifiedProperties.remove(propertyName);
|
||||
}
|
||||
|
||||
public void clearModifiedInfo() {
|
||||
__modifiedProperties.clear();
|
||||
}
|
||||
|
||||
public boolean hasModification() {
|
||||
return !__modifiedProperties.isEmpty();
|
||||
}
|
||||
|
||||
protected EntityModifiedProperties newModifiedProperties() {
|
||||
return new EntityModifiedProperties();
|
||||
}
|
||||
|
||||
protected void registerModifiedProperty(String propertyName) {
|
||||
__modifiedProperties.addPropertyName(propertyName);
|
||||
registerSpecifiedProperty(propertyName); // synchronize if exists, basically for user's manual call
|
||||
}
|
||||
|
||||
public void modifiedToSpecified() {
|
||||
if (__modifiedProperties.isEmpty()) {
|
||||
return; // basically no way when called in Framework (because called when SpecifyColumn exists)
|
||||
}
|
||||
__specifiedProperties = newModifiedProperties();
|
||||
__specifiedProperties.accept(__modifiedProperties);
|
||||
}
|
||||
|
||||
public Set<String> myspecifiedProperties() {
|
||||
if (__specifiedProperties != null) {
|
||||
return __specifiedProperties.getPropertyNames();
|
||||
}
|
||||
return DfCollectionUtil.emptySet();
|
||||
}
|
||||
|
||||
public void myspecifyProperty(String propertyName) {
|
||||
registerSpecifiedProperty(propertyName);
|
||||
}
|
||||
|
||||
public void myspecifyPropertyCancel(String propertyName) {
|
||||
if (__specifiedProperties != null) {
|
||||
__specifiedProperties.remove(propertyName);
|
||||
}
|
||||
}
|
||||
|
||||
public void clearSpecifiedInfo() {
|
||||
if (__specifiedProperties != null) {
|
||||
__specifiedProperties.clear();
|
||||
}
|
||||
}
|
||||
|
||||
protected void checkSpecifiedProperty(String propertyName) {
|
||||
FunCustodial.checkSpecifiedProperty(this, propertyName, __specifiedProperties);
|
||||
}
|
||||
|
||||
protected void registerSpecifiedProperty(String propertyName) { // basically called by modified property registration
|
||||
if (__specifiedProperties != null) { // normally false, true if e.g. setting after selected
|
||||
__specifiedProperties.addPropertyName(propertyName);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasPrimaryKeyValue() {
|
||||
return asDocMeta().id() != null;
|
||||
}
|
||||
|
||||
protected EntityUniqueDrivenProperties newUniqueDrivenProperties() {
|
||||
return new EntityUniqueDrivenProperties();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<String> myuniqueDrivenProperties() {
|
||||
return __uniqueDrivenProperties.getPropertyNames();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void myuniqueByProperty(String propertyName) {
|
||||
__uniqueDrivenProperties.addPropertyName(propertyName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void myuniqueByPropertyCancel(String propertyName) {
|
||||
__uniqueDrivenProperties.remove(propertyName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearUniqueDrivenInfo() {
|
||||
__uniqueDrivenProperties.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void markAsSelect() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean createdBySelect() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int instanceHash() {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toStringWithRelation() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String buildDisplayString(String name, boolean column, boolean relation) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void myunlockUndefinedClassificationAccess() {
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean myundefinedClassificationAccessAllowed() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
public abstract Map<String, Object> toSource();
|
||||
|
||||
public class DocMeta implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
protected String id;
|
||||
|
||||
protected Long version;
|
||||
|
||||
private RequestOptionCall<IndexRequestBuilder> indexOption;
|
||||
|
||||
private RequestOptionCall<DeleteRequestBuilder> deleteOption;
|
||||
|
||||
public DocMeta id(String id) {
|
||||
this.id = id;
|
||||
myuniqueByProperty("_id");
|
||||
return this;
|
||||
}
|
||||
|
||||
public String id() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public DocMeta version(Long version) {
|
||||
this.version = version;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Long version() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public DocMeta indexOption(RequestOptionCall<IndexRequestBuilder> builder) {
|
||||
this.indexOption = builder;
|
||||
return this;
|
||||
}
|
||||
|
||||
public RequestOptionCall<IndexRequestBuilder> indexOption() {
|
||||
return indexOption;
|
||||
}
|
||||
|
||||
public DocMeta deleteOption(RequestOptionCall<DeleteRequestBuilder> builder) {
|
||||
this.deleteOption = builder;
|
||||
return this;
|
||||
}
|
||||
|
||||
public RequestOptionCall<DeleteRequestBuilder> deleteOption() {
|
||||
return deleteOption;
|
||||
}
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
public interface RequestOptionCall<OP> {
|
||||
void callback(OP op);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,239 +0,0 @@
|
|||
package ${request.package}.bsbhv;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import ${request.package}.bsentity.AbstractEntity;
|
||||
import ${request.package}.bsentity.AbstractEntity.RequestOptionCall;
|
||||
import ${request.package}.bsentity.dbmeta.${table.camelizedName}Dbm;
|
||||
import ${request.package}.cbean.${table.camelizedName}CB;
|
||||
import ${request.package}.exentity.${table.camelizedName};
|
||||
import org.dbflute.Entity;
|
||||
import org.dbflute.bhv.readable.CBCall;
|
||||
import org.dbflute.bhv.readable.EntityRowHandler;
|
||||
import org.dbflute.cbean.ConditionBean;
|
||||
import org.dbflute.cbean.result.ListResultBean;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.exception.IllegalBehaviorStateException;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
import org.dbflute.util.DfTypeUtil;
|
||||
import org.elasticsearch.action.bulk.BulkRequestBuilder;
|
||||
import org.elasticsearch.action.delete.DeleteRequestBuilder;
|
||||
import org.elasticsearch.action.index.IndexRequestBuilder;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public abstract class Bs${table.camelizedName}Bhv extends AbstractBehavior<${table.camelizedName}, ${table.camelizedName}CB> {
|
||||
|
||||
@Override
|
||||
public String asTableDbName() {
|
||||
return asEsIndexType();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String asEsIndex() {
|
||||
return "${table.indexSettings.index}";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String asEsIndexType() {
|
||||
return "${table.name}";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String asEsSearchType() {
|
||||
return "${table.name}";
|
||||
}
|
||||
|
||||
@Override
|
||||
public ${table.camelizedName}Dbm asDBMeta() {
|
||||
return ${table.camelizedName}Dbm.getInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <RESULT extends ${table.camelizedName}> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) {
|
||||
try {
|
||||
final RESULT result = entityType.newInstance();
|
||||
#set ($tableMetaSettings = ${table.indexSettings.settings.index.dbflute.get($table.name)})
|
||||
#foreach ($column in $table.columnList)
|
||||
#if ($column.isNormalColumn)
|
||||
#set ($javaNative = ${column.type})
|
||||
#if ($tableMetaSettings.properties.get($column.name).array)
|
||||
result.set${column.capCamelName}(to${javaNative}Array(source.get("${column.name}")));
|
||||
#else
|
||||
result.set${column.capCamelName}(DfTypeUtil.to$javaNative(source.get("${column.name}")));
|
||||
#end
|
||||
#end
|
||||
#end
|
||||
return result;
|
||||
} catch (InstantiationException | IllegalAccessException e) {
|
||||
final String msg = "Cannot create a new instance: " + entityType.getName();
|
||||
throw new IllegalBehaviorStateException(msg, e);
|
||||
}
|
||||
}
|
||||
|
||||
public int selectCount(CBCall<${table.camelizedName}CB> cbLambda) {
|
||||
return facadeSelectCount(createCB(cbLambda));
|
||||
}
|
||||
|
||||
public OptionalEntity<${table.camelizedName}> selectEntity(CBCall<${table.camelizedName}CB> cbLambda) {
|
||||
return facadeSelectEntity(createCB(cbLambda));
|
||||
}
|
||||
|
||||
protected OptionalEntity<${table.camelizedName}> facadeSelectEntity(${table.camelizedName}CB cb) {
|
||||
return doSelectOptionalEntity(cb, typeOfSelectedEntity());
|
||||
}
|
||||
|
||||
protected <ENTITY extends ${table.camelizedName}> OptionalEntity<ENTITY> doSelectOptionalEntity(${table.camelizedName}CB cb,
|
||||
Class<? extends ENTITY> tp) {
|
||||
return createOptionalEntity(doSelectEntity(cb, tp), cb);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ${table.camelizedName}CB newConditionBean() {
|
||||
return new ${table.camelizedName}CB();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Entity doReadEntity(ConditionBean cb) {
|
||||
return facadeSelectEntity(downcast(cb)).orElse(null);
|
||||
}
|
||||
|
||||
public ${table.camelizedName} selectEntityWithDeletedCheck(CBCall<${table.camelizedName}CB> cbLambda) {
|
||||
return facadeSelectEntityWithDeletedCheck(createCB(cbLambda));
|
||||
}
|
||||
|
||||
public OptionalEntity<${table.camelizedName}> selectByPK(String id) {
|
||||
return facadeSelectByPK(id);
|
||||
}
|
||||
|
||||
protected OptionalEntity<${table.camelizedName}> facadeSelectByPK(String id) {
|
||||
return doSelectOptionalByPK(id, typeOfSelectedEntity());
|
||||
}
|
||||
|
||||
protected <ENTITY extends ${table.camelizedName}> ENTITY doSelectByPK(String id, Class<? extends ENTITY> tp) {
|
||||
return doSelectEntity(xprepareCBAsPK(id), tp);
|
||||
}
|
||||
|
||||
protected ${table.camelizedName}CB xprepareCBAsPK(String id) {
|
||||
assertObjectNotNull("id", id);
|
||||
return newConditionBean().acceptPK(id);
|
||||
}
|
||||
|
||||
protected <ENTITY extends ${table.camelizedName}> OptionalEntity<ENTITY> doSelectOptionalByPK(String id, Class<? extends ENTITY> tp) {
|
||||
return createOptionalEntity(doSelectByPK(id, tp), id);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Class<? extends ${table.camelizedName}> typeOfSelectedEntity() {
|
||||
return ${table.camelizedName}.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Class<${table.camelizedName}> typeOfHandlingEntity() {
|
||||
return ${table.camelizedName}.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Class<${table.camelizedName}CB> typeOfHandlingConditionBean() {
|
||||
return ${table.camelizedName}CB.class;
|
||||
}
|
||||
|
||||
public ListResultBean<${table.camelizedName}> selectList(CBCall<${table.camelizedName}CB> cbLambda) {
|
||||
return facadeSelectList(createCB(cbLambda));
|
||||
}
|
||||
|
||||
public PagingResultBean<${table.camelizedName}> selectPage(CBCall<${table.camelizedName}CB> cbLambda) {
|
||||
// TODO same?
|
||||
return (PagingResultBean<${table.camelizedName}>) facadeSelectList(createCB(cbLambda));
|
||||
}
|
||||
|
||||
public void selectCursor(CBCall<${table.camelizedName}CB> cbLambda, EntityRowHandler<${table.camelizedName}> entityLambda) {
|
||||
facadeSelectCursor(createCB(cbLambda), entityLambda);
|
||||
}
|
||||
|
||||
public void selectBulk(CBCall<${table.camelizedName}CB> cbLambda, EntityRowHandler<List<${table.camelizedName}>> entityLambda) {
|
||||
delegateSelectBulk(createCB(cbLambda), entityLambda,typeOfSelectedEntity());
|
||||
}
|
||||
|
||||
public void insert(${table.camelizedName} entity) {
|
||||
doInsert(entity, null);
|
||||
}
|
||||
|
||||
public void insert(${table.camelizedName} entity, RequestOptionCall<IndexRequestBuilder> opLambda) {
|
||||
if (entity instanceof AbstractEntity) {
|
||||
entity.asDocMeta().indexOption(opLambda);
|
||||
}
|
||||
doInsert(entity, null);
|
||||
}
|
||||
|
||||
public void update(${table.camelizedName} entity) {
|
||||
doUpdate(entity, null);
|
||||
}
|
||||
|
||||
public void update(${table.camelizedName} entity, RequestOptionCall<IndexRequestBuilder> opLambda) {
|
||||
if (entity instanceof AbstractEntity) {
|
||||
entity.asDocMeta().indexOption(opLambda);
|
||||
}
|
||||
doUpdate(entity, null);
|
||||
}
|
||||
|
||||
public void insertOrUpdate(${table.camelizedName} entity) {
|
||||
doInsertOrUpdate(entity, null, null);
|
||||
}
|
||||
|
||||
public void insertOrUpdate(${table.camelizedName} entity, RequestOptionCall<IndexRequestBuilder> opLambda) {
|
||||
if (entity instanceof AbstractEntity) {
|
||||
entity.asDocMeta().indexOption(opLambda);
|
||||
}
|
||||
doInsertOrUpdate(entity, null, null);
|
||||
}
|
||||
|
||||
public void delete(${table.camelizedName} entity) {
|
||||
doDelete(entity, null);
|
||||
}
|
||||
|
||||
public void delete(${table.camelizedName} entity, RequestOptionCall<DeleteRequestBuilder> opLambda) {
|
||||
if (entity instanceof AbstractEntity) {
|
||||
entity.asDocMeta().deleteOption(opLambda);
|
||||
}
|
||||
doDelete(entity, null);
|
||||
}
|
||||
|
||||
public int queryDelete(CBCall<${table.camelizedName}CB> cbLambda) {
|
||||
return doQueryDelete(createCB(cbLambda), null);
|
||||
}
|
||||
|
||||
public int[] batchInsert(List<${table.camelizedName}> list) {
|
||||
return batchInsert(list, null);
|
||||
}
|
||||
|
||||
public int[] batchInsert(List<${table.camelizedName}> list, RequestOptionCall<BulkRequestBuilder> call) {
|
||||
return doBatchInsert(new BulkList<>(list, call), null);
|
||||
}
|
||||
|
||||
public int[] batchUpdate(List<${table.camelizedName}> list) {
|
||||
return batchUpdate(list, null);
|
||||
}
|
||||
|
||||
public int[] batchUpdate(List<${table.camelizedName}> list, RequestOptionCall<BulkRequestBuilder> call) {
|
||||
return doBatchUpdate(new BulkList<>(list, call), null);
|
||||
}
|
||||
|
||||
public int[] batchDelete(List<${table.camelizedName}> list) {
|
||||
return batchDelete(list, null);
|
||||
}
|
||||
|
||||
public int[] batchDelete(List<${table.camelizedName}> list, RequestOptionCall<BulkRequestBuilder> call) {
|
||||
return doBatchDelete(new BulkList<>(list, call), null);
|
||||
}
|
||||
|
||||
// TODO create, modify, remove
|
||||
|
||||
@Override
|
||||
protected boolean isCompatibleBatchInsertDefaultEveryColumn() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,134 +0,0 @@
|
|||
package ${request.package}.cbean.bs;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import ${request.package}.bsentity.dbmeta.${table.camelizedName}Dbm;
|
||||
import ${request.package}.cbean.${table.camelizedName}CB;
|
||||
import ${request.package}.cbean.cq.${table.camelizedName}CQ;
|
||||
import ${request.package}.cbean.cq.bs.Bs${table.camelizedName}CQ;
|
||||
import org.dbflute.cbean.ConditionQuery;
|
||||
import org.elasticsearch.action.count.CountRequestBuilder;
|
||||
import org.elasticsearch.action.search.SearchRequestBuilder;
|
||||
import org.elasticsearch.index.query.QueryBuilder;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public class Bs${table.camelizedName}CB extends AbstractConditionBean {
|
||||
|
||||
protected Bs${table.camelizedName}CQ _conditionQuery;
|
||||
|
||||
protected HpSpecification _specification;
|
||||
|
||||
@Override
|
||||
public ${table.camelizedName}Dbm asDBMeta() {
|
||||
return ${table.camelizedName}Dbm.getInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String asTableDbName() {
|
||||
return "${table.name}";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasSpecifiedColumn() {
|
||||
return _specification != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConditionQuery localCQ() {
|
||||
return doGetConditionQuery();
|
||||
}
|
||||
|
||||
public ${table.camelizedName}CB acceptPK(String id) {
|
||||
assertObjectNotNull("id", id);
|
||||
Bs${table.camelizedName}CB cb = this;
|
||||
cb.query().docMeta().setId_Equal(id);
|
||||
return (${table.camelizedName}CB) this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void acceptPrimaryKeyMap(Map<String, ? extends Object> primaryKeyMap) {
|
||||
acceptPK((String)primaryKeyMap.get("_id"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public CountRequestBuilder build(CountRequestBuilder builder) {
|
||||
if (_conditionQuery != null) {
|
||||
QueryBuilder queryBuilder = _conditionQuery.getQuery();
|
||||
if (queryBuilder != null) {
|
||||
builder.setQuery(queryBuilder);
|
||||
}
|
||||
}
|
||||
return builder;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SearchRequestBuilder build(SearchRequestBuilder builder) {
|
||||
if (_conditionQuery != null) {
|
||||
QueryBuilder queryBuilder = _conditionQuery.getQuery();
|
||||
if (queryBuilder != null) {
|
||||
builder.setQuery(queryBuilder);
|
||||
}
|
||||
_conditionQuery.getFieldSortBuilderList().forEach(sort -> {
|
||||
builder.addSort(sort);
|
||||
});
|
||||
}
|
||||
|
||||
if (_specification != null) {
|
||||
builder.setFetchSource(_specification.columnList.toArray(new String[_specification.columnList.size()]), null);
|
||||
}
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
||||
public Bs${table.camelizedName}CQ query() {
|
||||
assertQueryPurpose();
|
||||
return doGetConditionQuery();
|
||||
}
|
||||
|
||||
protected Bs${table.camelizedName}CQ doGetConditionQuery() {
|
||||
if (_conditionQuery == null) {
|
||||
_conditionQuery = createLocalCQ();
|
||||
}
|
||||
return _conditionQuery;
|
||||
}
|
||||
|
||||
protected Bs${table.camelizedName}CQ createLocalCQ() {
|
||||
return new ${table.camelizedName}CQ();
|
||||
}
|
||||
|
||||
public HpSpecification specify() {
|
||||
assertSpecifyPurpose();
|
||||
if (_specification == null) {
|
||||
_specification = new HpSpecification();
|
||||
}
|
||||
return _specification;
|
||||
}
|
||||
|
||||
protected void assertQueryPurpose() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
protected void assertSpecifyPurpose() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
public static class HpSpecification {
|
||||
private List<String> columnList = new ArrayList<>();
|
||||
|
||||
private void doColumn(String name) {
|
||||
columnList.add(name);
|
||||
}
|
||||
|
||||
#foreach ($column in $table.columnList)
|
||||
#if ($column.isNormalColumn)
|
||||
public void column${column.capCamelName}() {
|
||||
doColumn("${column.name}");
|
||||
}
|
||||
#end
|
||||
#end
|
||||
}
|
||||
}
|
|
@ -1,245 +0,0 @@
|
|||
package ${request.package}.cbean.cf.bs;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import ${request.package}.cbean.cf.${table.camelizedName}CF;
|
||||
import ${request.package}.cbean.cq.${table.camelizedName}CQ;
|
||||
import org.dbflute.exception.IllegalConditionBeanOperationException;
|
||||
import org.dbflute.cbean.ckey.ConditionKey;
|
||||
import org.elasticsearch.index.query.AndFilterBuilder;
|
||||
import org.elasticsearch.index.query.BoolFilterBuilder;
|
||||
import org.elasticsearch.index.query.ExistsFilterBuilder;
|
||||
import org.elasticsearch.index.query.MissingFilterBuilder;
|
||||
import org.elasticsearch.index.query.NotFilterBuilder;
|
||||
import org.elasticsearch.index.query.OrFilterBuilder;
|
||||
import org.elasticsearch.index.query.PrefixFilterBuilder;
|
||||
import org.elasticsearch.index.query.QueryFilterBuilder;
|
||||
import org.elasticsearch.index.query.RangeFilterBuilder;
|
||||
import org.elasticsearch.index.query.TermFilterBuilder;
|
||||
import org.elasticsearch.index.query.TermsFilterBuilder;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public abstract class Bs${table.camelizedName}CF extends AbstractConditionFilter {
|
||||
|
||||
public void bool(BoolCall<${table.camelizedName}CF> boolLambda) {
|
||||
bool(boolLambda, null);
|
||||
}
|
||||
|
||||
public void bool(BoolCall<${table.camelizedName}CF> boolLambda, ConditionOptionCall<BoolFilterBuilder> opLambda) {
|
||||
${table.camelizedName}CF mustFilter = new ${table.camelizedName}CF();
|
||||
${table.camelizedName}CF shouldFilter = new ${table.camelizedName}CF();
|
||||
${table.camelizedName}CF mustNotFilter = new ${table.camelizedName}CF();
|
||||
boolLambda.callback(mustFilter, shouldFilter, mustNotFilter);
|
||||
if (mustFilter.hasFilters() || shouldFilter.hasFilters() || mustNotFilter.hasFilters()) {
|
||||
BoolFilterBuilder builder =
|
||||
regBoolF(mustFilter.filterBuilderList, shouldFilter.filterBuilderList, mustNotFilter.filterBuilderList);
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void and(OperatorCall<${table.camelizedName}CF> andLambda) {
|
||||
and(andLambda, null);
|
||||
}
|
||||
|
||||
public void and(OperatorCall<${table.camelizedName}CF> andLambda, ConditionOptionCall<AndFilterBuilder> opLambda) {
|
||||
${table.camelizedName}CF andFilter = new ${table.camelizedName}CF();
|
||||
andLambda.callback(andFilter);
|
||||
if (andFilter.hasFilters()) {
|
||||
AndFilterBuilder builder = regAndF(andFilter.filterBuilderList);
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void or(OperatorCall<${table.camelizedName}CF> orLambda) {
|
||||
or(orLambda, null);
|
||||
}
|
||||
|
||||
public void or(OperatorCall<${table.camelizedName}CF> orLambda, ConditionOptionCall<OrFilterBuilder> opLambda) {
|
||||
${table.camelizedName}CF orFilter = new ${table.camelizedName}CF();
|
||||
orLambda.callback(orFilter);
|
||||
if (orFilter.hasFilters()) {
|
||||
OrFilterBuilder builder = regOrF(orFilter.filterBuilderList);
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void not(OperatorCall<${table.camelizedName}CF> notLambda) {
|
||||
not(notLambda, null);
|
||||
}
|
||||
|
||||
public void not(OperatorCall<${table.camelizedName}CF> notLambda, ConditionOptionCall<NotFilterBuilder> opLambda) {
|
||||
${table.camelizedName}CF notFilter = new ${table.camelizedName}CF();
|
||||
notLambda.callback(notFilter);
|
||||
if (notFilter.hasFilters()) {
|
||||
if (notFilter.filterBuilderList.size() > 1) {
|
||||
final String msg = "not filter must be one filter.";
|
||||
throw new IllegalConditionBeanOperationException(msg);
|
||||
}
|
||||
NotFilterBuilder builder = regNotF(notFilter.filterBuilderList.get(0));
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void query(${request.package}.cbean.cq.bs.AbstractConditionQuery.OperatorCall<${table.camelizedName}CQ> queryLambda) {
|
||||
query(queryLambda, null);
|
||||
}
|
||||
|
||||
public void query(${request.package}.cbean.cq.bs.AbstractConditionQuery.OperatorCall<${table.camelizedName}CQ> queryLambda,
|
||||
ConditionOptionCall<QueryFilterBuilder> opLambda) {
|
||||
${table.camelizedName}CQ query = new ${table.camelizedName}CQ();
|
||||
queryLambda.callback(query);
|
||||
if (query.hasQueries()) {
|
||||
QueryFilterBuilder builder = regQueryF(query.getQuery());
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#foreach ($column in $table.columnList)
|
||||
#if ($column.isNormalColumn)
|
||||
#set ($javaNative = ${column.type})
|
||||
|
||||
public void set${column.capCamelName}_NotEqual($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_NotEqual(${column.uncapCamelName}, null, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_NotEqual($javaNative ${column.uncapCamelName}, ConditionOptionCall<NotFilterBuilder> notOpLambda,
|
||||
ConditionOptionCall<TermFilterBuilder> eqOpLambda) {
|
||||
not(subCf -> {
|
||||
subCf.set${column.capCamelName}_Equal(${column.uncapCamelName}, eqOpLambda);
|
||||
} , notOpLambda);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Equal($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_Term(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Equal($javaNative ${column.uncapCamelName}, ConditionOptionCall<TermFilterBuilder> opLambda) {
|
||||
set${column.capCamelName}_Term(${column.uncapCamelName}, opLambda);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Term($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_Term(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Term($javaNative ${column.uncapCamelName}, ConditionOptionCall<TermFilterBuilder> opLambda) {
|
||||
TermFilterBuilder builder = regTermF("${column.name}", ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Terms(Collection<$javaNative> ${column.uncapCamelName}List) {
|
||||
set${column.capCamelName}_Terms(${column.uncapCamelName}List, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Terms(Collection<$javaNative> ${column.uncapCamelName}List, ConditionOptionCall<TermsFilterBuilder> opLambda) {
|
||||
TermsFilterBuilder builder = regTermsF("${column.name}", ${column.uncapCamelName}List);
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_InScope(Collection<$javaNative> ${column.uncapCamelName}List) {
|
||||
set${column.capCamelName}_Terms(${column.uncapCamelName}List, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_InScope(Collection<$javaNative> ${column.uncapCamelName}List, ConditionOptionCall<TermsFilterBuilder> opLambda) {
|
||||
set${column.capCamelName}_Terms(${column.uncapCamelName}List, opLambda);
|
||||
}
|
||||
|
||||
#if ($javaNative == "String")
|
||||
public void set${column.capCamelName}_Prefix($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_Prefix(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Prefix($javaNative ${column.uncapCamelName}, ConditionOptionCall<PrefixFilterBuilder> opLambda) {
|
||||
PrefixFilterBuilder builder = regPrefixF("${column.name}", ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
#end
|
||||
public void set${column.capCamelName}_Exists() {
|
||||
set${column.capCamelName}_Exists(null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Exists(ConditionOptionCall<ExistsFilterBuilder> opLambda) {
|
||||
ExistsFilterBuilder builder = regExistsF("${column.name}");
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Missing() {
|
||||
set${column.capCamelName}_Missing(null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Missing(ConditionOptionCall<MissingFilterBuilder> opLambda) {
|
||||
MissingFilterBuilder builder = regMissingF("${column.name}");
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_GreaterThan($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_GreaterThan(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_GreaterThan($javaNative ${column.uncapCamelName}, ConditionOptionCall<RangeFilterBuilder> opLambda) {
|
||||
RangeFilterBuilder builder = regRangeF("${column.name}", ConditionKey.CK_GREATER_THAN, ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_LessThan($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_LessThan(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_LessThan($javaNative ${column.uncapCamelName}, ConditionOptionCall<RangeFilterBuilder> opLambda) {
|
||||
RangeFilterBuilder builder = regRangeF("${column.name}", ConditionKey.CK_LESS_THAN, ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_GreaterEqual($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_GreaterEqual(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_GreaterEqual($javaNative ${column.uncapCamelName}, ConditionOptionCall<RangeFilterBuilder> opLambda) {
|
||||
RangeFilterBuilder builder = regRangeF("${column.name}", ConditionKey.CK_GREATER_EQUAL, ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_LessEqual($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_LessEqual(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_LessEqual($javaNative ${column.uncapCamelName}, ConditionOptionCall<RangeFilterBuilder> opLambda) {
|
||||
RangeFilterBuilder builder = regRangeF("${column.name}", ConditionKey.CK_LESS_EQUAL, ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
#end
|
||||
#end
|
||||
}
|
|
@ -1,221 +0,0 @@
|
|||
package ${request.package}.cbean.cq.bs;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import ${request.package}.cbean.cq.${table.camelizedName}CQ;
|
||||
import ${request.package}.cbean.cf.${table.camelizedName}CF;
|
||||
import org.dbflute.cbean.ckey.ConditionKey;
|
||||
import org.elasticsearch.index.query.BoolQueryBuilder;
|
||||
import org.elasticsearch.index.query.FilteredQueryBuilder;
|
||||
import org.elasticsearch.index.query.FuzzyQueryBuilder;
|
||||
import org.elasticsearch.index.query.MatchQueryBuilder;
|
||||
import org.elasticsearch.index.query.PrefixQueryBuilder;
|
||||
import org.elasticsearch.index.query.RangeQueryBuilder;
|
||||
import org.elasticsearch.index.query.TermQueryBuilder;
|
||||
import org.elasticsearch.index.query.TermsQueryBuilder;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public abstract class Bs${table.camelizedName}CQ extends AbstractConditionQuery {
|
||||
|
||||
@Override
|
||||
public String asTableDbName() {
|
||||
return "${table.name}";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String xgetAliasName() {
|
||||
return "${table.name}";
|
||||
}
|
||||
|
||||
public void filtered(FilteredCall<${table.camelizedName}CQ, ${table.camelizedName}CF> filteredLambda) {
|
||||
filtered(filteredLambda, null);
|
||||
}
|
||||
|
||||
public void filtered(FilteredCall<${table.camelizedName}CQ, ${table.camelizedName}CF> filteredLambda,
|
||||
ConditionOptionCall<FilteredQueryBuilder> opLambda) {
|
||||
${table.camelizedName}CQ query = new ${table.camelizedName}CQ();
|
||||
${table.camelizedName}CF filter = new ${table.camelizedName}CF();
|
||||
filteredLambda.callback(query, filter);
|
||||
if (query.hasQueries()) {
|
||||
FilteredQueryBuilder builder = regFilteredQ(query.getQuery(), filter.getFilter());
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void bool(BoolCall<${table.camelizedName}CQ> boolLambda) {
|
||||
bool(boolLambda, null);
|
||||
}
|
||||
|
||||
public void bool(BoolCall<${table.camelizedName}CQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
|
||||
${table.camelizedName}CQ mustQuery = new ${table.camelizedName}CQ();
|
||||
${table.camelizedName}CQ shouldQuery = new ${table.camelizedName}CQ();
|
||||
${table.camelizedName}CQ mustNotQuery = new ${table.camelizedName}CQ();
|
||||
boolLambda.callback(mustQuery, shouldQuery, mustNotQuery);
|
||||
if (mustQuery.hasQueries() || shouldQuery.hasQueries() || mustNotQuery.hasQueries()) {
|
||||
BoolQueryBuilder builder = regBoolCQ(mustQuery.queryBuilderList, shouldQuery.queryBuilderList, mustNotQuery.queryBuilderList);
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#foreach ($column in $table.columnList)
|
||||
#if ($column.isNormalColumn)
|
||||
#set ($javaNative = ${column.type})
|
||||
public void set${column.capCamelName}_Equal($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_Term(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Equal($javaNative ${column.uncapCamelName}, ConditionOptionCall<TermQueryBuilder> opLambda) {
|
||||
set${column.capCamelName}_Term(${column.uncapCamelName}, opLambda);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Term($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_Term(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Term($javaNative ${column.uncapCamelName}, ConditionOptionCall<TermQueryBuilder> opLambda) {
|
||||
TermQueryBuilder builder = regTermQ("${column.name}", ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Terms(Collection<$javaNative> ${column.uncapCamelName}List) {
|
||||
set${column.capCamelName}_Terms(${column.uncapCamelName}List, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Terms(Collection<$javaNative> ${column.uncapCamelName}List, ConditionOptionCall<TermsQueryBuilder> opLambda) {
|
||||
TermsQueryBuilder builder = regTermsQ("${column.name}", ${column.uncapCamelName}List);
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_InScope(Collection<$javaNative> ${column.uncapCamelName}List) {
|
||||
set${column.capCamelName}_Terms(${column.uncapCamelName}List, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_InScope(Collection<$javaNative> ${column.uncapCamelName}List, ConditionOptionCall<TermsQueryBuilder> opLambda) {
|
||||
set${column.capCamelName}_Terms(${column.uncapCamelName}List, opLambda);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Match($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_Match(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Match($javaNative ${column.uncapCamelName}, ConditionOptionCall<MatchQueryBuilder> opLambda) {
|
||||
MatchQueryBuilder builder = regMatchQ("${column.name}", ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_MatchPhrase($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_MatchPhrase(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_MatchPhrase($javaNative ${column.uncapCamelName}, ConditionOptionCall<MatchQueryBuilder> opLambda) {
|
||||
MatchQueryBuilder builder = regMatchPhraseQ("${column.name}", ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_MatchPhrasePrefix($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_MatchPhrasePrefix(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_MatchPhrasePrefix($javaNative ${column.uncapCamelName}, ConditionOptionCall<MatchQueryBuilder> opLambda) {
|
||||
MatchQueryBuilder builder = regMatchPhrasePrefixQ("${column.name}", ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Fuzzy($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_Fuzzy(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Fuzzy($javaNative ${column.uncapCamelName}, ConditionOptionCall<FuzzyQueryBuilder> opLambda) {
|
||||
FuzzyQueryBuilder builder = regFuzzyQ("${column.name}", ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
#if ($javaNative == "String")
|
||||
public void set${column.capCamelName}_Prefix($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_Prefix(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_Prefix($javaNative ${column.uncapCamelName}, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
|
||||
PrefixQueryBuilder builder = regPrefixQ("${column.name}", ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
#end
|
||||
public void set${column.capCamelName}_GreaterThan($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_GreaterThan(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_GreaterThan($javaNative ${column.uncapCamelName}, ConditionOptionCall<RangeQueryBuilder> opLambda) {
|
||||
RangeQueryBuilder builder = regRangeQ("${column.name}", ConditionKey.CK_GREATER_THAN, ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_LessThan($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_LessThan(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_LessThan($javaNative ${column.uncapCamelName}, ConditionOptionCall<RangeQueryBuilder> opLambda) {
|
||||
RangeQueryBuilder builder = regRangeQ("${column.name}", ConditionKey.CK_LESS_THAN, ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_GreaterEqual($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_GreaterEqual(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_GreaterEqual($javaNative ${column.uncapCamelName}, ConditionOptionCall<RangeQueryBuilder> opLambda) {
|
||||
RangeQueryBuilder builder = regRangeQ("${column.name}", ConditionKey.CK_GREATER_EQUAL, ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_LessEqual($javaNative ${column.uncapCamelName}) {
|
||||
set${column.capCamelName}_LessEqual(${column.uncapCamelName}, null);
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}_LessEqual($javaNative ${column.uncapCamelName}, ConditionOptionCall<RangeQueryBuilder> opLambda) {
|
||||
RangeQueryBuilder builder = regRangeQ("${column.name}", ConditionKey.CK_LESS_EQUAL, ${column.uncapCamelName});
|
||||
if (opLambda != null) {
|
||||
opLambda.callback(builder);
|
||||
}
|
||||
}
|
||||
|
||||
public Bs${table.camelizedName}CQ addOrderBy_${column.capCamelName}_Asc() {
|
||||
regOBA("${column.name}");
|
||||
return this;
|
||||
}
|
||||
|
||||
public Bs${table.camelizedName}CQ addOrderBy_${column.capCamelName}_Desc() {
|
||||
regOBD("${column.name}");
|
||||
return this;
|
||||
}
|
||||
|
||||
#end
|
||||
#end
|
||||
}
|
|
@ -1,115 +0,0 @@
|
|||
package ${request.package}.bsentity;
|
||||
#if ($table.get("_id") && $table.get("_id").get("path"))
|
||||
#set ($idColumn = $table.get("_id").get("path"))
|
||||
#end
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import ${request.package}.bsentity.dbmeta.${table.camelizedName}Dbm;
|
||||
#if ($table.hasRefColumn)
|
||||
import ${request.package}.exentity.*;
|
||||
#end
|
||||
|
||||
/**
|
||||
* ${table.comment}
|
||||
* @author FreeGen
|
||||
*/
|
||||
public class Bs${table.camelizedName} extends AbstractEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public ${table.camelizedName}Dbm asDBMeta() {
|
||||
return ${table.camelizedName}Dbm.getInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String asTableDbName() {
|
||||
return "${table.name}";
|
||||
}
|
||||
|
||||
// ===================================================================================
|
||||
// Attribute
|
||||
// =========
|
||||
#set ($tableMetaSettings = ${table.indexSettings.settings.index.dbflute.get($table.name)})
|
||||
#foreach ($column in $table.columnList)
|
||||
#if ($column.isNormalColumn)
|
||||
#set ($javaNative = ${column.type})
|
||||
#elseif ($column.isRefColumn)
|
||||
#set ($javaNative = ${column.camelizedName})
|
||||
#end
|
||||
#if ($tableMetaSettings.properties.get($column.name).array)#set($arrayType = "[]")#else#set($arrayType = "")#end
|
||||
#if ($column.name != $idColumn)
|
||||
/** ${column.name} */
|
||||
protected ${javaNative}${arrayType} ${column.uncapCamelName};
|
||||
|
||||
#end
|
||||
#end
|
||||
// [Referrers] *comment only
|
||||
#foreach ($referrer in $table.referrerList)
|
||||
// o ${referrer.name}
|
||||
#end
|
||||
|
||||
// ===================================================================================
|
||||
// Accessor
|
||||
// ========
|
||||
#foreach ($column in $table.columnList)
|
||||
#if ($column.isNormalColumn)
|
||||
#set ($javaNative = ${column.type})
|
||||
#elseif ($column.isRefColumn)
|
||||
#set ($javaNative = ${column.camelizedName})
|
||||
#end
|
||||
#if ($tableMetaSettings.properties.get($column.name).array)#set($arrayType = "[]")#else#set($arrayType = "")#end
|
||||
#if ($column.name != $idColumn)
|
||||
#if ($javaNative == "boolean")
|
||||
public ${javaNative} is${column.capCamelName}() {
|
||||
checkSpecifiedProperty("${column.uncapCamelName}");
|
||||
return ${column.uncapCamelName};
|
||||
}
|
||||
#else
|
||||
public ${javaNative}${arrayType} get${column.capCamelName}() {
|
||||
checkSpecifiedProperty("${column.uncapCamelName}");
|
||||
return ${column.uncapCamelName};
|
||||
}
|
||||
#end
|
||||
|
||||
public void set${column.capCamelName}(${javaNative}${arrayType} value) {
|
||||
registerModifiedProperty("${column.uncapCamelName}");
|
||||
this.${column.uncapCamelName} = value;
|
||||
}
|
||||
|
||||
#else
|
||||
public ${javaNative} get${column.capCamelName}() {
|
||||
checkSpecifiedProperty("${column.uncapCamelName}");
|
||||
return asDocMeta().id();
|
||||
}
|
||||
|
||||
public void set${column.capCamelName}(${javaNative} value) {
|
||||
registerModifiedProperty("${column.uncapCamelName}");
|
||||
asDocMeta().id(value);
|
||||
}
|
||||
|
||||
#end
|
||||
#end
|
||||
|
||||
@Override
|
||||
public Map<String, Object> toSource() {
|
||||
Map<String, Object> sourceMap = new HashMap<>();
|
||||
#foreach ($column in $table.columnList)
|
||||
#if ($column.isNormalColumn)
|
||||
#if ($column.name != $idColumn)
|
||||
if (${column.uncapCamelName} != null) {
|
||||
sourceMap.put("${column.name}", ${column.uncapCamelName});
|
||||
}
|
||||
#else
|
||||
if (asDocMeta().id() != null) {
|
||||
sourceMap.put("${column.name}", asDocMeta().id());
|
||||
}
|
||||
#end
|
||||
#end
|
||||
#end
|
||||
return sourceMap;
|
||||
}
|
||||
}
|
|
@ -1,192 +0,0 @@
|
|||
package ${request.package}.bsentity.dbmeta;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import ${request.package}.exentity.${table.camelizedName};
|
||||
|
||||
import org.dbflute.Entity;
|
||||
import org.dbflute.dbmeta.AbstractDBMeta;
|
||||
import org.dbflute.dbmeta.info.ColumnInfo;
|
||||
import org.dbflute.dbmeta.info.UniqueInfo;
|
||||
import org.dbflute.dbmeta.name.TableSqlName;
|
||||
import org.dbflute.dbmeta.property.PropertyGateway;
|
||||
import org.dbflute.dbway.DBDef;
|
||||
import org.dbflute.util.DfTypeUtil;
|
||||
|
||||
|
||||
public class ${table.camelizedName}Dbm extends AbstractDBMeta {
|
||||
|
||||
// ===================================================================================
|
||||
// Singleton
|
||||
// =========
|
||||
private static final ${table.camelizedName}Dbm _instance = new ${table.camelizedName}Dbm();
|
||||
|
||||
private ${table.camelizedName}Dbm() {
|
||||
}
|
||||
|
||||
public static ${table.camelizedName}Dbm getInstance() {
|
||||
return _instance;
|
||||
}
|
||||
|
||||
// ===================================================================================
|
||||
// Property Gateway
|
||||
// ================
|
||||
// -----------------------------------------------------
|
||||
// Column Property
|
||||
// ---------------
|
||||
protected final Map<String, PropertyGateway> _epgMap = newHashMap();
|
||||
{
|
||||
#set ($tableMetaSettings = ${table.indexSettings.settings.index.dbflute.get($table.name)})
|
||||
#foreach ($col in $table.columnList)
|
||||
#if ($col.isNormalColumn)
|
||||
#set ($javaNative = ${col.type})
|
||||
#elseif ($col.isRefColumn)
|
||||
#set ($javaNative = ${col.camelizedName})
|
||||
#end
|
||||
#if ($tableMetaSettings.properties.get($col.name).array)
|
||||
setupEpg(_epgMap, et-> ((${table.camelizedName})et).get${col.camelizedName}(),(et,vl)->((${table.camelizedName}) et).set${col.camelizedName}((${javaNative}[])vl), "${col.uncapCamelName}");
|
||||
#else
|
||||
setupEpg(_epgMap, et-> ((${table.camelizedName})et).get${col.camelizedName}(),(et,vl)->((${table.camelizedName}) et).set${col.camelizedName}(DfTypeUtil.to${javaNative}(vl)), "${col.uncapCamelName}");
|
||||
#end
|
||||
#end
|
||||
}
|
||||
|
||||
@Override
|
||||
public PropertyGateway findPropertyGateway(final String prop) {
|
||||
return doFindEpg(_epgMap, prop);
|
||||
}
|
||||
|
||||
// ===================================================================================
|
||||
// Column Info
|
||||
// ===========
|
||||
#foreach ($col in $table.columnList)
|
||||
#if ($col.isNormalColumn)
|
||||
#set ($javaNative = ${col.type})
|
||||
#elseif ($col.isRefColumn)
|
||||
#set ($javaNative = ${col.camelizedName})
|
||||
#end
|
||||
#if ($tableMetaSettings.properties.get($col.name).array)#set($arrayType = "[]")#else#set($arrayType = "")#end
|
||||
protected final ColumnInfo _column${col.camelizedName} = cci("${col.name}", "${col.name}", null, null, ${javaNative}${arrayType}.class, "${col.uncapCamelName}", null, false, false, false, "${col.type}", 0, 0, null, false, null, null, null, null, null, false);
|
||||
#end
|
||||
|
||||
#foreach ($col in $table.columnList)
|
||||
public ColumnInfo column${col.camelizedName}() { return _column${col.camelizedName}; }
|
||||
#end
|
||||
|
||||
protected List<ColumnInfo> ccil() {
|
||||
List<ColumnInfo> ls = newArrayList();
|
||||
#foreach ($col in $table.columnList)
|
||||
ls.add(column${col.camelizedName}());
|
||||
#end
|
||||
return ls;
|
||||
}
|
||||
|
||||
// ===================================================================================
|
||||
// Table Info
|
||||
// ==========
|
||||
protected final String _tableDbName = "${table.name}";
|
||||
protected final String _tableDispName = "${table.name}";
|
||||
protected final String _tablePropertyName = "${table.camelizedName}";
|
||||
public String getTableDbName() { return _tableDbName; }
|
||||
@Override
|
||||
public String getTableDispName() { return _tableDispName; }
|
||||
@Override
|
||||
public String getTablePropertyName() { return _tablePropertyName; }
|
||||
@Override
|
||||
public TableSqlName getTableSqlName() { return null; }
|
||||
|
||||
@Override
|
||||
public String getProjectName() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getProjectPrefix() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGenerationGapBasePrefix() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DBDef getCurrentDBDef() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasPrimaryKey() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasCompoundPrimaryKey() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getEntityTypeName() {
|
||||
return "${request.package}.exentity.${table.camelizedName}";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getConditionBeanTypeName() {
|
||||
return "${request.package}.cbean.${table.camelizedName}CB";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBehaviorTypeName() {
|
||||
return "${request.package}.exbhv.${table.camelizedName}Bhv";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Entity> getEntityType() {
|
||||
return ${table.camelizedName}.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Entity newEntity() {
|
||||
return new ${table.camelizedName}();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void acceptPrimaryKeyMap(Entity entity, Map<String, ? extends Object> primaryKeyMap) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void acceptAllColumnMap(Entity entity, Map<String, ? extends Object> allColumnMap) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> extractPrimaryKeyMap(Entity entity) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> extractAllColumnMap(Entity entity) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected UniqueInfo cpui() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
package ${request.package}.cbean.result;
|
||||
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
|
||||
public class EsPagingResultBean<ENTITY> extends PagingResultBean<ENTITY> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
protected long took;
|
||||
|
||||
private int totalShards;
|
||||
|
||||
private int successfulShards;
|
||||
|
||||
private int failedShards;
|
||||
|
||||
public long getTook() {
|
||||
return took;
|
||||
}
|
||||
|
||||
public void setTook(long took) {
|
||||
this.took = took;
|
||||
}
|
||||
|
||||
public int getTotalShards() {
|
||||
return totalShards;
|
||||
}
|
||||
|
||||
public void setTotalShards(int totalShards) {
|
||||
this.totalShards = totalShards;
|
||||
}
|
||||
|
||||
public int getSuccessfulShards() {
|
||||
return successfulShards;
|
||||
}
|
||||
|
||||
public void setSuccessfulShards(int successfulShards) {
|
||||
this.successfulShards = successfulShards;
|
||||
}
|
||||
|
||||
public int getFailedShards() {
|
||||
return failedShards;
|
||||
}
|
||||
|
||||
public void setFailedShards(int failedShards) {
|
||||
this.failedShards = failedShards;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
package ${request.package}.exbhv;
|
||||
|
||||
import ${request.package}.bsbhv.Bs${table.camelizedName}Bhv;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public class ${table.camelizedName}Bhv extends Bs${table.camelizedName}Bhv {
|
||||
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
package ${request.package}.cbean;
|
||||
|
||||
import ${request.package}.cbean.bs.Bs${table.camelizedName}CB;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public class ${table.camelizedName}CB extends Bs${table.camelizedName}CB {
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
package ${request.package}.cbean.cf;
|
||||
|
||||
import ${request.package}.cbean.cf.bs.Bs${table.camelizedName}CF;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public class ${table.camelizedName}CF extends Bs${table.camelizedName}CF {
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
package ${request.package}.cbean.cq;
|
||||
|
||||
import ${request.package}.cbean.cq.bs.Bs${table.camelizedName}CQ;
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public class ${table.camelizedName}CQ extends Bs${table.camelizedName}CQ {
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
package ${request.package}.exentity;
|
||||
|
||||
import ${request.package}.bsentity.Bs${table.camelizedName};
|
||||
|
||||
/**
|
||||
* @author FreeGen
|
||||
*/
|
||||
public class ${table.camelizedName} extends Bs${table.camelizedName} {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
|
@ -1,69 +0,0 @@
|
|||
package ${request.package}.cbean.sqlclause;
|
||||
|
||||
import org.dbflute.cbean.sqlclause.AbstractSqlClause;
|
||||
import org.dbflute.dbway.DBWay;
|
||||
|
||||
public class SqlClauseEs extends AbstractSqlClause {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public SqlClauseEs(String tableDbName) {
|
||||
super(tableDbName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void lockForUpdate() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public DBWay dbway() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doFetchFirst() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doFetchPage() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doClearFetchPageClause() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String createSelectHint() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String createFromBaseTableHint() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String createFromHint() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String createSqlSuffix() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load diff
|
@ -1,864 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>fess schema</title>
|
||||
<style type="text/css">
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body {
|
||||
font-family: Verdana, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", "MS P Gothic", "MS Pゴシック", sans-serif;
|
||||
font-size: 80%;
|
||||
margin: 10px 5px 5px 15px;
|
||||
background-color: #ffffe0;
|
||||
}
|
||||
|
||||
/* heading */
|
||||
h1 {
|
||||
font-size: 1.5em;
|
||||
border-bottom: 2px solid #af0000;
|
||||
border-top: 2px solid #af0000;
|
||||
}
|
||||
h2 {
|
||||
margin: 30px 0 5px 0;
|
||||
font-size: 1.8em;
|
||||
border-bottom: 2px solid #af0000;
|
||||
border-left: 10px solid #af0000;
|
||||
text-indent: 10px;
|
||||
}
|
||||
h3 {
|
||||
padding: 0 0 0 10px;
|
||||
margin: 1em 10% 0 0;
|
||||
border-top: double 3px #af0000;
|
||||
border-bottom: solid 1px #333333;
|
||||
font-size: 1.5em;
|
||||
color: #333333;
|
||||
}
|
||||
h4 {
|
||||
padding: 0 0 0 10px;
|
||||
margin: 1em 10% 0 1em;
|
||||
border-top: solid 1px #af0000;
|
||||
border-bottom: solid 1px #af0000;
|
||||
font-size: 1.4em;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
/* total info */
|
||||
.updatedate {
|
||||
text-align: right;
|
||||
}
|
||||
.mainschema {
|
||||
text-align: right;
|
||||
}
|
||||
.navilinkarea {
|
||||
text-align: right;
|
||||
}
|
||||
.sublink {
|
||||
margin-top: 0.1em;
|
||||
}
|
||||
.sisterlink {
|
||||
margin-top: 0.6em;
|
||||
font-size: 120%;
|
||||
}
|
||||
.sistersublink {
|
||||
margin-top: 0.6em;
|
||||
font-size: 85%;
|
||||
}
|
||||
.sisterneighborlink {
|
||||
margin-top: 0.6em;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
/* keyword search */
|
||||
.keywordsearch {
|
||||
padding: 0.7em 0 0.7em 0;
|
||||
}
|
||||
.searchmemo {
|
||||
font-size: 0.9em;
|
||||
color: #114488;
|
||||
}
|
||||
.suggestionarea {
|
||||
padding: 0 0.2em 0.2em 0.2em;
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
zindex: 100;
|
||||
background-color: #DDFFDD;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #CCCCCC;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
/* table */
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
}
|
||||
table, th {
|
||||
border: 1px solid #555;
|
||||
}
|
||||
th {
|
||||
background-color: #cc9;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
td {
|
||||
border-bottom: 1px dotted #aaa;
|
||||
border-left: 1px solid #555;
|
||||
padding:2px;
|
||||
}
|
||||
.tablecomment {
|
||||
font-size: 0.8em;
|
||||
color: #3F7E5E;
|
||||
padding:0 0 0.2em 1em;
|
||||
}
|
||||
.rownumhead {
|
||||
text-align: center;
|
||||
font-size: 0.4em;
|
||||
}
|
||||
.rownumcell {
|
||||
text-align: center;
|
||||
font-size: 0.4em;
|
||||
color: #444;
|
||||
}
|
||||
.schemacell {
|
||||
font-size: 0.8em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.aliascell {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.flgcell {
|
||||
text-align: center;
|
||||
}
|
||||
.flgplus {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
.typecell {
|
||||
font-size: 0.6em;
|
||||
}
|
||||
.sizecell {
|
||||
text-align: center;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
.defvalcell {
|
||||
text-align: center;
|
||||
font-size: 0.6em;
|
||||
}
|
||||
.relcell {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
.commentcell {
|
||||
font-size: 0.7em;
|
||||
color: #3F7E5E;
|
||||
}
|
||||
.subcell {
|
||||
font-size: 0.6em;
|
||||
}
|
||||
.comcolcell {
|
||||
color: #666;
|
||||
}
|
||||
.optcell {
|
||||
font-style: italic;
|
||||
}
|
||||
.additionalpk {
|
||||
font-style: italic;
|
||||
}
|
||||
.additionalfk {
|
||||
font-style: italic;
|
||||
}
|
||||
.clstypecell {
|
||||
text-align: center;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
.commentdesc {
|
||||
color: #3F7E5E;
|
||||
}
|
||||
|
||||
/* inner table */
|
||||
table.child {
|
||||
margin: 3px;
|
||||
}
|
||||
table.child th {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
table.child, table.child td, table.child th {
|
||||
border-top: none;
|
||||
border-left: none;
|
||||
border-bottom: 1px solid #aaa;
|
||||
border-right: 1px solid #aaa;
|
||||
}
|
||||
.clsgroup {
|
||||
font-size: 1.2em;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
/* table supplementary info */
|
||||
span.tableschema {
|
||||
font-size: 0.6em;
|
||||
}
|
||||
span.bqpcount {
|
||||
font-size: 0.5em;
|
||||
}
|
||||
dl.bqplist {
|
||||
padding-left: 2em;
|
||||
}
|
||||
dl.bqplist dt {
|
||||
display: list-item;
|
||||
font-size: 1.3em;
|
||||
margin-top: 0.3em;
|
||||
}
|
||||
dl.bqplist dd {
|
||||
padding-left: 1em;
|
||||
}
|
||||
dl.bqplist dd pre {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
dl.bqplist dd.subinfo {
|
||||
padding-left: 2em;
|
||||
}
|
||||
dl.bqplist dd.subinfo span.sqlap {
|
||||
font-style: italic;
|
||||
color: #002266;
|
||||
}
|
||||
dl.bqplist dd.subinfo span.file {
|
||||
font-style: italic;
|
||||
color: #002266;
|
||||
}
|
||||
dl.bqplist dd.subinfo span.ctet {
|
||||
color: green;
|
||||
}
|
||||
dl.bqplist dd.subinfo span.pmb {
|
||||
color: green;
|
||||
}
|
||||
dl.procedurelist {
|
||||
padding-left: 2em;
|
||||
}
|
||||
dl.procedurelist dt {
|
||||
display: list-item;
|
||||
font-size: 1.3em;
|
||||
margin-top: 0.3em;
|
||||
}
|
||||
dl.procedurelist dt span.type {
|
||||
font-size: 0.7em;
|
||||
color: green;
|
||||
}
|
||||
dl.procedurelist dd {
|
||||
padding-left: 1em;
|
||||
}
|
||||
dl.procedurelist dd pre {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
dl.procedurelist dd.column {
|
||||
font-style: italic;
|
||||
padding-left: 2em;
|
||||
}
|
||||
dl.procedurelist dd.column span.attrs {
|
||||
font-size: 0.7em;
|
||||
color: #125699;
|
||||
}
|
||||
dl.procedurelist dd.column span.type {
|
||||
font-size: 0.9em;
|
||||
color: green;
|
||||
}
|
||||
dl.procedurelist dd.column pre {
|
||||
padding-left: 1em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Schema for fess (h2)</h1>
|
||||
<p class="mainschema">generated from <strong>DUMMYDB.PUBLIC</strong></p>
|
||||
<div class="navilinkarea">
|
||||
<p class="sistersublink"><a href="./properties-fess.html">to PropertiesHTML</a></p>
|
||||
</div>
|
||||
|
||||
<h2>Table List</h2>
|
||||
<div class="keywordsearch">
|
||||
<input type="text" id="incremental-search-field" tabindex=1 value="" placeholder="Table Search" />
|
||||
<ul id="suggestion-list" class="suggestionarea"></ul>
|
||||
<span class="searchmemo">*Push 'tab' (primary tab order)</span>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="rownumhead">No.</th>
|
||||
<th>Name</th>
|
||||
<th>Type</th>
|
||||
<th>ForeignTable</th>
|
||||
<th>ReferrerTable</th>
|
||||
<th>EntityName</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="table-list-body">
|
||||
<tr>
|
||||
<td class="rownumcell">1</td>
|
||||
<td><a href="#dummy_member" title="type=TABLE, primaryKey={MEMBER_ID}, nameLength=12, columnCount=11">DUMMY_MEMBER</a></td>
|
||||
<td class="typecell">TABLE</td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">DummyMember</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h2 id="dummy_member" title="type=TABLE, primaryKey={MEMBER_ID}, nameLength=12, columnCount=11">
|
||||
DUMMY_MEMBER
|
||||
</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="rownumhead">No.</th>
|
||||
<th>PK</th>
|
||||
<th>ID</th>
|
||||
<th>UQ</th>
|
||||
<th>IX</th>
|
||||
<th>Not<br />Null</th>
|
||||
<th>Name</th>
|
||||
<th>Type</th>
|
||||
<th>Size</th>
|
||||
<th>ForeignTable</th>
|
||||
<th>ReferrerTable</th>
|
||||
<th>Classification</th>
|
||||
<th>PropertyName</th>
|
||||
<th>JavaType</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td class="rownumcell">1</td>
|
||||
<td class="flgcell" title="CONSTRAINT_D">o</td>
|
||||
<td class="flgcell">o</td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell">*</td>
|
||||
<td id="dummy_member_member_id">MEMBER_ID</td>
|
||||
<td class="typecell">INTEGER</td>
|
||||
<td class="sizecell"> 10 </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">memberId</td>
|
||||
<td class="subcell">Integer</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rownumcell">2</td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell">*</td>
|
||||
<td id="dummy_member_member_name">MEMBER_NAME</td>
|
||||
<td class="typecell">VARCHAR</td>
|
||||
<td class="sizecell"> 200 </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">memberName</td>
|
||||
<td class="subcell">String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rownumcell">3</td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell">*</td>
|
||||
<td id="dummy_member_member_account">MEMBER_ACCOUNT</td>
|
||||
<td class="typecell">VARCHAR</td>
|
||||
<td class="sizecell"> 50 </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">memberAccount</td>
|
||||
<td class="subcell">String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rownumcell">4</td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell">*</td>
|
||||
<td id="dummy_member_member_status_code">MEMBER_STATUS_CODE</td>
|
||||
<td class="typecell">CHAR</td>
|
||||
<td class="sizecell"> 3 </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">memberStatusCode</td>
|
||||
<td class="subcell">String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rownumcell">5</td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td id="dummy_member_formalized_datetime">FORMALIZED_DATETIME</td>
|
||||
<td class="typecell">TIMESTAMP</td>
|
||||
<td class="sizecell"> 23, 10 </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">formalizedDatetime</td>
|
||||
<td class="subcell">LocalDateTime</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rownumcell">6</td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td id="dummy_member_birthdate">BIRTHDATE</td>
|
||||
<td class="typecell">DATE</td>
|
||||
<td class="sizecell"> 8 </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">birthdate</td>
|
||||
<td class="subcell">LocalDate</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rownumcell">7</td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell">*</td>
|
||||
<td id="dummy_member_register_datetime">REGISTER_DATETIME</td>
|
||||
<td class="typecell">TIMESTAMP</td>
|
||||
<td class="sizecell"> 23, 10 </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">registerDatetime</td>
|
||||
<td class="subcell">LocalDateTime</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rownumcell">8</td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell">*</td>
|
||||
<td id="dummy_member_register_user">REGISTER_USER</td>
|
||||
<td class="typecell">VARCHAR</td>
|
||||
<td class="sizecell"> 200 </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">registerUser</td>
|
||||
<td class="subcell">String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rownumcell">9</td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell">*</td>
|
||||
<td id="dummy_member_update_datetime">UPDATE_DATETIME</td>
|
||||
<td class="typecell">TIMESTAMP</td>
|
||||
<td class="sizecell"> 23, 10 </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">updateDatetime</td>
|
||||
<td class="subcell">LocalDateTime</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rownumcell">10</td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell">*</td>
|
||||
<td id="dummy_member_update_user">UPDATE_USER</td>
|
||||
<td class="typecell">VARCHAR</td>
|
||||
<td class="sizecell"> 200 </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">updateUser</td>
|
||||
<td class="subcell">String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rownumcell">11</td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell"> </td>
|
||||
<td class="flgcell">*</td>
|
||||
<td class="optcell" id="dummy_member_version_no">VERSION_NO</td>
|
||||
<td class="typecell">BIGINT</td>
|
||||
<td class="sizecell"> 19 </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="relcell"> </td>
|
||||
<td class="subcell">versionNo</td>
|
||||
<td class="subcell">Long</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 id="thanks">Thanks</h2>
|
||||
<p>
|
||||
Created by <a href="http://dbflute.org/">DBFlute(AutoGenerator)</a>
|
||||
</p>
|
||||
<script>
|
||||
/**
|
||||
* Incremental Search contributed by makotot (Thanks!)
|
||||
*
|
||||
* and extended by jflute:
|
||||
* o style adjustment
|
||||
* o varying name index
|
||||
* o prefix search priority
|
||||
*/
|
||||
|
||||
// this index value depends on DBFlute settings
|
||||
// so defines it here as global for easy-to-understand
|
||||
var NAME_INDEX = 1; // number, name
|
||||
|
||||
function Incremental (targetInput, dist) {
|
||||
this.targetInput = targetInput;
|
||||
this.dist = dist;
|
||||
this.query = '';
|
||||
this.suggestionIdx = 0;
|
||||
this.currentSuggestion = '';
|
||||
}
|
||||
|
||||
Incremental.prototype = {
|
||||
|
||||
/**
|
||||
* @method init
|
||||
*/
|
||||
init: function () {
|
||||
var dataList = this.getDataList();
|
||||
|
||||
this.distDataList = dataList.distList;
|
||||
this.sectionList = dataList.sectionList;
|
||||
this.buildSuggestList();
|
||||
this.attachEvent();
|
||||
},
|
||||
|
||||
/**
|
||||
* @method buildSuggetList
|
||||
*/
|
||||
buildSuggestList: function () {
|
||||
var fragment = document.createDocumentFragment(),
|
||||
ul = document.getElementById('suggestion-list');
|
||||
|
||||
this.ul = ul;
|
||||
this.setupLinkElement(fragment); // for prefix area
|
||||
this.setupLinkElement(fragment); // for contain area
|
||||
ul.appendChild(fragment);
|
||||
|
||||
this.attachSuggestionEvent();
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setupLinkElement
|
||||
*/
|
||||
setupLinkElement: function (fragment) {
|
||||
var li, anchor;
|
||||
for (var i = 0, max = this.distDataList.length; i < max; i++) {
|
||||
li = document.createElement('li');
|
||||
li.style.display = 'none';
|
||||
anchor = document.createElement('a');
|
||||
anchor.href = this.sectionList[i];
|
||||
|
||||
var distData = this.distDataList[i];
|
||||
if (document.body.dataset) {
|
||||
anchor.dataset.name = distData;
|
||||
} else {
|
||||
anchor.setAttribute('data-name', distData); // for searching
|
||||
}
|
||||
|
||||
this.util.setElemTxt(anchor, distData); // for display
|
||||
|
||||
li.appendChild(anchor);
|
||||
fragment.appendChild(li);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @method attachEvent
|
||||
*/
|
||||
attachEvent: function () {
|
||||
var self = this,
|
||||
eventHandler = function () {
|
||||
self.displaySuggestion();
|
||||
},
|
||||
eventName = ('oninput' in window) ? 'input' : 'propertychange';
|
||||
|
||||
this.util.addEvent(this.targetInput, eventName, eventHandler);
|
||||
},
|
||||
|
||||
/**
|
||||
* @method displaySuggestion
|
||||
*/
|
||||
displaySuggestion: function () {
|
||||
this.query = (this.util.trim(this.targetInput.value)).toLowerCase();
|
||||
|
||||
var i, j, max;
|
||||
|
||||
this.resetSuggestion();
|
||||
|
||||
var visibleList;
|
||||
|
||||
if (this.query.length) {
|
||||
var alreadyCheckedData = {}; // to suppress duplicate check (key only used)
|
||||
var distDataCount = this.distDataList.length; // to determine prefix or contain area
|
||||
var hitCount = 0; // to suppress large result (primitive counter just in case)
|
||||
for (i = 0, max = this.ul.childNodes.length; i < max && hitCount <= 100; i++) {
|
||||
var childNode = this.ul.childNodes[i];
|
||||
var anchor = childNode.getElementsByTagName('a')[0]; // always only one
|
||||
var dataName = anchor.getAttribute('data-name'); // e.g. table name
|
||||
if (alreadyCheckedData[dataName] != null) { // to suppress duplicate check
|
||||
continue;
|
||||
}
|
||||
if (i < distDataCount && dataName.lastIndexOf(this.query, 0) > -1) { // prefix hit
|
||||
childNode.searchDirection = 'prefix';
|
||||
alreadyCheckedData[dataName] = 'dummy';
|
||||
++hitCount;
|
||||
} else if (i >= distDataCount && dataName.indexOf(this.query) > -1) { // contain hit
|
||||
childNode.searchDirection = 'contain';
|
||||
alreadyCheckedData[dataName] = 'dummy';
|
||||
++hitCount;
|
||||
} else {
|
||||
childNode.searchDirection = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
visibleList = this.filterVisibleChild();
|
||||
|
||||
if (visibleList.length) {
|
||||
visibleList[0].style.backgroundColor = '#CCCCCC';
|
||||
}
|
||||
} else {
|
||||
for (i = 0, max = this.ul.childNodes.length; i < max; i++) {
|
||||
var childNode = this.ul.childNodes[i];
|
||||
childNode.searchDirection = null; // clear
|
||||
childNode.style.display = 'none'; // all none
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getDataList
|
||||
*/
|
||||
getDataList: function () {
|
||||
var tr = this.dist.getElementsByTagName('tr'),
|
||||
distDataList = [],
|
||||
sectionIdList = [];
|
||||
|
||||
for (var i = 0, max = tr.length; i < max; i++) {
|
||||
distDataList.push(this.util.getElemTxt(tr[i].getElementsByTagName('td')[NAME_INDEX]).toLowerCase());
|
||||
sectionIdList.push(tr[i].getElementsByTagName('td')[NAME_INDEX].getElementsByTagName('a')[0].getAttribute('href'));
|
||||
}
|
||||
|
||||
return {
|
||||
distList: distDataList,
|
||||
sectionList: sectionIdList
|
||||
};
|
||||
},
|
||||
|
||||
/**
|
||||
* @method attachSuggestionEvent
|
||||
*/
|
||||
attachSuggestionEvent: function () {
|
||||
var self = this;
|
||||
|
||||
this.util.addEvent(this.targetInput, 'keyup', function (e) {
|
||||
self.selectSuggestion(e);
|
||||
self.setInputValue(e);
|
||||
});
|
||||
this.util.addEvent(this.targetInput, 'blur', function () {
|
||||
setTimeout(function () {
|
||||
self.resetSuggestion();
|
||||
}, 100);
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* @method selectSuggestion
|
||||
*/
|
||||
selectSuggestion: function (ev) {
|
||||
var keyCode = ev.keyCode,
|
||||
visibleChildNodes = this.filterVisibleChild(),
|
||||
prevIdx;
|
||||
|
||||
if (keyCode === 38 || keyCode === 40) {
|
||||
|
||||
if (visibleChildNodes.length) {
|
||||
prevIdx = this.suggestionIdx;
|
||||
|
||||
if (keyCode === 40 && this.suggestionIdx < visibleChildNodes.length - 1) {
|
||||
this.suggestionIdx++;
|
||||
}
|
||||
|
||||
if (keyCode === 38 && this.suggestionIdx > 0) {
|
||||
this.suggestionIdx--;
|
||||
}
|
||||
|
||||
if (prevIdx > -1) {
|
||||
visibleChildNodes[prevIdx].style.backgroundColor = '';
|
||||
}
|
||||
|
||||
visibleChildNodes[this.suggestionIdx].style.backgroundColor = '#CCCCCC';
|
||||
this.currentSuggestion = this.util.getElemTxt(visibleChildNodes[this.suggestionIdx]);
|
||||
|
||||
} else if (this.query.length) {
|
||||
|
||||
this.displaySuggestion();
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.query.length) {
|
||||
this.resetSuggestion();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setInputValue
|
||||
* @param ev {Object}
|
||||
*/
|
||||
setInputValue: function (ev) {
|
||||
var keyCode = ev.keyCode,
|
||||
visibleChildNodes = this.filterVisibleChild(),
|
||||
currentSuggestionTxt,
|
||||
selectedSection;
|
||||
|
||||
if (visibleChildNodes.length) {
|
||||
currentSuggestionTxt = this.util.getElemTxt(visibleChildNodes[this.suggestionIdx]);
|
||||
|
||||
if (keyCode === 13) {
|
||||
this.targetInput.value = currentSuggestionTxt;
|
||||
selectedSection = this.getSelectedSection(visibleChildNodes[this.suggestionIdx]);
|
||||
this.clearSuggestion();
|
||||
this.scrollToSelectedSection(selectedSection);
|
||||
this.setHash(selectedSection);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @method filterVisibleChild
|
||||
*/
|
||||
filterVisibleChild: function () {
|
||||
var visibleChildNodes = [];
|
||||
|
||||
// ordered by prefix, contain
|
||||
for (var i = 0, max = this.ul.childNodes.length; i < max; i++) {
|
||||
var childNode = this.ul.childNodes[i];
|
||||
if (childNode.searchDirection === 'prefix') {
|
||||
visibleChildNodes.push(childNode);
|
||||
childNode.style.display = 'block';
|
||||
} else if (childNode.searchDirection === 'contain') {
|
||||
visibleChildNodes.push(childNode);
|
||||
childNode.style.display = 'block';
|
||||
} else {
|
||||
childNode.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
return visibleChildNodes;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method clearSuggestion
|
||||
*/
|
||||
clearSuggestion: function () {
|
||||
for (var i = 0, max = this.ul.childNodes.length; i < max; i++) {
|
||||
var childNode = this.ul.childNodes[i];
|
||||
childNode.searchDirection = null;
|
||||
childNode.style.display = 'none';
|
||||
childNode.style.backgroundColor = '';
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @method resetSuggestion
|
||||
*/
|
||||
resetSuggestion: function () {
|
||||
this.clearSuggestion();
|
||||
|
||||
this.suggestionIdx = 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getSelectedSection
|
||||
* @param suggestionNode {Object}
|
||||
* @return selectedIdx {Number}
|
||||
*/
|
||||
getSelectedSection: function (suggestionNode) {
|
||||
var selectedIdx;
|
||||
|
||||
for (var i = 0, max = this.ul.childNodes.length; i < max; i++) {
|
||||
if (this.ul.childNodes[i] === suggestionNode) {
|
||||
selectedIdx = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return selectedIdx;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method scrollToSelectedSection
|
||||
* @param idx {Number}
|
||||
*/
|
||||
scrollToSelectedSection: function (idx) {
|
||||
var selectedId = this.ul.childNodes[idx].getElementsByTagName('a')[0].href.split('#')[1],
|
||||
targetSection = document.getElementById(selectedId);
|
||||
|
||||
window.scrollTo(0, targetSection.offsetTop);
|
||||
this.targetInput.blur();
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setHash
|
||||
*/
|
||||
setHash: function (idx) {
|
||||
var selectedId = this.ul.childNodes[idx].getElementsByTagName('a')[0].href.split('#')[1];
|
||||
|
||||
window.location.hash = selectedId;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Incremental.prototype.util = {
|
||||
|
||||
addEvent: function (elem, ev, fn) {
|
||||
if (elem.addEventListener) {
|
||||
elem.addEventListener(ev, fn, false);
|
||||
} else if (elem.attachEvent) {
|
||||
elem.attachEvent('on' + ev, fn);
|
||||
} else {
|
||||
elem['on' + ev] = fn;
|
||||
}
|
||||
},
|
||||
|
||||
trim: function (txt) {
|
||||
return (String.prototype.trim) ? txt.trim() : txt.replace(/^\s+|\s+$/g, '');
|
||||
},
|
||||
|
||||
getElemTxt: function (elem) {
|
||||
return (elem.innerText !== undefined) ? elem.innerText : elem.textContent;
|
||||
},
|
||||
|
||||
setElemTxt: function (elem, data) {
|
||||
return (elem.innerText !== undefined) ? (elem.innerText = data) : (elem.textContent = data);
|
||||
}
|
||||
};
|
||||
|
||||
var searcher = new Incremental(document.getElementById('incremental-search-field'), document.getElementById('table-list-body'));
|
||||
searcher.init();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,66 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>fess lasta_doc</title>
|
||||
<style type="text/css">
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body {
|
||||
font-family: Verdana, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", "MS P Gothic", "MS Pゴシック", sans-serif;
|
||||
font-size: 80%;
|
||||
margin: 10px 5px 5px 15px;
|
||||
background-color: #ffffe0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
/ :: RootAction <br>
|
||||
/admin/ :: AdminAction <br>
|
||||
/dict/ :: DictAction <br>
|
||||
/admin/boostdocumentrule/ :: AdminBoostdocumentruleAction <br>
|
||||
/admin/crawl/ :: AdminCrawlAction <br>
|
||||
/admin/crawlingsession/ :: AdminCrawlingsessionAction <br>
|
||||
/admin/dataconfig/ :: AdminDataconfigAction <br>
|
||||
/admin/design/ :: AdminDesignAction <br>
|
||||
/synonym/ :: SynonymAction <br>
|
||||
/user/dict/ :: UserDictAction <br>
|
||||
/admin/failureurl/ :: AdminFailureurlAction <br>
|
||||
/admin/fileauthentication/ :: AdminFileauthenticationAction <br>
|
||||
/admin/fileconfig/ :: AdminFileconfigAction <br>
|
||||
/admin/group/ :: AdminGroupAction <br>
|
||||
/admin/joblog/ :: AdminJoblogAction <br>
|
||||
/admin/keymatch/ :: AdminKeymatchAction <br>
|
||||
/admin/labeltype/ :: AdminLabeltypeAction <br>
|
||||
/admin/log/ :: AdminLogAction <br>
|
||||
/admin/overlappinghost/ :: AdminOverlappinghostAction <br>
|
||||
/admin/pathmapping/ :: AdminPathmappingAction <br>
|
||||
/admin/requestheader/ :: AdminRequestheaderAction <br>
|
||||
/admin/role/ :: AdminRoleAction <br>
|
||||
/admin/roletype/ :: AdminRoletypeAction <br>
|
||||
/admin/scheduledjob/ :: AdminScheduledjobAction <br>
|
||||
/admin/searchlist/ :: AdminSearchlistAction <br>
|
||||
/admin/suggestbadword/ :: AdminSuggestbadwordAction <br>
|
||||
/admin/suggestelevateword/ :: AdminSuggestelevatewordAction <br>
|
||||
/admin/system/ :: AdminSystemAction <br>
|
||||
/admin/systeminfo/ :: AdminSysteminfoAction <br>
|
||||
/admin/user/ :: AdminUserAction <br>
|
||||
/admin/webauthentication/ :: AdminWebauthenticationAction <br>
|
||||
/admin/webconfig/ :: AdminWebconfigAction <br>
|
||||
/admin/wizard/ :: AdminWizardAction <br>
|
||||
/fess/admin/ :: FessAdminAction <br>
|
||||
/fess/base/ :: FessBaseAction <br>
|
||||
/fess/search/ :: FessSearchAction <br>
|
||||
/cache/ :: CacheAction <br>
|
||||
/error/ :: ErrorAction <br>
|
||||
/go/ :: GoAction <br>
|
||||
/help/ :: HelpAction <br>
|
||||
/login/ :: LoginAction <br>
|
||||
/logout/ :: LogoutAction <br>
|
||||
/osdd/ :: OsddAction <br>
|
||||
/screenshot/ :: ScreenshotAction <br>
|
||||
/search/ :: SearchAction <br>
|
||||
</body>
|
||||
</html>
|
|
@ -1,38 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE database SYSTEM "http://dbflute.org/meta/database.dtd">
|
||||
<!-- Auto-generated by JDBC task! -->
|
||||
<database name="PUBLIC">
|
||||
<table name="DUMMY_MEMBER" schema="DUMMYDB.PUBLIC" type="TABLE">
|
||||
<column autoIncrement="true" comment="" dbType="INTEGER"
|
||||
default="NEXT VALUE FOR PUBLIC.SYSTEM_SEQUENCE_05D1DE4D_7162_4229_BA69_C016D6C8EA5C"
|
||||
javaType="Integer" name="MEMBER_ID" pkName="CONSTRAINT_D"
|
||||
pkPosition="1" primaryKey="true" required="true" size="10" type="INTEGER"/>
|
||||
<column comment="" dbType="VARCHAR" javaType="String"
|
||||
name="MEMBER_NAME" required="true" size="200" type="VARCHAR"/>
|
||||
<column comment="" dbType="VARCHAR" javaType="String"
|
||||
name="MEMBER_ACCOUNT" required="true" size="50" type="VARCHAR"/>
|
||||
<column comment="" dbType="CHAR" javaType="String"
|
||||
name="MEMBER_STATUS_CODE" required="true" size="3" type="CHAR"/>
|
||||
<column comment="" dbType="TIMESTAMP"
|
||||
javaType="java.time.LocalDateTime"
|
||||
name="FORMALIZED_DATETIME" size="23, 10" type="TIMESTAMP"/>
|
||||
<column comment="" dbType="DATE" javaType="java.time.LocalDate"
|
||||
name="BIRTHDATE" size="8" type="DATE"/>
|
||||
<column comment="" dbType="TIMESTAMP"
|
||||
javaType="java.time.LocalDateTime" name="REGISTER_DATETIME"
|
||||
required="true" size="23, 10" type="TIMESTAMP"/>
|
||||
<column comment="" dbType="VARCHAR" javaType="String"
|
||||
name="REGISTER_USER" required="true" size="200" type="VARCHAR"/>
|
||||
<column comment="" dbType="TIMESTAMP"
|
||||
javaType="java.time.LocalDateTime" name="UPDATE_DATETIME"
|
||||
required="true" size="23, 10" type="TIMESTAMP"/>
|
||||
<column comment="" dbType="VARCHAR" javaType="String"
|
||||
name="UPDATE_USER" required="true" size="200" type="VARCHAR"/>
|
||||
<column comment="" dbType="BIGINT" javaType="Long"
|
||||
name="VERSION_NO" required="true" size="19" type="BIGINT"/>
|
||||
</table>
|
||||
<sequenceGroup>
|
||||
<sequence incrementSize="1"
|
||||
name="SYSTEM_SEQUENCE_05D1DE4D_7162_4229_BA69_C016D6C8EA5C" schema="DUMMYDB.PUBLIC"/>
|
||||
</sequenceGroup>
|
||||
</database>
|
6
pom.xml
6
pom.xml
|
@ -39,11 +39,11 @@
|
|||
|
||||
<!-- Main Framework -->
|
||||
<dbflute.version>1.1.0-sp8</dbflute.version>
|
||||
<lastaflute.version>0.6.5-A-SNAPSHOT</lastaflute.version>
|
||||
<lastaflute.version>0.6.5-RC1</lastaflute.version>
|
||||
<lasta.taglib.version>0.6.0</lasta.taglib.version>
|
||||
<servlet.version>3.1.0</servlet.version>
|
||||
<jsp.version>2.3.1</jsp.version>
|
||||
<mailflute.version>0.4.2</mailflute.version>
|
||||
<mailflute.version>0.4.3-RC1</mailflute.version>
|
||||
|
||||
<!-- Partner Library -->
|
||||
<slf4j.version>1.7.12</slf4j.version>
|
||||
|
@ -64,7 +64,7 @@
|
|||
<cluster.runner.version>1.7.0.1-SNAPSHOT</cluster.runner.version>
|
||||
|
||||
<!-- Tomcat -->
|
||||
<tomcat.boot.version>0.3.8-C-SNAPSHOT</tomcat.boot.version>
|
||||
<tomcat.boot.version>0.3.8-RC9</tomcat.boot.version>
|
||||
|
||||
<!-- Maven Repository -->
|
||||
<maven.snapshot.repo.url>https://oss.sonatype.org/content/repositories/snapshots</maven.snapshot.repo.url>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
/*
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
package org.codelibs.fess;
|
||||
|
||||
import java.io.File;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.api;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.api;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.api;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.api;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.api;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
/*
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
package org.codelibs.fess.api.es;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.api.json;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
/*
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
package org.codelibs.fess.api.suggest;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.pager;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.BoostDocumentRulePager;
|
||||
import org.codelibs.fess.es.cbean.BoostDocumentRuleCB;
|
||||
import org.codelibs.fess.es.exbhv.BoostDocumentRuleBhv;
|
||||
import org.codelibs.fess.es.exentity.BoostDocumentRule;
|
||||
import org.codelibs.fess.es.config.cbean.BoostDocumentRuleCB;
|
||||
import org.codelibs.fess.es.config.exbhv.BoostDocumentRuleBhv;
|
||||
import org.codelibs.fess.es.config.exentity.BoostDocumentRule;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -40,11 +39,11 @@ import org.codelibs.core.beans.util.BeanUtil;
|
|||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.CrawlingSessionPager;
|
||||
import org.codelibs.fess.es.cbean.CrawlingSessionCB;
|
||||
import org.codelibs.fess.es.exbhv.CrawlingSessionBhv;
|
||||
import org.codelibs.fess.es.exbhv.CrawlingSessionInfoBhv;
|
||||
import org.codelibs.fess.es.exentity.CrawlingSession;
|
||||
import org.codelibs.fess.es.exentity.CrawlingSessionInfo;
|
||||
import org.codelibs.fess.es.config.cbean.CrawlingSessionCB;
|
||||
import org.codelibs.fess.es.config.exbhv.CrawlingSessionBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.CrawlingSessionInfoBhv;
|
||||
import org.codelibs.fess.es.config.exentity.CrawlingSession;
|
||||
import org.codelibs.fess.es.config.exentity.CrawlingSessionInfo;
|
||||
import org.codelibs.fess.exception.FessSystemException;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.dbflute.bhv.readable.EntityRowHandler;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -26,13 +25,13 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.DataConfigPager;
|
||||
import org.codelibs.fess.es.cbean.DataConfigCB;
|
||||
import org.codelibs.fess.es.exbhv.DataConfigBhv;
|
||||
import org.codelibs.fess.es.exbhv.DataConfigToLabelBhv;
|
||||
import org.codelibs.fess.es.exbhv.DataConfigToRoleBhv;
|
||||
import org.codelibs.fess.es.exentity.DataConfig;
|
||||
import org.codelibs.fess.es.exentity.DataConfigToLabel;
|
||||
import org.codelibs.fess.es.exentity.DataConfigToRole;
|
||||
import org.codelibs.fess.es.config.cbean.DataConfigCB;
|
||||
import org.codelibs.fess.es.config.exbhv.DataConfigBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.DataConfigToLabelBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.DataConfigToRoleBhv;
|
||||
import org.codelibs.fess.es.config.exentity.DataConfig;
|
||||
import org.codelibs.fess.es.config.exentity.DataConfigToLabel;
|
||||
import org.codelibs.fess.es.config.exentity.DataConfigToRole;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
|
@ -32,10 +31,10 @@ import org.codelibs.core.lang.StringUtil;
|
|||
import org.codelibs.core.misc.DynamicProperties;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.FailureUrlPager;
|
||||
import org.codelibs.fess.es.cbean.FailureUrlCB;
|
||||
import org.codelibs.fess.es.exbhv.FailureUrlBhv;
|
||||
import org.codelibs.fess.es.exentity.CrawlingConfig;
|
||||
import org.codelibs.fess.es.exentity.FailureUrl;
|
||||
import org.codelibs.fess.es.config.cbean.FailureUrlCB;
|
||||
import org.codelibs.fess.es.config.exbhv.FailureUrlBhv;
|
||||
import org.codelibs.fess.es.config.exentity.CrawlingConfig;
|
||||
import org.codelibs.fess.es.config.exentity.FailureUrl;
|
||||
import org.codelibs.fess.helper.SystemHelper;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.dbflute.cbean.result.ListResultBean;
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
/*
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -6,9 +21,9 @@ import java.util.List;
|
|||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.codelibs.fess.es.exbhv.FavoriteLogBhv;
|
||||
import org.codelibs.fess.es.exbhv.UserInfoBhv;
|
||||
import org.codelibs.fess.es.exentity.FavoriteLog;
|
||||
import org.codelibs.fess.es.log.exbhv.FavoriteLogBhv;
|
||||
import org.codelibs.fess.es.log.exbhv.UserInfoBhv;
|
||||
import org.codelibs.fess.es.log.exentity.FavoriteLog;
|
||||
import org.codelibs.fess.helper.SystemHelper;
|
||||
import org.dbflute.cbean.result.ListResultBean;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.FileAuthenticationPager;
|
||||
import org.codelibs.fess.es.cbean.FileAuthenticationCB;
|
||||
import org.codelibs.fess.es.exbhv.FileAuthenticationBhv;
|
||||
import org.codelibs.fess.es.exentity.FileAuthentication;
|
||||
import org.codelibs.fess.es.config.cbean.FileAuthenticationCB;
|
||||
import org.codelibs.fess.es.config.exbhv.FileAuthenticationBhv;
|
||||
import org.codelibs.fess.es.config.exentity.FileAuthentication;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -26,13 +25,13 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.FileConfigPager;
|
||||
import org.codelibs.fess.es.cbean.FileConfigCB;
|
||||
import org.codelibs.fess.es.exbhv.FileConfigBhv;
|
||||
import org.codelibs.fess.es.exbhv.FileConfigToLabelBhv;
|
||||
import org.codelibs.fess.es.exbhv.FileConfigToRoleBhv;
|
||||
import org.codelibs.fess.es.exentity.FileConfig;
|
||||
import org.codelibs.fess.es.exentity.FileConfigToLabel;
|
||||
import org.codelibs.fess.es.exentity.FileConfigToRole;
|
||||
import org.codelibs.fess.es.config.cbean.FileConfigCB;
|
||||
import org.codelibs.fess.es.config.exbhv.FileConfigBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.FileConfigToLabelBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.FileConfigToRoleBhv;
|
||||
import org.codelibs.fess.es.config.exentity.FileConfig;
|
||||
import org.codelibs.fess.es.config.exentity.FileConfigToLabel;
|
||||
import org.codelibs.fess.es.config.exentity.FileConfigToRole;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.GroupPager;
|
||||
import org.codelibs.fess.es.cbean.GroupCB;
|
||||
import org.codelibs.fess.es.exbhv.GroupBhv;
|
||||
import org.codelibs.fess.es.exentity.Group;
|
||||
import org.codelibs.fess.es.user.cbean.GroupCB;
|
||||
import org.codelibs.fess.es.user.exbhv.GroupBhv;
|
||||
import org.codelibs.fess.es.user.exentity.Group;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
|
||||
public class GroupService implements Serializable {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.JobLogPager;
|
||||
import org.codelibs.fess.es.cbean.JobLogCB;
|
||||
import org.codelibs.fess.es.exbhv.JobLogBhv;
|
||||
import org.codelibs.fess.es.exentity.JobLog;
|
||||
import org.codelibs.fess.es.config.cbean.JobLogCB;
|
||||
import org.codelibs.fess.es.config.exbhv.JobLogBhv;
|
||||
import org.codelibs.fess.es.config.exentity.JobLog;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.KeyMatchPager;
|
||||
import org.codelibs.fess.es.cbean.KeyMatchCB;
|
||||
import org.codelibs.fess.es.exbhv.KeyMatchBhv;
|
||||
import org.codelibs.fess.es.exentity.KeyMatch;
|
||||
import org.codelibs.fess.es.config.cbean.KeyMatchCB;
|
||||
import org.codelibs.fess.es.config.exbhv.KeyMatchBhv;
|
||||
import org.codelibs.fess.es.config.exentity.KeyMatch;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -26,11 +25,11 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.LabelTypePager;
|
||||
import org.codelibs.fess.es.cbean.LabelTypeCB;
|
||||
import org.codelibs.fess.es.exbhv.LabelToRoleBhv;
|
||||
import org.codelibs.fess.es.exbhv.LabelTypeBhv;
|
||||
import org.codelibs.fess.es.exentity.LabelToRole;
|
||||
import org.codelibs.fess.es.exentity.LabelType;
|
||||
import org.codelibs.fess.es.config.cbean.LabelTypeCB;
|
||||
import org.codelibs.fess.es.config.exbhv.LabelToRoleBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.LabelTypeBhv;
|
||||
import org.codelibs.fess.es.config.exentity.LabelToRole;
|
||||
import org.codelibs.fess.es.config.exentity.LabelType;
|
||||
import org.codelibs.fess.helper.LabelTypeHelper;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.dbflute.cbean.result.ListResultBean;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.OverlappingHostPager;
|
||||
import org.codelibs.fess.es.cbean.OverlappingHostCB;
|
||||
import org.codelibs.fess.es.exbhv.OverlappingHostBhv;
|
||||
import org.codelibs.fess.es.exentity.OverlappingHost;
|
||||
import org.codelibs.fess.es.config.cbean.OverlappingHostCB;
|
||||
import org.codelibs.fess.es.config.exbhv.OverlappingHostBhv;
|
||||
import org.codelibs.fess.es.config.exentity.OverlappingHost;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -26,9 +25,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.PathMappingPager;
|
||||
import org.codelibs.fess.es.cbean.PathMappingCB;
|
||||
import org.codelibs.fess.es.exbhv.PathMappingBhv;
|
||||
import org.codelibs.fess.es.exentity.PathMapping;
|
||||
import org.codelibs.fess.es.config.cbean.PathMappingCB;
|
||||
import org.codelibs.fess.es.config.exbhv.PathMappingBhv;
|
||||
import org.codelibs.fess.es.config.exentity.PathMapping;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.RequestHeaderPager;
|
||||
import org.codelibs.fess.es.cbean.RequestHeaderCB;
|
||||
import org.codelibs.fess.es.exbhv.RequestHeaderBhv;
|
||||
import org.codelibs.fess.es.exentity.RequestHeader;
|
||||
import org.codelibs.fess.es.config.cbean.RequestHeaderCB;
|
||||
import org.codelibs.fess.es.config.exbhv.RequestHeaderBhv;
|
||||
import org.codelibs.fess.es.config.exentity.RequestHeader;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.RolePager;
|
||||
import org.codelibs.fess.es.cbean.RoleCB;
|
||||
import org.codelibs.fess.es.exbhv.RoleBhv;
|
||||
import org.codelibs.fess.es.exentity.Role;
|
||||
import org.codelibs.fess.es.user.cbean.RoleCB;
|
||||
import org.codelibs.fess.es.user.exbhv.RoleBhv;
|
||||
import org.codelibs.fess.es.user.exentity.Role;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
|
||||
public class RoleService implements Serializable {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.RoleTypePager;
|
||||
import org.codelibs.fess.es.cbean.RoleTypeCB;
|
||||
import org.codelibs.fess.es.exbhv.RoleTypeBhv;
|
||||
import org.codelibs.fess.es.exentity.RoleType;
|
||||
import org.codelibs.fess.es.config.cbean.RoleTypeCB;
|
||||
import org.codelibs.fess.es.config.exbhv.RoleTypeBhv;
|
||||
import org.codelibs.fess.es.config.exentity.RoleType;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.ScheduledJobPager;
|
||||
import org.codelibs.fess.es.cbean.ScheduledJobCB;
|
||||
import org.codelibs.fess.es.exbhv.ScheduledJobBhv;
|
||||
import org.codelibs.fess.es.exentity.ScheduledJob;
|
||||
import org.codelibs.fess.es.config.cbean.ScheduledJobCB;
|
||||
import org.codelibs.fess.es.config.exbhv.ScheduledJobBhv;
|
||||
import org.codelibs.fess.es.config.exentity.ScheduledJob;
|
||||
import org.codelibs.fess.job.JobScheduler;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
/*
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.text.NumberFormat;
|
||||
|
@ -24,8 +39,8 @@ import org.codelibs.fess.entity.SearchRequestParams;
|
|||
import org.codelibs.fess.es.client.FessEsClient;
|
||||
import org.codelibs.fess.es.client.FessEsClient.SearchConditionBuilder;
|
||||
import org.codelibs.fess.es.client.FessEsClientException;
|
||||
import org.codelibs.fess.es.exentity.SearchLog;
|
||||
import org.codelibs.fess.es.exentity.UserInfo;
|
||||
import org.codelibs.fess.es.log.exentity.SearchLog;
|
||||
import org.codelibs.fess.es.log.exentity.UserInfo;
|
||||
import org.codelibs.fess.helper.FieldHelper;
|
||||
import org.codelibs.fess.helper.QueryHelper;
|
||||
import org.codelibs.fess.helper.SearchLogHelper;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -32,9 +31,9 @@ import org.codelibs.core.beans.util.BeanUtil;
|
|||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.SuggestBadWordPager;
|
||||
import org.codelibs.fess.es.cbean.SuggestBadWordCB;
|
||||
import org.codelibs.fess.es.exbhv.SuggestBadWordBhv;
|
||||
import org.codelibs.fess.es.exentity.SuggestBadWord;
|
||||
import org.codelibs.fess.es.config.cbean.SuggestBadWordCB;
|
||||
import org.codelibs.fess.es.config.exbhv.SuggestBadWordBhv;
|
||||
import org.codelibs.fess.es.config.exentity.SuggestBadWord;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.dbflute.bhv.readable.EntityRowHandler;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -32,9 +31,9 @@ import org.codelibs.core.beans.util.BeanUtil;
|
|||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.SuggestElevateWordPager;
|
||||
import org.codelibs.fess.es.cbean.SuggestElevateWordCB;
|
||||
import org.codelibs.fess.es.exbhv.SuggestElevateWordBhv;
|
||||
import org.codelibs.fess.es.exentity.SuggestElevateWord;
|
||||
import org.codelibs.fess.es.config.cbean.SuggestElevateWordCB;
|
||||
import org.codelibs.fess.es.config.exbhv.SuggestElevateWordBhv;
|
||||
import org.codelibs.fess.es.config.exentity.SuggestElevateWord;
|
||||
import org.codelibs.fess.util.ComponentUtil;
|
||||
import org.dbflute.bhv.readable.EntityRowHandler;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.UserPager;
|
||||
import org.codelibs.fess.es.cbean.UserCB;
|
||||
import org.codelibs.fess.es.exbhv.UserBhv;
|
||||
import org.codelibs.fess.es.exentity.User;
|
||||
import org.codelibs.fess.es.user.cbean.UserCB;
|
||||
import org.codelibs.fess.es.user.exbhv.UserBhv;
|
||||
import org.codelibs.fess.es.user.exentity.User;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -25,9 +24,9 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.WebAuthenticationPager;
|
||||
import org.codelibs.fess.es.cbean.WebAuthenticationCB;
|
||||
import org.codelibs.fess.es.exbhv.WebAuthenticationBhv;
|
||||
import org.codelibs.fess.es.exentity.WebAuthentication;
|
||||
import org.codelibs.fess.es.config.cbean.WebAuthenticationCB;
|
||||
import org.codelibs.fess.es.config.exbhv.WebAuthenticationBhv;
|
||||
import org.codelibs.fess.es.config.exentity.WebAuthentication;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2009-2015 the CodeLibs Project and the Others.
|
||||
* Copyright 2012-2015 CodeLibs Project and the Others.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -13,7 +13,6 @@
|
|||
* either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
package org.codelibs.fess.app.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -26,13 +25,13 @@ import javax.annotation.Resource;
|
|||
import org.codelibs.core.beans.util.BeanUtil;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.app.pager.WebConfigPager;
|
||||
import org.codelibs.fess.es.cbean.WebConfigCB;
|
||||
import org.codelibs.fess.es.exbhv.WebConfigBhv;
|
||||
import org.codelibs.fess.es.exbhv.WebConfigToLabelBhv;
|
||||
import org.codelibs.fess.es.exbhv.WebConfigToRoleBhv;
|
||||
import org.codelibs.fess.es.exentity.WebConfig;
|
||||
import org.codelibs.fess.es.exentity.WebConfigToLabel;
|
||||
import org.codelibs.fess.es.exentity.WebConfigToRole;
|
||||
import org.codelibs.fess.es.config.cbean.WebConfigCB;
|
||||
import org.codelibs.fess.es.config.exbhv.WebConfigBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.WebConfigToLabelBhv;
|
||||
import org.codelibs.fess.es.config.exbhv.WebConfigToRoleBhv;
|
||||
import org.codelibs.fess.es.config.exentity.WebConfig;
|
||||
import org.codelibs.fess.es.config.exentity.WebConfigToLabel;
|
||||
import org.codelibs.fess.es.config.exentity.WebConfigToRole;
|
||||
import org.dbflute.cbean.result.PagingResultBean;
|
||||
import org.dbflute.optional.OptionalEntity;
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue