java.lang.Object
org.tentackle.common.NamingRules
Naming rules for classnames.
Used at runtime to determine the remote delegates, at build-time by some wurblets, and by the wizard to generate PDO- and operation sources.
Can be replaced via
Used at runtime to determine the remote delegates, at build-time by some wurblets, and by the wizard to generate PDO- and operation sources.
Can be replaced via
@Service for application-specific rules.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NamingRulesThe naming rules singleton.getOperationDomainImplementation(String operationName) Gets the simple class name of the domain implementation of an operation.getOperationDomainInterface(String operationName) Gets the simple class name of the domain interface of an operation.getOperationFromDomainImplementation(String domainImplementation) Gets the operation name from the name of a domain implementation.getOperationFromDomainInterface(String domainInterface) Gets the operation name from the name of a domain interface.getOperationFromPersistenceImplementation(String persistenceImplementation) Gets the operation name from the name of a persistence implementation.getOperationFromPersistenceInterface(String persistenceInterface) Gets the operation name from the name of a persistence interface.getOperationFromRemoteImplementation(String remoteImplementation) Gets the operation name from the name of a remote implementation.getOperationFromRemoteInterface(String remoteInterface) Gets the operation name from the name of a remote interface.getOperationPersistenceImplementation(String operationName) Gets the simple class name of the persistence implementation of an operation.getOperationPersistenceInterface(String operationName) Gets the simple class name of the persistence interface of an operation.getOperationRemoteImplementation(String operationName) Gets the simple class name of the remote implementation of an operation.getOperationRemoteImplementationPackageName(String operationPersistenceImplementationPackageName) Gets the package name of the remote implementation of an operation.getOperationRemoteInterface(String operationName) Gets the simple class name of the remote interface of an operation.getOperationRemoteInterfacePackageName(String operationPersistenceImplementationPackageName) Gets the package name of the remote interface of an operation.getPdoDomainImplementation(String pdoName) Gets the simple class name of the domain implementation of a PDO.getPdoDomainInterface(String pdoName) Gets the simple class name of the domain interface of a PDO.getPdoFromDomainImplementation(String domainImplementation) Gets the PDO name from the name of a domain implementation.getPdoFromDomainInterface(String domainInterface) Gets the PDO name from the name of a domain interface.getPdoFromPersistenceImplementation(String persistenceImplementation) Gets the PDO name from the name of a persistence implementation.getPdoFromPersistenceInterface(String persistenceInterface) Gets the PDO name from the name of a persistence interface.getPdoFromRemoteImplementation(String remoteImplementation) Gets the PDO name from the name of a remote implementation.getPdoFromRemoteInterface(String remoteInterface) Gets the PDO name from the name of a remote interface.getPdoPersistenceImplementation(String pdoName) Gets the simple class name of the persistence implementation of a PDO.getPdoPersistenceInterface(String pdoName) Gets the simple class name of the persistence interface of a PDO.getPdoRemoteImplementation(String pdoName) Gets the simple class name of the remote implementation of a PDO.getPdoRemoteImplementationPackageName(String pdoPersistenceImplementationPackageName) Gets the package name of the remote implementation of a PDO.getPdoRemoteInterface(String pdoName) Gets the simple class name of the remote interface of a PDO.getPdoRemoteInterfacePackageName(String pdoPersistenceImplementationPackageName) Gets the package name of the remote interface of a PDO.
-
Constructor Details
-
NamingRules
public NamingRules()
-
-
Method Details
-
getInstance
The naming rules singleton.- Returns:
- the singleton
-
getPdoDomainInterface
Gets the simple class name of the domain interface of a PDO.- Parameters:
pdoName- the PDO name- Returns:
- the interface name
-
getPdoFromDomainInterface
Gets the PDO name from the name of a domain interface.- Parameters:
domainInterface- the interface name- Returns:
- the PDO name, null if domainInterface is not a valid PDO domain interface name
-
getPdoPersistenceInterface
Gets the simple class name of the persistence interface of a PDO.- Parameters:
pdoName- the PDO name- Returns:
- the interface name
-
getPdoFromPersistenceInterface
Gets the PDO name from the name of a persistence interface.- Parameters:
persistenceInterface- the interface name- Returns:
- the PDO name, null if persistenceInterface is not a valid PDO persistence interface name
-
getPdoDomainImplementation
Gets the simple class name of the domain implementation of a PDO.- Parameters:
pdoName- the PDO name- Returns:
- the implementation name
-
getPdoFromDomainImplementation
Gets the PDO name from the name of a domain implementation.- Parameters:
domainImplementation- the implementation name- Returns:
- the PDO name, null if domainImplementation is not a valid PDO domain implementation name
-
getPdoPersistenceImplementation
Gets the simple class name of the persistence implementation of a PDO.- Parameters:
pdoName- the PDO name- Returns:
- the implementation name
-
getPdoFromPersistenceImplementation
Gets the PDO name from the name of a persistence implementation.- Parameters:
persistenceImplementation- the implementation name- Returns:
- the PDO name, null if persistenceImplementation is not a valid PDO persistence implementation name
-
getPdoRemoteInterface
Gets the simple class name of the remote interface of a PDO.- Parameters:
pdoName- the PDO name- Returns:
- the interface name
-
getPdoFromRemoteInterface
Gets the PDO name from the name of a remote interface.- Parameters:
remoteInterface- the interface name- Returns:
- the PDO name, null if remoteInterface is not a valid PDO remote interface name
-
getPdoRemoteImplementation
Gets the simple class name of the remote implementation of a PDO.- Parameters:
pdoName- the PDO name- Returns:
- the implementation name
-
getPdoFromRemoteImplementation
Gets the PDO name from the name of a remote implementation.- Parameters:
remoteImplementation- the implementation name- Returns:
- the PDO name, null if remoteImplementation is not a valid PDO remote implementation name
-
getPdoRemoteInterfacePackageName
Gets the package name of the remote interface of a PDO.- Parameters:
pdoPersistenceImplementationPackageName- the package name of the persistence implementation- Returns:
- the package name of the remote interface
-
getPdoRemoteImplementationPackageName
Gets the package name of the remote implementation of a PDO.- Parameters:
pdoPersistenceImplementationPackageName- the package name of the persistence implementation- Returns:
- the package name of the remote implementation
-
getOperationDomainInterface
Gets the simple class name of the domain interface of an operation.- Parameters:
operationName- the operation name- Returns:
- the interface name
-
getOperationFromDomainInterface
Gets the operation name from the name of a domain interface.- Parameters:
domainInterface- the interface name- Returns:
- the operation name, null if domainInterface is not a valid operation domain interface name
-
getOperationPersistenceInterface
Gets the simple class name of the persistence interface of an operation.- Parameters:
operationName- the operation name- Returns:
- the interface name
-
getOperationFromPersistenceInterface
Gets the operation name from the name of a persistence interface.- Parameters:
persistenceInterface- the interface name- Returns:
- the operation name, null if persistenceInterface is not a valid operation persistence interface name
-
getOperationDomainImplementation
Gets the simple class name of the domain implementation of an operation.- Parameters:
operationName- the operation name- Returns:
- the implementation name
-
getOperationFromDomainImplementation
Gets the operation name from the name of a domain implementation.- Parameters:
domainImplementation- the implementation name- Returns:
- the operation name, null if domainImplementation is not a valid operation domain implementation name
-
getOperationPersistenceImplementation
Gets the simple class name of the persistence implementation of an operation.- Parameters:
operationName- the operation name- Returns:
- the implementation name
-
getOperationFromPersistenceImplementation
Gets the operation name from the name of a persistence implementation.- Parameters:
persistenceImplementation- the implementation name- Returns:
- the operation name, null if persistenceImplementation is not a valid operation persistence implementation name
-
getOperationRemoteInterface
Gets the simple class name of the remote interface of an operation.- Parameters:
operationName- the operation name- Returns:
- the interface name
-
getOperationFromRemoteInterface
Gets the operation name from the name of a remote interface.- Parameters:
remoteInterface- the interface name- Returns:
- the operation name, null if remoteInterface is not a valid operation remote interface name
-
getOperationRemoteImplementation
Gets the simple class name of the remote implementation of an operation.- Parameters:
operationName- the operation name- Returns:
- the implementation name
-
getOperationFromRemoteImplementation
Gets the operation name from the name of a remote implementation.- Parameters:
remoteImplementation- the implementation name- Returns:
- the operation name, null if remoteImplementation is not a valid operation remote implementation name
-
getOperationRemoteInterfacePackageName
public String getOperationRemoteInterfacePackageName(String operationPersistenceImplementationPackageName) Gets the package name of the remote interface of an operation.- Parameters:
operationPersistenceImplementationPackageName- the package name of the persistence implementation- Returns:
- the package name of the remote interface
-
getOperationRemoteImplementationPackageName
public String getOperationRemoteImplementationPackageName(String operationPersistenceImplementationPackageName) Gets the package name of the remote implementation of an operation.- Parameters:
operationPersistenceImplementationPackageName- the package name of the persistence implementation- Returns:
- the package name of the remote implementation
-