Package gov.niem.tools.api.db.property
Class PropertyService
java.lang.Object
gov.niem.tools.api.db.base.BaseEntityService<Property>
gov.niem.tools.api.db.component.ComponentService<Property,PropertyRepository>
gov.niem.tools.api.db.property.PropertyService
Operations supporting properties.
-
Field Summary
Fields inherited from class gov.niem.tools.api.db.component.ComponentService
namespaceService, repo, versionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a property to the database with the given name to the given namespace.Adds a property to the database with the given name and definition to the given namespace.Adds a property to the database with the given name to the namespace with the given prefix and version.Adds a property to the database with the given name to the namespace with the given namespace fields.Methods inherited from class gov.niem.tools.api.db.component.ComponentService
add, add, add, add, add, add, assertRequiredLocalFields, assertUnique, findByNamespace, findByVersion, findOne, findOne, findOne, findOne, findOneOptional, findOneOptional, findOneOptional, getQualifiedName, getQualifiedPrefix, repository
Methods inherited from class gov.niem.tools.api.db.base.BaseEntityService
assertFieldNotNullAndNotEmpty, delete, edit, findOneOptional, getEntityClassName, getNotFoundException, loadId, merge, saveExisting, saveNew, throwNotFound, throwNotFound, throwNotFound, throwNotUnique, throwNotUnique, throwNotUnique
-
Constructor Details
-
PropertyService
public PropertyService()
-
-
Method Details
-
add
public Property add(String stewardKey, String modelKey, String versionNumber, String prefix, String name) throws Exception Adds a property to the database with the given name to the namespace with the given namespace fields.- Throws:
Exception
-
add
Adds a property to the database with the given name to the namespace with the given prefix and version.- Throws:
Exception
-
add
Adds a property to the database with the given name to the given namespace.- Throws:
Exception
-
add
Adds a property to the database with the given name and definition to the given namespace.- Throws:
Exception
-