Class ChildInserterPostInsertCustomizer
java.lang.Object
com.kingsrook.qqq.backend.core.actions.customizers.AbstractPostInsertCustomizer
com.kingsrook.qqq.backend.core.actions.customizers.ChildInserterPostInsertCustomizer
- All Implemented Interfaces:
TableCustomizerInterface
Standard/re-usable post-insert customizer, for the use case where, when we
do an insert into table "parent", we want a record automatically inserted into
table "child". Optionally (based on RelationshipType), there can be a foreign
key in "parent", pointed at "child". e.g., named: "parent.childId".
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.kingsrook.qqq.backend.core.actions.customizers.TableCustomizerInterface
TableCustomizerInterface.NotImplementedHereException -
Field Summary
Fields inherited from class com.kingsrook.qqq.backend.core.actions.customizers.AbstractPostInsertCustomizer
insertInputFields inherited from interface com.kingsrook.qqq.backend.core.actions.customizers.TableCustomizerInterface
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract QRecordbuildChildForRecord(QRecord parentRecord) abstract StringMethods inherited from class com.kingsrook.qqq.backend.core.actions.customizers.AbstractPostInsertCustomizer
getInsertInput, postInsert, setInsertInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.kingsrook.qqq.backend.core.actions.customizers.TableCustomizerInterface
oldRecordListToMap, postDelete, postInsertOrUpdate, postQuery, postUpdate, preDelete, preInsert, preInsertOrUpdate, preUpdate, whenToRunPreInsert
-
Constructor Details
-
ChildInserterPostInsertCustomizer
public ChildInserterPostInsertCustomizer()
-
-
Method Details
-
buildChildForRecord
- Throws:
QException
-
getChildTableName
-
getForeignKeyFieldName
-
getRelationshipType
-
apply
-