Class NamingRules
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
-
getPdoDomainInterface
-
getPdoFromDomainInterface
-
getPdoPersistenceInterface
-
getPdoFromPersistenceInterface
-
getPdoDomainImplementation
-
getPdoFromDomainImplementation
-
getPdoPersistenceImplementation
-
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
-
getPdoFromRemoteInterface
-
getPdoRemoteImplementation
-
getPdoFromRemoteImplementation
-
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
-
getOperationFromDomainInterface
-
getOperationPersistenceInterface
-
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
-
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
-
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
-
getOperationFromRemoteInterface
-
getOperationRemoteImplementation
-
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
-