Package org.jboss.as.cmp.jdbc.metadata

Examples of org.jboss.as.cmp.jdbc.metadata.JDBCAuditMetaData


            else
                tableFields[versionField.getTableIndex()] = versionField;
        }

        // audit fields
        JDBCAuditMetaData auditMetaData = metadata.getAudit();
        if (auditMetaData != null) {
            JDBCCMPFieldMetaData auditField = auditMetaData.getCreatedPrincipalField();
            if (auditField != null) {
                createdPrincipalField = getCMPFieldByName(auditField.getFieldName());
                if (createdPrincipalField == null) {
                    createdPrincipalField = new JDBCCMP2xFieldBridge(manager, auditField);
                    addCMPField(createdPrincipalField);
                }
            } else {
                createdPrincipalField = null;
            }

            auditField = auditMetaData.getCreatedTimeField();
            if (auditField != null) {
                createdTimeField = getCMPFieldByName(auditField.getFieldName());
                if (createdTimeField == null) {
                    createdTimeField = new JDBCCMP2xFieldBridge(manager, auditField, JDBCTypeFactory.EQUALS, false);
                    addCMPField(createdTimeField);
                } else {
                    // just to override state factory and check-dirty-after-get
                    createdTimeField = new JDBCCMP2xFieldBridge(
                            (JDBCCMP2xFieldBridge) createdTimeField, JDBCTypeFactory.EQUALS, false);
                    tableFields[createdTimeField.getTableIndex()] = createdTimeField;
                }
            } else {
                createdTimeField = null;
            }

            auditField = auditMetaData.getUpdatedPrincipalField();
            if (auditField != null) {
                updatedPrincipalField = getCMPFieldByName(auditField.getFieldName());
                if (updatedPrincipalField == null) {
                    updatedPrincipalField = new JDBCCMP2xUpdatedPrincipalFieldBridge(manager, auditField);
                    addCMPField(updatedPrincipalField);
                } else {
                    updatedPrincipalField = new JDBCCMP2xUpdatedPrincipalFieldBridge(
                            (JDBCCMP2xFieldBridge) updatedPrincipalField);
                    tableFields[updatedPrincipalField.getTableIndex()] = updatedPrincipalField;
                }
            } else {
                updatedPrincipalField = null;
            }

            auditField = auditMetaData.getUpdatedTimeField();
            if (auditField != null) {
                updatedTimeField = getCMPFieldByName(auditField.getFieldName());
                if (updatedTimeField == null) {
                    updatedTimeField = new JDBCCMP2xUpdatedTimeFieldBridge(manager, auditField);
                    addCMPField(updatedTimeField);
View Full Code Here


            else
                tableFields[versionField.getTableIndex()] = versionField;
        }

        // audit fields
        JDBCAuditMetaData auditMetaData = metadata.getAudit();
        if (auditMetaData != null) {
            JDBCCMPFieldMetaData auditField = auditMetaData.getCreatedPrincipalField();
            if (auditField != null) {
                createdPrincipalField = getCMPFieldByName(auditField.getFieldName());
                if (createdPrincipalField == null) {
                    createdPrincipalField = new JDBCCMP2xFieldBridge(manager, auditField);
                    addCMPField(createdPrincipalField);
                }
            } else {
                createdPrincipalField = null;
            }

            auditField = auditMetaData.getCreatedTimeField();
            if (auditField != null) {
                createdTimeField = getCMPFieldByName(auditField.getFieldName());
                if (createdTimeField == null) {
                    createdTimeField = new JDBCCMP2xFieldBridge(manager, auditField, JDBCTypeFactory.EQUALS, false);
                    addCMPField(createdTimeField);
                } else {
                    // just to override state factory and check-dirty-after-get
                    createdTimeField = new JDBCCMP2xFieldBridge(
                            (JDBCCMP2xFieldBridge) createdTimeField, JDBCTypeFactory.EQUALS, false);
                    tableFields[createdTimeField.getTableIndex()] = createdTimeField;
                }
            } else {
                createdTimeField = null;
            }

            auditField = auditMetaData.getUpdatedPrincipalField();
            if (auditField != null) {
                updatedPrincipalField = getCMPFieldByName(auditField.getFieldName());
                if (updatedPrincipalField == null) {
                    updatedPrincipalField = new JDBCCMP2xUpdatedPrincipalFieldBridge(manager, auditField);
                    addCMPField(updatedPrincipalField);
                } else {
                    updatedPrincipalField = new JDBCCMP2xUpdatedPrincipalFieldBridge(
                            (JDBCCMP2xFieldBridge) updatedPrincipalField);
                    tableFields[updatedPrincipalField.getTableIndex()] = updatedPrincipalField;
                }
            } else {
                updatedPrincipalField = null;
            }

            auditField = auditMetaData.getUpdatedTimeField();
            if (auditField != null) {
                updatedTimeField = getCMPFieldByName(auditField.getFieldName());
                if (updatedTimeField == null) {
                    updatedTimeField = new JDBCCMP2xUpdatedTimeFieldBridge(manager, auditField);
                    addCMPField(updatedTimeField);
View Full Code Here

            else
                tableFields[versionField.getTableIndex()] = versionField;
        }

        // audit fields
        JDBCAuditMetaData auditMetaData = metadata.getAudit();
        if (auditMetaData != null) {
            JDBCCMPFieldMetaData auditField = auditMetaData.getCreatedPrincipalField();
            if (auditField != null) {
                createdPrincipalField = getCMPFieldByName(auditField.getFieldName());
                if (createdPrincipalField == null) {
                    createdPrincipalField = new JDBCCMP2xFieldBridge(manager, auditField);
                    addCMPField(createdPrincipalField);
                }
            } else {
                createdPrincipalField = null;
            }

            auditField = auditMetaData.getCreatedTimeField();
            if (auditField != null) {
                createdTimeField = getCMPFieldByName(auditField.getFieldName());
                if (createdTimeField == null) {
                    createdTimeField = new JDBCCMP2xFieldBridge(manager, auditField, JDBCTypeFactory.EQUALS, false);
                    addCMPField(createdTimeField);
                } else {
                    // just to override state factory and check-dirty-after-get
                    createdTimeField = new JDBCCMP2xFieldBridge(
                            (JDBCCMP2xFieldBridge) createdTimeField, JDBCTypeFactory.EQUALS, false);
                    tableFields[createdTimeField.getTableIndex()] = createdTimeField;
                }
            } else {
                createdTimeField = null;
            }

            auditField = auditMetaData.getUpdatedPrincipalField();
            if (auditField != null) {
                updatedPrincipalField = getCMPFieldByName(auditField.getFieldName());
                if (updatedPrincipalField == null) {
                    updatedPrincipalField = new JDBCCMP2xUpdatedPrincipalFieldBridge(manager, auditField);
                    addCMPField(updatedPrincipalField);
                } else {
                    updatedPrincipalField = new JDBCCMP2xUpdatedPrincipalFieldBridge(
                            (JDBCCMP2xFieldBridge) updatedPrincipalField);
                    tableFields[updatedPrincipalField.getTableIndex()] = updatedPrincipalField;
                }
            } else {
                updatedPrincipalField = null;
            }

            auditField = auditMetaData.getUpdatedTimeField();
            if (auditField != null) {
                updatedTimeField = getCMPFieldByName(auditField.getFieldName());
                if (updatedTimeField == null) {
                    updatedTimeField = new JDBCCMP2xUpdatedTimeFieldBridge(manager, auditField);
                    addCMPField(updatedTimeField);
View Full Code Here

            else
                tableFields[versionField.getTableIndex()] = versionField;
        }

        // audit fields
        JDBCAuditMetaData auditMetaData = metadata.getAudit();
        if (auditMetaData != null) {
            JDBCCMPFieldMetaData auditField = auditMetaData.getCreatedPrincipalField();
            if (auditField != null) {
                createdPrincipalField = getCMPFieldByName(auditField.getFieldName());
                if (createdPrincipalField == null) {
                    createdPrincipalField = new JDBCCMP2xFieldBridge(manager, auditField);
                    addCMPField(createdPrincipalField);
                }
            } else {
                createdPrincipalField = null;
            }

            auditField = auditMetaData.getCreatedTimeField();
            if (auditField != null) {
                createdTimeField = getCMPFieldByName(auditField.getFieldName());
                if (createdTimeField == null) {
                    createdTimeField = new JDBCCMP2xFieldBridge(manager, auditField, JDBCTypeFactory.EQUALS, false);
                    addCMPField(createdTimeField);
                } else {
                    // just to override state factory and check-dirty-after-get
                    createdTimeField = new JDBCCMP2xFieldBridge(
                            (JDBCCMP2xFieldBridge) createdTimeField, JDBCTypeFactory.EQUALS, false);
                    tableFields[createdTimeField.getTableIndex()] = createdTimeField;
                }
            } else {
                createdTimeField = null;
            }

            auditField = auditMetaData.getUpdatedPrincipalField();
            if (auditField != null) {
                updatedPrincipalField = getCMPFieldByName(auditField.getFieldName());
                if (updatedPrincipalField == null) {
                    updatedPrincipalField = new JDBCCMP2xUpdatedPrincipalFieldBridge(manager, auditField);
                    addCMPField(updatedPrincipalField);
                } else {
                    updatedPrincipalField = new JDBCCMP2xUpdatedPrincipalFieldBridge(
                            (JDBCCMP2xFieldBridge) updatedPrincipalField);
                    tableFields[updatedPrincipalField.getTableIndex()] = updatedPrincipalField;
                }
            } else {
                updatedPrincipalField = null;
            }

            auditField = auditMetaData.getUpdatedTimeField();
            if (auditField != null) {
                updatedTimeField = getCMPFieldByName(auditField.getFieldName());
                if (updatedTimeField == null) {
                    updatedTimeField = new JDBCCMP2xUpdatedTimeFieldBridge(manager, auditField);
                    addCMPField(updatedTimeField);
View Full Code Here

            else
                tableFields[versionField.getTableIndex()] = versionField;
        }

        // audit fields
        JDBCAuditMetaData auditMetaData = metadata.getAudit();
        if (auditMetaData != null) {
            JDBCCMPFieldMetaData auditField = auditMetaData.getCreatedPrincipalField();
            if (auditField != null) {
                createdPrincipalField = getCMPFieldByName(auditField.getFieldName());
                if (createdPrincipalField == null) {
                    createdPrincipalField = new JDBCCMP2xFieldBridge(manager, auditField);
                    addCMPField(createdPrincipalField);
                }
            } else {
                createdPrincipalField = null;
            }

            auditField = auditMetaData.getCreatedTimeField();
            if (auditField != null) {
                createdTimeField = getCMPFieldByName(auditField.getFieldName());
                if (createdTimeField == null) {
                    createdTimeField = new JDBCCMP2xFieldBridge(manager, auditField, JDBCTypeFactory.EQUALS, false);
                    addCMPField(createdTimeField);
                } else {
                    // just to override state factory and check-dirty-after-get
                    createdTimeField = new JDBCCMP2xFieldBridge(
                            (JDBCCMP2xFieldBridge) createdTimeField, JDBCTypeFactory.EQUALS, false);
                    tableFields[createdTimeField.getTableIndex()] = createdTimeField;
                }
            } else {
                createdTimeField = null;
            }

            auditField = auditMetaData.getUpdatedPrincipalField();
            if (auditField != null) {
                updatedPrincipalField = getCMPFieldByName(auditField.getFieldName());
                if (updatedPrincipalField == null) {
                    updatedPrincipalField = new JDBCCMP2xUpdatedPrincipalFieldBridge(manager, auditField);
                    addCMPField(updatedPrincipalField);
                } else {
                    updatedPrincipalField = new JDBCCMP2xUpdatedPrincipalFieldBridge(
                            (JDBCCMP2xFieldBridge) updatedPrincipalField);
                    tableFields[updatedPrincipalField.getTableIndex()] = updatedPrincipalField;
                }
            } else {
                updatedPrincipalField = null;
            }

            auditField = auditMetaData.getUpdatedTimeField();
            if (auditField != null) {
                updatedTimeField = getCMPFieldByName(auditField.getFieldName());
                if (updatedTimeField == null) {
                    updatedTimeField = new JDBCCMP2xUpdatedTimeFieldBridge(manager, auditField);
                    addCMPField(updatedTimeField);
View Full Code Here

TOP

Related Classes of org.jboss.as.cmp.jdbc.metadata.JDBCAuditMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.