input
stringlengths
10
828
output
stringlengths
5
107
public neighbor config get inverse neighbor config string inverse neighbor get inverse neighbor if inverse neighbor null return null neighbor config inverse neighbor config null concept config destination concept config get destination concept config neighbors config destination concept neighbors config destination concept config get neighbors config inverse neighbor config destination concept neighbors config get neighbor config inverse neighbor return inverse neighbor config
gets the inverse neighbor configuration
public void set internal string internal this internal internal
sets the internal neighbor flag true if the neighbor is internal saved
public string get internal return internal
gets the internal neighbor flag true if the neighbor is internal saved
public boolean is internal boolean result true if internal null if internal trim equals ignore case false result false return result
checks if the neighbor is internal
public boolean is extensible return is extension any concept extension
checks if the model is extensible
public boolean any concept extension return get concepts config any concept extension
checks if there is any concept extension
public boolean is external return is internal
checks if the neighbor is external
protected boolean add list t list boolean added true for t entity list if entity list add entity added false return added
adds new list of entities to the entities
public string get extension domain if is extension extension domain null set extension domain get domain config get code return extension domain
gets the extension domain
public void set extension model string extension model this extension model extension model
sets the extension model
public string get extension model if is extension extension model null log error get code model does not have the extension model return extension model
gets the extension model
public boolean is part of many to many boolean result false if part of many to many null if part of many to many trim equals ignore case true result true return result
checks if the neighbor is part of many to many
public string get author if author null if is extension return unknown return author
gets the author s
public boolean is one to many return is part of many to many
checks if the neighbor is one to many
protected boolean pre remove t entity if is pre return true boolean validation valid min cardinality 1 if validation validation oid exists entity if validation log info entity get oid oid does not exist return validation
checks if the remove precondition is code true code
public string get package code if package code null package code trim equals return get model package code return package code
gets the model package code
private string get model package code return get domain config get package code get code in lower letters
gets derives the model package code
public string get model class return get package code get model name
gets derives the domain model class
public string get type if type null if is extension log info the neighbor does not have the type parent or child get code return type
gets the neighbor type parent or child
protected boolean post remove t entity if is post return true if concept config is index oid index remove entity if concept config get unique config is not empty unique index remove entity if concept config get index config is not empty index remove entity return true
checks if the remove postcondition is code true code
public void set persistent string persistent this persistent persistent
sets the model persistent flag true string if the model is persistent
public boolean is parent boolean result false if get type null get type trim equals ignore case parent result true return result
checks if the neighbor is parent
public string get persistent return persistent
gets the model persistent flag true string if the model is persistent
public boolean is persistent boolean result true if persistent null if persistent trim equals ignore case false result false return result
checks if the model is persistent
public boolean is child boolean result false if get type null get type trim equals ignore case child result true return result
checks if the neighbor is child
public void set persistence type string persistence type this persistence type persistence type
sets the persistence type xml db
public void set min string min this min min
sets the neighbor direction minimal cardinality required minimal
public string get persistence type if persistence type null if is extension is persistent return xml return persistence type
gets the persistence type xml db
public string get persistence relative path if persistence relative path null if is extension is persistent get persistence type equals xml return data xml get domain config get code in lower letters get code in lower letters return persistence relative path
gets the persistence relative path relative to classes
public int get min int int min int 0 integer min integer transformer integer get min if min integer null min int min integer int value return min int
gets the neighbor direction minimal cardinality as an int number
public void set persistence config string persistence config this persistence config persistence config
sets the persistence config
public boolean is mandatory boolean result false if min null if get min int 0 result true return result
checks if the neighbor is mandatory
public string get persistence config return persistence config
gets the persistence config
public boolean is optional boolean result false if min null if get min int 0 result true return result
checks if the neighbor is optional
public boolean is default load save boolean result true if default load save null if default load save trim equals ignore case false result false return result
checks if the model will be loaded saved by default
public string get max if max null if is extension if is child return n else return 1 return max
gets the neighbor direction maximal cardinality maximal number of
public void set date pattern string date pattern this date pattern date pattern
for the model default application sets the date display pattern e
public void set unique string unique this unique unique
sets the unique neighbor flag true string if the neighbor is unique
public string get date pattern if date pattern null if is extension return yyyy mm dd return date pattern
for the model default application gets the date display pattern e
public boolean update t entity t update entity return update entity update entity true
updates the entity with the update entity
public boolean is unique boolean result false if unique null if unique trim equals ignore case true result true return result
checks if the neighbor is unique
public boolean is session boolean result false if session null if session trim equals ignore case true result true return result
checks if sessions will be used
public boolean is index boolean result false if get concept config is index if index null if index trim equals ignore case true result true return result
checks if the neighbor is indexed
public boolean update model config model config return false
updates the model configuration not allowed
public void set add rule string add rule this add rule add rule
sets the neighbor direction add rule none restrict detach
public boolean update properties t entity t update entity return update entity update entity true
updates only the properties of the entity with the update entity
public string get add rule if add rule null if is extension return none return add rule
gets the neighbor direction add rule none restrict detach
public ipersistent model get persistent model return xml model get persistent model
gets the persistent model
public void set remove rule string remove rule this remove rule remove rule
sets the neighbor direction remove rule none restrict cascade
public ientity get entity return xml model get entity
gets the model entity
private void extend concepts concepts config concepts config get concepts config if concepts config null for concept config concept config concepts config concept config extend
extends concept configurations of the model
public string get remove rule if remove rule null if is extension return none return remove rule
gets the neighbor direction remove rule none restrict cascade
public void set update rule string update rule this update rule update rule
sets the neighbor direction add rule none restrict detach
public string get update rule if update rule null if is extension return none return update rule
gets the neighbor direction add rule none restrict detach
public boolean contain t entity if get concept config is index if oid index get entity entity get oid null return true else return false return entity list contains entity
checks if the entities contain a given entity
public boolean is display boolean result true if display null if display trim equals ignore case false result false return result
checks if the neighbor will be displayed
private void set extended boolean extended this extended extended
sets the model extended flag
private boolean is extended return extended
checks if the model is extended
public void set update string update this update update
sets the update neighbor flag true string if the neighbor is allowed to
protected void fill element element throws persistency exception throw new persistency exception a domain configuration cannot be saved
fills an xml domain element no action
public boolean contain code string code boolean contain code false t code entity retrieve by code code if code entity null contain code true return contain code
checks if the entities contain an entity with the given code
protected boolean pre add model config new model config boolean validation true string new model code new model config get code if new model code null for model config model config this if model config get code equals new model code validation false log info new model code model code must be unique within the dm configuration break else validation false log info model code is required return validation
checks if the new model code is unique within the dm configuration
protected boolean post add model config model config model config set domain config domain config return true
sets the dm lite configuration for a new model configuration
public void output string title list model config list get list log info title for model config model config list string class name model config get class get name text handler text extractor new text handler string class simple name text extractor extract class simple name class name model config output class simple name
outputs the models configuration information
public ipersistent model get persistent model return xml models get persistent model
gets the persistent model
public string get update return update
gets the update neighbor flag true string if the neighbor is allowed to
public boolean is update boolean result true if update null if update trim equals ignore case false result false return result
checks if the neighbor is allowed to be updated
public void set absorb string absorb this absorb absorb
sets the absorb neighbor flag true string if the parent neighbor will be
public t retrieve by oid oid oid try if oid null if get concept config is index return oid index get entity oid else synchronized entity list for t entity entity list if entity get oid equals oid return entity else string error the oid argument is null throw new dm exception error catch exception e log error error in entities retrieve by oid concept config get entities code e get message return null
retrieves the entity with a given oid from the entities
public string get absorb return absorb
gets the absorb neighbor flag true string if the parent neighbor will be
public string get property name return get code with first letter as upper
gets the property name that starts with a capital letter
public boolean is absorb boolean result true if is child result false else if absorb null if absorb trim equals ignore case false result false return result
checks if the neighbor will be absorbed in a display
public string get full name concept config concept config get concept config model config model config concept config get model config domain config domain config model config get domain config string full name domain config get code model config get code concept config get code return full name
gets the full name of the property domain
public boolean update neighbor config neighbor config return false
updates the neighbor configuration not allowed
public xml neighbor config get xml neighbor return xml neighbor
gets the xml persistent neighbor
public ipersistent model get persistent model return xml neighbor get persistent model
gets the persistent model
public ientity get entity return xml neighbor get entity
gets the neighbor entity
public string get extension property if is extension extension property null log error get code property does not have the extension property return extension property
gets the extension property
public string get property class if property class null if is extension return java lang string return property class
gets the concept property class class full name
private void extend with neighbor neighbor config extension neighbor config extend neighbor config null fields extension neighbor config set extended true
extends null fields with the neighbor configuration
public t retrieve by code string code try string entity code synchronized entity list for t entity entity list entity code entity entity get code if entity code null entity code equals code return entity catch exception e log error error in entities retrieve by code concept config get entities code e get message return null
retrieves the first entity with a given code from the entities
public string get property class simple name string property class simple name null string property class get property class if property class null text handler text extractor new text handler property class simple name text extractor extract class simple name property class return property class simple name
gets the concept property class simple name
public class get property class object class property class object null string property class get property class if property class null property class object reflector get class property class return property class object
gets the concept property class object
public void set validate type string validate type this validate type validate type
sets the validate property type flag for not basic types true if the
public string get validate type return validate type
gets the validate property type flag for not basic types true if the
public boolean is validate type boolean result false if validate type null if validate type trim equals ignore case true if get property class equals property class get string result true else log info get code property class must be property class get string to be type validated return result
checks if to validate the property validation type
public string get validation type if validation type null if is extension is validate type log info get code property does not have the validation type return validation type
gets the property validation type
public void add string property code property config property config property map put property code property config
adds a property configuration as a part of the group configuration
public void add string neighbor code neighbor config neighbor config neighbor map put neighbor code neighbor config
adds a neighbor configuration as a part of the group configuration
public boolean is not empty return is empty
checks if the group configuration is not empty
public t first t first null if size 0 array list t list array list t get list first t list get 0 return first
returns the first entity based on the order
public boolean is validate class type boolean result false string validation type get validation type if is validate type validation type is valid validation type result true return result
checks if the validation type is represented by a class
public void empty property map new hash map string property config neighbor map new hash map string neighbor config
empties the group configuration
public property config get property config string property code return property config property map get property code
gets the group property configuration given a property code
public neighbor config get neighbor config string neighbor code return neighbor config neighbor map get neighbor code
gets the group neighbor configuration given a neighbor code
public string get codes return get property codes get neighbor codes
gets property and neighbor codes as a string
public boolean is validate entities type boolean result false if is validate type is validate class type result true return result
checks if the validation type is represented by entities code
public string get property codes string codes list string property codes get property code list for string property code property codes if codes equals codes codes property code else codes codes property code codes codes return codes
gets property codes as a string
public string get neighbor codes string codes list string neighbor codes get neighbor code list for string neighbor code neighbor codes if codes equals codes codes neighbor code else codes codes neighbor code codes codes return codes
gets neighbor codes as a string
protected void fill element element throws persistency exception throw new persistency exception a model configuration cannot be saved
fills an xml model element no action