/** {@inheritDoc} */
 @NotNull
 @Override
 protected String retrievePackage(
     @NotNull final String engineName,
     @NotNull final String projectPackage,
     @NotNull final PackageUtils packageUtils) {
   return packageUtils.retrieveRepositoryDAOPackage(projectPackage, engineName);
 }
 /**
  * Retrieves the package name from the attribute map.
  *
  * @param projectPackage the project package.
  * @param engineName the engine name.
  * @param tableName the table name.
  * @param packageUtils the <code>PackageUtils</code> instance.
  * @return the package name.
  */
 @NotNull
 protected String retrievePackage(
     @NotNull final String projectPackage,
     @NotNull final String engineName,
     @NotNull final String tableName,
     @NotNull final PackageUtils packageUtils) {
   return packageUtils.retrieveFkStatementSetterPackage(projectPackage, engineName, tableName);
 }
 /**
  * Retrieves the package name.
  *
  * @param tableName the table name.
  * @param engineName the engine name.
  * @param projectPackage the project package.
  * @param packageUtils the <code>PackageUtils</code> instance.
  * @return the package name.
  * @throws QueryJBuildException if the package retrieval process if faulty.
  */
 @NotNull
 protected String retrievePackage(
     @NotNull final String tableName,
     @NotNull final String engineName,
     @NotNull final String projectPackage,
     @NotNull final PackageUtils packageUtils)
     throws QueryJBuildException {
   return packageUtils.retrieveValueObjectImplPackage(projectPackage);
 }
 /**
  * Retrieves the package name from the attribute map.
  *
  * @param engineName the engine name.
  * @param tableName the table name.
  * @param parameters the parameter map.
  * @return the package name.
  */
 @NotNull
 @Override
 protected String retrievePackage(
     @NotNull final String engineName,
     @NotNull final String tableName,
     @NotNull final Map<String, String> parameters) {
   return retrievePackage(
       retrieveProjectPackage(parameters), engineName, tableName, PackageUtils.getInstance());
 }
Beispiel #5
0
 /**
  * Extracts the class name of given fully-qualified class.
  *
  * @param fqcn such information.
  * @param packageUtils the {@link PackageUtils} instance.
  * @return the class name.
  */
 @NotNull
 protected String extractClassName(
     @NotNull final String fqcn, @NotNull final PackageUtils packageUtils) {
   return packageUtils.extractClassName(fqcn);
 }
Beispiel #6
0
 /**
  * Extracts the class name of given fully-qualified class.
  *
  * @param fqcn such information.
  * @return the class name.
  */
 @NotNull
 public String extractClassName(@NotNull final String fqcn) {
   return extractClassName(fqcn, PackageUtils.getInstance());
 }