diff --git a/ultet/src/main/scala/za/co/absa/ultet/dbitems/DBItem.scala b/ultet/src/main/scala/za/co/absa/ultet/dbitems/DBItem.scala index f22faeec..6bdbf24c 100644 --- a/ultet/src/main/scala/za/co/absa/ultet/dbitems/DBItem.scala +++ b/ultet/src/main/scala/za/co/absa/ultet/dbitems/DBItem.scala @@ -16,8 +16,8 @@ package za.co.absa.ultet.dbitems -import za.co.absa.ultet.sqlentry.SQLEntry +import za.co.absa.ultet.model.SQLEntry trait DBItem { - def sqlEntry: SQLEntry + def sqlEntry: Seq[SQLEntry] } diff --git a/ultet/src/main/scala/za/co/absa/ultet/sqlentry/SQLEntry.scala b/ultet/src/main/scala/za/co/absa/ultet/model/SQLEntry.scala similarity index 95% rename from ultet/src/main/scala/za/co/absa/ultet/sqlentry/SQLEntry.scala rename to ultet/src/main/scala/za/co/absa/ultet/model/SQLEntry.scala index aa2e819c..3512d321 100644 --- a/ultet/src/main/scala/za/co/absa/ultet/sqlentry/SQLEntry.scala +++ b/ultet/src/main/scala/za/co/absa/ultet/model/SQLEntry.scala @@ -14,7 +14,7 @@ * limitations under the License. */ -package za.co.absa.ultet.sqlentry +package za.co.absa.ultet.model trait SQLEntry { def sqlExpression: String diff --git a/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionBody.scala b/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionBody.scala new file mode 100644 index 00000000..c51faba6 --- /dev/null +++ b/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionBody.scala @@ -0,0 +1,24 @@ +/* + * Copyright 2023 ABSA Group Limited + * + * 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 za.co.absa.ultet.model.function + +case class FunctionBody() extends FunctionEntry { + override def sqlExpression: String = ??? + + override def transactionGroup: String = ??? + + override def order: Int = ??? +} diff --git a/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionDrop.scala b/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionDrop.scala new file mode 100644 index 00000000..9accaa2d --- /dev/null +++ b/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionDrop.scala @@ -0,0 +1,24 @@ +/* + * Copyright 2023 ABSA Group Limited + * + * 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 za.co.absa.ultet.model.function + +case class FunctionDrop() extends FunctionEntry { + override def sqlExpression: String = ??? + + override def transactionGroup: String = ??? + + override def order: Int = ??? +} diff --git a/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionEntry.scala b/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionEntry.scala new file mode 100644 index 00000000..5f70fd47 --- /dev/null +++ b/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionEntry.scala @@ -0,0 +1,22 @@ +/* + * Copyright 2023 ABSA Group Limited + * + * 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 za.co.absa.ultet.model.function + +import za.co.absa.ultet.model.SQLEntry + +trait FunctionEntry extends SQLEntry { + +} diff --git a/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionGrant.scala b/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionGrant.scala new file mode 100644 index 00000000..fe2107a6 --- /dev/null +++ b/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionGrant.scala @@ -0,0 +1,24 @@ +/* + * Copyright 2023 ABSA Group Limited + * + * 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 za.co.absa.ultet.model.function + +case class FunctionGrant() extends FunctionEntry { + override def sqlExpression: String = ??? + + override def transactionGroup: String = ??? + + override def order: Int = ??? +} diff --git a/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionOwnership.scala b/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionOwnership.scala new file mode 100644 index 00000000..1de8a5d4 --- /dev/null +++ b/ultet/src/main/scala/za/co/absa/ultet/model/function/FunctionOwnership.scala @@ -0,0 +1,24 @@ +/* + * Copyright 2023 ABSA Group Limited + * + * 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 za.co.absa.ultet.model.function + +case class FunctionOwnership() extends FunctionEntry { + override def sqlExpression: String = ??? + + override def transactionGroup: String = ??? + + override def order: Int = ??? +}