Skip to content

Commit

Permalink
Merge pull request #71 from AbsaOSS/feature/57-function-commons
Browse files Browse the repository at this point in the history
Feature/57,58 function commons
  • Loading branch information
dk1844 authored Oct 11, 2023
2 parents 0d3f01c + 212d456 commit 2a2254e
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ultet/src/main/scala/za/co/absa/ultet/dbitems/DBItem.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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 = ???
}
Original file line number Diff line number Diff line change
@@ -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 = ???
}
Original file line number Diff line number Diff line change
@@ -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 {

}
Original file line number Diff line number Diff line change
@@ -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 = ???
}
Original file line number Diff line number Diff line change
@@ -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 = ???
}

0 comments on commit 2a2254e

Please sign in to comment.